new CmlMoleculeWriter()
CML element writer for outputting Kekule.Molecule or {@link Kekule.CompositeMolecule}.
Properties:
| Name | Type | Description |
|---|---|---|
allowCascadeGroup |
Bool | If true,sub group in molecule will be output in nested element, otherwise, all atoms in molecule will be put togather regardless of sub groups. |
- Source:
Extends
Methods
-
reportTypeMismatchError(obj)
-
Report this writer is not proper for writing obj.
Parameters:
Name Type Description objObject - Inherited From:
- Source:
-
writeCompositeMolecule()
-
Write composite molecule (with sub molecules)
- Source:
-
writeCtab(ctab, elem)
-
Write Ctab nodes and connectors to element.
Parameters:
Name Type Description ctabObject elemObject - Source:
-
writeObject(obj, parentElem, doc) → {Object}
-
Write Kekule obj to a new CML element in doc or insert new attributes to parentElem.
Parameters:
Name Type Description objKekule.ChemObject parentElemObject docObject - Inherited From:
- Source:
Returns:
Element created.- Type
- Object