Class: CmlChemStructureReader

Kekule.IO. CmlChemStructureReader

new CmlChemStructureReader()

Reader to read a molecule structure in CML. Base class of Kekule.IO.CmlFormulaReader and Kekule.IO.CmlMoleculeReader.
Source:

Extends

Methods

getAtomChildren(elem, domHelper)

Returns child elements of .
Parameters:
Name Type Description
elem Object
domHelper Object
Source:

hasAtomChildren(elem, domHelper)

Check if a element has child elements.
Parameters:
Name Type Description
elem Object
domHelper 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

Kekule.IO. CmlChemStructureReader

new CmlChemStructureReader()

Source:

Methods

getAtomChildren(elem, domHelper)

Returns child elements of .
Parameters:
Name Type Description
elem Object
domHelper Object
Source:

hasAtomChildren(elem, domHelper)

Check if a element has child elements.
Parameters:
Name Type Description
elem Object
domHelper 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