new CmlElementReader()
Base class of readers to read different CML elements.
- Source:
Extends
Methods
-
iterateChildElements(elem, parentObj)
-
Iterate through and read all direct children of elem.
Parameters:
Name Type Description elem
Object parentObj
Object - Source:
-
readChildElement(elem, parentObj) → {Variant}
-
Read and handle child elements,
Parameters:
Name Type Description elem
Object parentObj
Object - 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 - 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 - Source:
Returns:
- Type
- Variant