Class CMLCoreModule
java.lang.Object
org.openscience.cdk.io.cml.CMLCoreModule
- All Implemented Interfaces:
ICMLModule
- Direct Known Subclasses:
CDKConvention, CMLReactionModule, JMOLANIMATIONConvention, MDLMolConvention, MDMoleculeConvention, PDBConvention, PMPConvention, QSARConvention
Core CML 1.x and 2.x elements are parsed by this class (see [Willighagen, E.L.. Internet Journal of Chemistry. 2001. 4]).
Please file a bug report if this parser fails to parse a certain element or attribute value in a valid CML document.
- Author:
- Egon Willighagen <egonw@sci.kun.nl>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected Stringprotected intprotected intprotected IAtomprotected IBondprotected Stringprotected IChemFileprotected IChemModelprotected IChemSequenceprotected intprotected IAtomContainerprotected IAtomContainerSetprotected IMonomerprotected IReactionprotected IReactionSetprotected IStrandprotected Stringprotected Stringprotected intprotected Stringprotected ILoggingToolprotected booleanprotected booleanprotected booleanprotected final Stringprotected double[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddArrayElementsTo(List<String> toAddto, String array) voidcharacterData(org.openscience.cdk.io.cml.CMLStack xpath, char[] ch, int start, int length) voidvoidendElement(org.openscience.cdk.io.cml.CMLStack xpath, String uri, String name, String raw) voidinherit(ICMLModule convention) protected voidClean all data about read atoms.protected voidClean all data about read bonds.protected voidClean all data about read bonds.protected voidClean all data about read formulas.protected voidClean all data about parsed data.protected voidClean all data about the molecule itself.protected voidvoidvoidstartElement(org.openscience.cdk.io.cml.CMLStack xpath, String uri, String local, String raw, Attributes atts) protected voidprotected voidprotected void
-
Field Details
-
logger
-
SYSTEMID
- See Also:
-
currentChemFile
-
currentMolecule
-
currentMoleculeSet
-
currentChemModel
-
currentChemSequence
-
currentReactionSet
-
currentReaction
-
currentAtom
-
currentBond
-
currentStrand
-
currentMonomer
-
atomEnumeration
-
moleculeCustomProperty
-
formulaCounter
protected int formulaCounter -
atomCounter
protected int atomCounter -
elsym
-
eltitles
-
elid
-
formula
-
formalCharges
-
partialCharges
-
isotope
-
atomicNumbers
-
exactMasses
-
x3
-
y3
-
z3
-
x2
-
y2
-
xfract
-
yfract
-
zfract
-
hCounts
-
atomParities
-
parityARef1
-
parityARef2
-
parityARef3
-
parityARef4
-
atomDictRefs
-
atomAromaticities
-
spinMultiplicities
-
occupancies
-
atomCustomProperty
-
parityAtomsGiven
protected boolean parityAtomsGiven -
parityGiven
protected boolean parityGiven -
bondCounter
protected int bondCounter -
bondid
-
bondARef1
-
bondARef2
-
order
-
bondStereo
-
bondDictRefs
-
bondElid
-
bondAromaticity
-
bondCustomProperty
-
stereoGiven
protected boolean stereoGiven -
inchi
-
curRef
protected int curRef -
CurrentElement
protected int CurrentElement -
BUILTIN
-
DICTREF
-
elementTitle
-
currentChars
-
unitcellparams
protected double[] unitcellparams -
crystalScalar
protected int crystalScalar
-
-
Constructor Details
-
CMLCoreModule
-
CMLCoreModule
-
-
Method Details
-
inherit
- Specified by:
inheritin interfaceICMLModule
-
returnChemFile
- Specified by:
returnChemFilein interfaceICMLModule
-
newMolecule
protected void newMolecule()Clean all data about parsed data. -
newMoleculeData
protected void newMoleculeData()Clean all data about the molecule itself. -
newFormulaData
protected void newFormulaData()Clean all data about read formulas. -
newAtomData
protected void newAtomData()Clean all data about read atoms. -
newBondData
protected void newBondData()Clean all data about read bonds. -
newCrystalData
protected void newCrystalData()Clean all data about read bonds. -
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceICMLModule
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceICMLModule
-
startElement
public void startElement(org.openscience.cdk.io.cml.CMLStack xpath, String uri, String local, String raw, Attributes atts) - Specified by:
startElementin interfaceICMLModule
-
endElement
public void endElement(org.openscience.cdk.io.cml.CMLStack xpath, String uri, String name, String raw) - Specified by:
endElementin interfaceICMLModule
-
characterData
public void characterData(org.openscience.cdk.io.cml.CMLStack xpath, char[] ch, int start, int length) - Specified by:
characterDatain interfaceICMLModule
-
notify
-
storeData
protected void storeData() -
storeAtomData
protected void storeAtomData() -
storeBondData
protected void storeBondData() -
addArrayElementsTo
-