|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openscience.cdk.ChemObject
org.openscience.cdk.ChemFile
public class ChemFile
A Object containing a number of ChemSequences. This is supposed to be the top level container, which can contain all the concepts stored in a chemical document
| Constructor Summary | |
|---|---|
ChemFile()
Constructs an empty ChemFile. |
|
| Method Summary | |
|---|---|
void |
addChemSequence(IChemSequence chemSequence)
Adds a ChemSequence to this container. |
Iterable<IChemSequence> |
chemSequences()
Returns the Iterable to ChemSequences of this container. |
Object |
clone()
Allows for getting an clone of this object. |
IChemSequence |
getChemSequence(int number)
Returns the ChemSequence at position number in the container. |
int |
getChemSequenceCount()
Returns the number of ChemSequences in this Container. |
void |
removeChemSequence(int pos)
Removes a ChemSequence from this container. |
void |
stateChanged(IChemObjectChangeEvent event)
Called by objects to which this object has registered as a listener. |
String |
toString()
Returns a String representation of this class. |
| Methods inherited from class org.openscience.cdk.ChemObject |
|---|
addListener, compare, getBuilder, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openscience.cdk.interfaces.IChemObject |
|---|
addListener, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty |
| Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject |
|---|
getBuilder |
| Constructor Detail |
|---|
public ChemFile()
| Method Detail |
|---|
public void addChemSequence(IChemSequence chemSequence)
addChemSequence in interface IChemFilechemSequence - The chemSequence to be added to this containerchemSequencespublic void removeChemSequence(int pos)
removeChemSequence in interface IChemFilepos - The position from which to removechemSequences,
addChemSequence(org.openscience.cdk.interfaces.IChemSequence)public Iterable<IChemSequence> chemSequences()
chemSequences in interface IChemFileaddChemSequence(org.openscience.cdk.interfaces.IChemSequence)public IChemSequence getChemSequence(int number)
number in the container.
getChemSequence in interface IChemFilenumber - The position of the ChemSequence to be returned.
number.addChemSequence(org.openscience.cdk.interfaces.IChemSequence)public int getChemSequenceCount()
getChemSequenceCount in interface IChemFilepublic String toString()
toString in interface IChemObjecttoString in class Object
public Object clone()
throws CloneNotSupportedException
clone in interface IChemObjectclone in class ChemObjectCloneNotSupportedException - if the IChemObject cannot be clonedpublic void stateChanged(IChemObjectChangeEvent event)
stateChanged in interface IChemObjectListenerevent - A change event pointing to the source of the change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||