|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.struc.MPropertyContainer
Property container.
| Constructor Summary | |
MPropertyContainer()
Creates an empty property container. |
|
| Method Summary | |
void |
clear()
Clears properties. |
java.lang.Object |
clone()
Clones this object. |
chemaxon.struc.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.lang.String |
getString(java.lang.String key)
Gets a property. |
boolean |
isValid(chemaxon.struc.MProp prop)
Tests whether a coordinate dependent property is still valid. |
void |
readExternal(java.io.ObjectInput in)
Restores the property container's state. |
void |
set(java.lang.String key,
chemaxon.struc.MProp value)
Sets a property object. |
void |
set(java.lang.String key,
chemaxon.struc.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 chemaxon.struc.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,
chemaxon.struc.MProp value)
key - the property namevalue - the value or null
public void set(java.lang.String key,
chemaxon.struc.MProp value,
int opts)
key - the property namevalue - the value or nullopts - 0 or MProp.COORDDEPpublic boolean isValid(chemaxon.struc.MProp prop)
prop - the property
true if the property is valid,
false otherwiseMProp.COORDDEP,
set(String, MProp, int)public 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()
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 | |||||||||