new CmlMoleculeReader()
CML element reader.
- Source:
Extends
Methods
-
getAtomChildren(elem, domHelper)
-
Returns child
elements of . Parameters:
Name Type Description elem
Object domHelper
Object - Inherited From:
- Source:
-
hasAtomChildren(elem, domHelper)
-
Check if a
element has child elements. Parameters:
Name Type Description elem
Object domHelper
Object - Inherited From:
- Source:
-
hasSubMolecule(elem)
-
check if a
elemen has sub molecules Parameters:
Name Type Description elem
Object - Source:
-
iterateChildElements(elem, parentObj)
-
Iterate through and read all direct children of elem.
Parameters:
Name Type Description elem
Object parentObj
Object - Inherited From:
- Source:
-
readChildElement(elem, parentObj) → {Variant}
-
Read and handle child elements,
Parameters:
Name Type Description elem
Object parentObj
Object - Inherited From:
- Source:
Returns:
- Type
- Variant
-
readChildElementDef(elem, parentObj) → {Variant}
-
A default method to read child elements, just ask CmlElementReaderFactory to create a suitable reader and use the reader to read.
Parameters:
Name Type Description elem
Object parentObj
Object - Inherited From:
- Source:
Returns:
- Type
- Variant
-
readElement(elem, parentObj) → {Variant}
-
Read an element in CML document and returns a proper Kekule object or insert something into parentObj.
Parameters:
Name Type Description elem
Object parentObj
Kekule.ChemObject - Inherited From:
- Source:
Returns:
- Type
- Variant
-
readFormulaAttrib(molecule, concise)
-
Read formula info directly from formula attrib of
. For example . Parameters:
Name Type Description molecule
Object concise
String - Source:
-
readMolecule(elem, domHelper)
-
Read an molecule structure from a CML molecule element. This function can handle sub molecules.
Parameters:
Name Type Description elem
Object domHelper
Object - Source: