Class: CmlRootReader

Kekule.IO. CmlRootReader

new CmlRootReader()

Reader to read element.
Source:

Extends

Methods

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