Class: CmlRootWriter

Kekule.IO. CmlRootWriter

new CmlRootWriter()

Reader to write Kekule.ChemDocument to CML element.
Source:

Extends

Methods

doCreateElem(obj, parentElem) → {Object}

Create suitable new child element to write obj. Descendants may override this method.
Parameters:
Name Type Description
obj Kekule.ChemObject
parentElem Object
Inherited From:
Source:
Returns:
Element created.
Type
Object

doWriteObject(obj, targetElem) → {Object}

Method to do the actual writeObject job. Descendants should override this method.
Parameters:
Name Type Description
obj Kekule.ChemObject
targetElem Object
Inherited From:
Source:
Returns:
Type
Object

reportTypeMismatchError(obj)

Report this writer is not proper for writing obj.
Parameters:
Name Type Description
obj Object
Inherited From:
Source: