public class DebugChemObject extends ChemObject implements IChemObject
| Constructor and Description |
|---|
DebugChemObject() |
DebugChemObject(IChemObject object) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IChemObjectListener col)
Use this to add yourself to this IChemObject as a listener.
|
Object |
clone()
Clones this
IChemObject. |
IChemObjectBuilder |
getBuilder()
Returns a
IChemObjectBuilder for the data classes that extend
this class. |
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.
|
compare, shallowCopyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic DebugChemObject(IChemObject object)
public DebugChemObject()
public void addListener(IChemObjectListener col)
ChemObjectaddListener in interface IChemObjectaddListener in class ChemObjectcol - the ChemObjectListenerChemObject.removeListener(org.openscience.cdk.interfaces.IChemObjectListener)public int getListenerCount()
ChemObjectgetListenerCount in interface IChemObjectgetListenerCount in class ChemObjectpublic void removeListener(IChemObjectListener col)
ChemObjectremoveListener in interface IChemObjectremoveListener in class ChemObjectcol - The ChemObjectListener to be removedChemObject.addListener(org.openscience.cdk.interfaces.IChemObjectListener)public void notifyChanged()
ChemObjectnotifyChanged in interface IChemObjectnotifyChanged in class ChemObjectpublic void notifyChanged(IChemObjectChangeEvent evt)
ChemObjectnotifyChanged in interface IChemObjectnotifyChanged in class ChemObjectevt - A ChemObjectChangeEvent pointing to the source of where
the change happendpublic void setProperty(Object description, Object property)
ChemObjectsetProperty in interface IChemObjectsetProperty in class ChemObjectdescription - An object description of the property (most likely a
unique string)property - An object with the property itselfChemObject.getProperty(java.lang.Object),
ChemObject.removeProperty(java.lang.Object)public void removeProperty(Object description)
ChemObjectremoveProperty in interface IChemObjectremoveProperty in class ChemObjectdescription - The object description of the property (most likely a
unique string)ChemObject.setProperty(java.lang.Object, java.lang.Object),
ChemObject.getProperty(java.lang.Object)public Object getProperty(Object description)
ChemObjectgetProperty in interface IChemObjectgetProperty in class ChemObjectdescription - An object description of the property (most likely a
unique string)ChemObject.setProperty(java.lang.Object, java.lang.Object),
ChemObject.removeProperty(java.lang.Object)public Map<Object,Object> getProperties()
ChemObjectgetProperties in interface IChemObjectgetProperties in class ChemObjectChemObject.setProperties(java.util.Map<java.lang.Object, java.lang.Object>)public String getID()
ChemObjectgetID in interface IChemObjectgetID in class ChemObjectChemObject.setID(java.lang.String)public void setID(String identifier)
ChemObjectsetID in interface IChemObjectsetID in class ChemObjectidentifier - a String representing the ID valueChemObject.getID()public void setFlag(int flag_type,
boolean flag_value)
ChemObjectsetFlag in interface IChemObjectsetFlag in class ChemObjectflag_type - Flag to setflag_value - Value to assign to flagChemObject.getFlag(int)public boolean getFlag(int flag_type)
ChemObjectgetFlag in interface IChemObjectgetFlag in class ChemObjectflag_type - Flag to retrieve the value offlag_type is setChemObject.setFlag(int, boolean)public void setProperties(Map<Object,Object> properties)
ChemObjectsetProperties in interface IChemObjectsetProperties in class ChemObjectproperties - a Hashtable specifying the property valuesChemObject.getProperties()public void setFlags(boolean[] flagsNew)
ChemObjectsetFlags in interface IChemObjectsetFlags in class ChemObjectflagsNew - the new flags.ChemObject.getFlags()public boolean[] getFlags()
ChemObjectgetFlags in interface IChemObjectgetFlags in class ChemObjectChemObject.setFlags(boolean[])public Object clone() throws CloneNotSupportedException
ChemObjectIChemObject. It clones the identifier, flags,
properties and pointer vectors. The ChemObjectListeners are not cloned, and
neither is the content of the pointer vectors.clone in interface IChemObjectclone in class ChemObjectCloneNotSupportedException - if the IChemObject cannot be clonedpublic IChemObjectBuilder getBuilder()
ICDKObjectIChemObjectBuilder for the data classes that extend
this class.getBuilder in interface ICDKObjectgetBuilder in class ChemObjectIChemObjectBuilder matching this ICDKObjectpublic void setNotification(boolean bool)
IChemObjectsetNotification in interface IChemObjectsetNotification in class ChemObjectbool - if true, then notification messages are sent.IChemObject.getNotification()public boolean getNotification()
IChemObjectgetNotification in interface IChemObjectgetNotification in class ChemObjectIChemObject.setNotification(boolean)