public class QueryChemObject extends Object implements IChemObject
| Constructor and Description |
|---|
QueryChemObject(IChemObjectBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IChemObjectListener col)
Use this to add yourself to this IChemObject as a listener.
|
void |
addProperties(Map<Object,Object> properties)
Sets the properties of this object.
|
Object |
clone() |
IChemObjectBuilder |
getBuilder() |
boolean |
getFlag(int mask) |
boolean[] |
getFlags() |
Short |
getFlagValue() |
String |
getID()
Returns the identifier (ID) of this object.
|
int |
getListenerCount()
Returns the number of ChemObjectListeners registered with this object.
|
boolean |
getNotification() |
Map<Object,Object> |
getProperties()
Returns a Map with the IChemObject's properties.
|
<T> T |
getProperty(Object description)
Returns a property for the IChemObject.
|
<T> T |
getProperty(Object description,
Class<T> c) |
boolean |
matches(IAtom atom) |
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 mask,
boolean value) |
void |
setFlags(boolean[] flagsNew) |
void |
setID(String identifier)
Sets the identifier (ID) of this object.
|
void |
setNotification(boolean bool) |
void |
setProperties(Map<Object,Object> properties) |
void |
setProperty(Object description,
Object property)
Sets a property for a IChemObject.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic QueryChemObject(IChemObjectBuilder builder)
public void addListener(IChemObjectListener col)
addListener in interface IChemObjectcol - the ChemObjectListenerremoveListener(org.openscience.cdk.interfaces.IChemObjectListener)public int getListenerCount()
getListenerCount in interface IChemObjectpublic void removeListener(IChemObjectListener col)
removeListener in interface IChemObjectcol - The ChemObjectListener to be removedaddListener(org.openscience.cdk.interfaces.IChemObjectListener)public void notifyChanged()
notifyChanged in interface IChemObjectpublic void notifyChanged(IChemObjectChangeEvent evt)
notifyChanged in interface IChemObjectevt - A ChemObjectChangeEvent pointing to the source of where
the change happendpublic void setProperty(Object description, Object property)
setProperty in interface IChemObjectdescription - 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)public void removeProperty(Object description)
removeProperty in interface IChemObjectdescription - The object description of the property (most likely a
unique string)setProperty(java.lang.Object, java.lang.Object),
getProperty(java.lang.Object)public <T> T getProperty(Object description)
getProperty in interface IChemObjectdescription - An object description of the property (most likely a
unique string)setProperty(java.lang.Object, java.lang.Object),
removeProperty(java.lang.Object)public <T> T getProperty(Object description, Class<T> c)
getProperty in interface IChemObjectpublic Map<Object,Object> getProperties()
getProperties in interface IChemObjectaddProperties(java.util.Map<java.lang.Object, java.lang.Object>)public String getID()
getID in interface IChemObjectsetID(java.lang.String)public void setID(String identifier)
setID in interface IChemObjectidentifier - a String representing the ID valuegetID()public void setFlag(int mask,
boolean value)
setFlag in interface IChemObjectpublic boolean getFlag(int mask)
getFlag in interface IChemObjectpublic void setProperties(Map<Object,Object> properties)
setProperties in interface IChemObjectpublic void addProperties(Map<Object,Object> properties)
addProperties in interface IChemObjectproperties - a Hashtable specifying the property valuesgetProperties()public void setFlags(boolean[] flagsNew)
setFlags in interface IChemObjectpublic boolean[] getFlags()
getFlags in interface IChemObjectpublic Short getFlagValue()
getFlagValue in interface IChemObjectpublic void setNotification(boolean bool)
setNotification in interface IChemObjectpublic boolean getNotification()
getNotification in interface IChemObjectpublic IChemObjectBuilder getBuilder()
getBuilder in interface ICDKObjectpublic boolean matches(IAtom atom)
public Object clone() throws CloneNotSupportedException
clone in interface IChemObjectclone in class ObjectCloneNotSupportedExceptionCopyright © 2017. All rights reserved.