Class MoleculeData
java.lang.Object
chemaxon.formats.documents.jchemoffice.MoleculeData
- All Implemented Interfaces:
IMoleculeData
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMoleculeData(Molecule molecule) MoleculeData(Molecule molecule, String id) MoleculeData(String molecule) MoleculeData(String molecule, String format) MoleculeData(String molecule, String format, String id) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates a Molecule content for the MoleculeDataReturns the format of the Molecule contentgetId()Returns the id of the Molecule contentReturns the Molecule content of the MoleculeDataReturns the structure of the Molecule contentLists all sub structures belonging to this main structure.booleanisEmpty()Determines if we have an empty Molecule Data object.voidSets the Id of the Molecule contentvoidsetSubStructures(IMoleculeData[] subStructures) Assign sub structure to this main structure.
-
Field Details
-
Empty
-
-
Constructor Details
-
MoleculeData
-
MoleculeData
-
MoleculeData
-
MoleculeData
-
MoleculeData
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:IMoleculeDataDetermines if we have an empty Molecule Data object.- Specified by:
isEmptyin interfaceIMoleculeData- Returns:
- true if there is no molecule data specified.
-
getMolecule
Description copied from interface:IMoleculeDataReturns the Molecule content of the MoleculeData- Specified by:
getMoleculein interfaceIMoleculeData- Returns:
- Molecule
- Throws:
MolFormatException
-
clearNativeMolecule
protected void clearNativeMolecule() -
createMolecule
Description copied from interface:IMoleculeDataCreates a Molecule content for the MoleculeData- Specified by:
createMoleculein interfaceIMoleculeData- Returns:
- Molecule
- Throws:
MolFormatException
-
getStructure
Description copied from interface:IMoleculeDataReturns the structure of the Molecule content- Specified by:
getStructurein interfaceIMoleculeData- Returns:
- Structure of the Molecule
- Throws:
IOException
-
getFormat
Description copied from interface:IMoleculeDataReturns the format of the Molecule content- Specified by:
getFormatin interfaceIMoleculeData- Returns:
- Format of the Molecule
-
getId
Description copied from interface:IMoleculeDataReturns the id of the Molecule content- Specified by:
getIdin interfaceIMoleculeData- Returns:
- Id of the Molecule
-
setId
Description copied from interface:IMoleculeDataSets the Id of the Molecule content- Specified by:
setIdin interfaceIMoleculeData- Parameters:
id- - The identifier of the Molecule
-
getSubStructures
Description copied from interface:IMoleculeDataLists all sub structures belonging to this main structure. (e.g. reaction components)- Specified by:
getSubStructuresin interfaceIMoleculeData- Returns:
- Array of sub structures
-
setSubStructures
Description copied from interface:IMoleculeDataAssign sub structure to this main structure. (e.g. Scaffold)- Specified by:
setSubStructuresin interfaceIMoleculeData
-