public interface IChemObject extends ICDKObject
Modifier and Type | Method and Description |
---|---|
void |
addListener(IChemObjectListener col)
Use this to add yourself to this IChemObject as a listener.
|
Object |
clone()
Returns a deep clone of this IChemObject.
|
boolean |
getFlag(int flag_type)
Returns the value of some flag.
|
boolean[] |
getFlags()
Returns the whole set of flags.
|
String |
getID()
Returns the identifier (ID) of this object.
|
int |
getListenerCount()
Returns the number of ChemObjectListeners registered with this object.
|
boolean |
getNotification()
Returns the flag that indicates whether notification messages are sent around.
|
Map<Object,Object> |
getProperties()
Returns a Map with the IChemObject's properties.
|
Object |
getProperty(Object description)
Returns a property for the IChemObject.
|
void |
notifyChanged()
This should be triggered by an method that changes the content of an object
to that the registered listeners can react to it.
|
void |
notifyChanged(IChemObjectChangeEvent evt)
This should be triggered by an method that changes the content of an object
to that the registered listeners can react to it.
|
void |
removeListener(IChemObjectListener col)
Use this to remove a ChemObjectListener from the ListenerList of this
IChemObject.
|
void |
removeProperty(Object description)
Removes a property for a IChemObject.
|
void |
setFlag(int flag_type,
boolean flag_value)
Sets the value of some flag.
|
void |
setFlags(boolean[] flagsNew)
Sets the whole set of flags.
|
void |
setID(String identifier)
Sets the identifier (ID) of this object.
|
void |
setNotification(boolean bool)
Set a flag to use or not use notification.
|
void |
setProperties(Map<Object,Object> properties)
Sets the properties of this object.
|
void |
setProperty(Object description,
Object property)
Sets a property for a IChemObject.
|
String |
toString()
Returns a one line description of this IChemObject.
|
getBuilder
void addListener(IChemObjectListener col)
col
- the ChemObjectListenerremoveListener(org.openscience.cdk.interfaces.IChemObjectListener)
int getListenerCount()
void removeListener(IChemObjectListener col)
col
- The ChemObjectListener to be removedaddListener(org.openscience.cdk.interfaces.IChemObjectListener)
void setNotification(boolean bool)
bool
- if true, then notification messages are sent.getNotification()
boolean getNotification()
setNotification(boolean)
void notifyChanged()
void notifyChanged(IChemObjectChangeEvent evt)
evt
- A ChemObjectChangeEvent pointing to the source of where
the change happendvoid setProperty(Object description, Object property)
description
- An object description of the property (most likely a
unique string)property
- An object with the property itselfgetProperty(java.lang.Object)
,
removeProperty(java.lang.Object)
void removeProperty(Object description)
description
- The object description of the property (most likely a
unique string)setProperty(java.lang.Object, java.lang.Object)
,
getProperty(java.lang.Object)
Object getProperty(Object description)
description
- An object description of the property (most likely a
unique string)setProperty(java.lang.Object, java.lang.Object)
,
removeProperty(java.lang.Object)
Map<Object,Object> getProperties()
setProperties(java.util.Map<java.lang.Object, java.lang.Object>)
String getID()
setID(java.lang.String)
void setID(String identifier)
identifier
- a String representing the ID valuegetID()
void setFlag(int flag_type, boolean flag_value)
flag_type
- Flag to setflag_value
- Value to assign to flaggetFlag(int)
boolean getFlag(int flag_type)
flag_type
- Flag to retrieve the value offlag_type
is setsetFlag(int, boolean)
void setProperties(Map<Object,Object> properties)
properties
- a Map specifying the property valuesgetProperties()
void setFlags(boolean[] flagsNew)
flagsNew
- the new flags.getFlags()
boolean[] getFlags()
setFlags(boolean[])
String toString()
Object clone() throws CloneNotSupportedException
CloneNotSupportedException
- if the IChemObject cannot be cloned