|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.struc.MPropertyContainer
public class MPropertyContainer
Property container.
| Constructor Summary | |
|---|---|
MPropertyContainer()
Creates an empty property container. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears properties. |
java.lang.Object |
clone()
Clones this object. |
boolean |
contains(MProp p)
Tests whether the container contains the specified property object. |
void |
flatten()
Flattens hierarchically specified RDF properties. |
MProp |
get(java.lang.String key)
Gets a property object. |
java.lang.String |
getKey(int i)
Gets a property key. |
java.lang.String[] |
getKeys()
Returns the property keys. |
java.lang.Object |
getObject(java.lang.String key)
Gets a property object. |
java.util.List |
getPropList()
Gets the list of basic properties. |
java.lang.String |
getString(java.lang.String key)
Gets a property. |
java.lang.String |
hierarchize()
Converts hierarchically specified RDF properties to MListProp and
MHashProp objects. |
boolean |
isHierarchic()
Tests whether the property list contains subcollections like MListProp and MHashProp. |
boolean |
isSelfReference(MProp p)
Tests whether a property is a self reference to the containing molecule. |
boolean |
isValid(MProp prop)
Tests whether a coordinate dependent property is still valid. |
void |
readExternal(java.io.ObjectInput in)
Restores the property container's state. |
void |
remove(MProp p)
Removes a property. |
void |
replace(MProp oldp,
MProp newp)
Replaces or removes a property. |
void |
set(java.lang.String key,
MProp value)
Sets a property object. |
void |
set(java.lang.String key,
MProp value,
int opts)
Sets a property object. |
void |
setObject(java.lang.String key,
java.lang.Object val)
Sets a property object. |
void |
setString(java.lang.String key,
java.lang.String value)
Sets a property. |
int |
size()
Gets the total number of properties. |
void |
writeExternal(java.io.ObjectOutput out)
Saves the property container's state. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MPropertyContainer()
| Method Detail |
|---|
public void clear()
public int size()
public java.lang.String[] getKeys()
public java.lang.String getKey(int i)
i - property index
public java.lang.String getString(java.lang.String key)
key - property name
public MProp get(java.lang.String key)
key - property name
public void setString(java.lang.String key,
java.lang.String value)
key - the property namevalue - the value or null
public void set(java.lang.String key,
MProp value)
key - the property namevalue - the value or null
public void set(java.lang.String key,
MProp value,
int opts)
key - the property namevalue - the value or nullopts - 0 or MProp.COORDDEPpublic void remove(MProp p)
p - the object
public void replace(MProp oldp,
MProp newp)
oldp - the old objectnewp - the new object or null to removepublic boolean contains(MProp p)
p - the objectpublic boolean isValid(MProp prop)
prop - the property
true if the property is valid,
false otherwiseMProp.COORDDEP,
set(String, MProp, int)public boolean isSelfReference(MProp p)
p - the property
true if the property is a self reference,
false otherwisepublic boolean isHierarchic()
MListProp and MHashProp. A property list containing
names in MDL RDfile style can be made hierarchic by calling
hierarchize().
true if the property list contains subcollections,
false otherwisepublic java.lang.String hierarchize()
MListProp and
MHashProp objects.
MHashProp type property)
or nullflatten(),
isHierarchic()public void flatten()
hierarchize().
isHierarchic()public java.util.List getPropList()
MListProp and MHashProp are not added to the list but
searched recursively for their basic elements.
MProp objectspublic java.lang.Object getObject(java.lang.String key)
key - property name
public void setObject(java.lang.String key,
java.lang.Object val)
key - the property nameval - the value or nullpublic java.lang.Object clone()
clone in class java.lang.Object
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - the stream to read data from in order to restore the object
java.io.IOException - if I/O errors occur
java.lang.ClassNotFoundException - If the class for an object being
restored cannot be found.
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream to write the object to
java.io.IOException - Includes any I/O exceptions that may occur
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||