org.xmlcml.cml
Interface BondArray

All Known Implementing Classes:
BondArrayImpl

public interface BondArray
extends AbstractBond, HasBuiltinArrayNames


Fields inherited from interface org.xmlcml.cml.AbstractBond
AROMATIC, ATOMREF, ATOMREFS, BOND_BUILTIN_COUNT, BOND_FLOATVAL_COUNT, BOND_FLOATVAL_END, BOND_FLOATVAL_START, BOND_INTEGERVAL_COUNT, BOND_INTEGERVAL_END, BOND_INTEGERVAL_START, BOND_STRINGVAL_COUNT, BOND_STRINGVAL_END, BOND_STRINGVAL_START, bondOrders, bondTypeStrings, DECREASE, DEFAULTXY2LENGTH, DEFAULTXYZ3LENGTH, DELETE, DOUBLE, HATCH, INCREASE, LENGTH, NOSTEREO, ORDER, OVERRUN, SINGLE, STEREO, TRIPLE, WEDGE, ZERO
 
Fields inherited from interface org.xmlcml.cml.AbstractBuiltinContainer
NONUNIQUE, UNIQUE
 
Fields inherited from interface org.xmlcml.cml.CMLBase
ANGLE, ATOM, ATOMARRAY, BOND, BONDARRAY, BUILTIN, CML, CRYSTAL, ELECTRON, ELEMENT_COUNT, ELEMENT_NAMES, EXECUTE, FEATURE, FLOAT, FLOAT_TYPE, FLOATARRAY, FLOATMATRIX, FORMULA, INTEGER, INTEGER_TYPE, INTEGERARRAY, LINK, LIST, MOLECULE, PACKAGE_NAME, REACTION, SEQUENCE, STRING, STRING_TYPE, STRINGARRAY, TORSION, UNK, UNK_ELEM, UNKNOWN
 
Fields inherited from interface uk.co.demon.ursus.dom.PMRElement
CLASSNAME, LOCAL, QUALIFIED, UNIVERSAL
 
Fields inherited from interface org.xmlcml.cml.HasTitle
TITLE
 
Fields inherited from interface org.xmlcml.cml.HasDictRef
DICTREF
 
Fields inherited from interface org.xmlcml.cml.HasId
ID
 
Fields inherited from interface org.xmlcml.cml.HasConvention
CONVENTION
 
Fields inherited from interface uk.co.demon.ursus.dom.PMRNode
ATTRIBUTES, CONTENT, ELEMENTNAME, IDLIST, NESTED, NESTEDATTS, PACKAGENAME, PRETTY, SPLITFILES, STYLE, TAGGED, UNTAGGED, WHITESPACE, XMLCONTENT
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 void add(Bond bond)
          when an Bond is added then it is split over the various StringArrays
 AbstractBuiltinContainer createArrayElement(org.w3c.dom.Document document)
           
 void delete(Bond bond)
           
 void deleteNonBuiltinArray(java.lang.String name)
           
 Bond elementAt(int index)
          when an Bond is extracted then it is combined from the various StringArrays
 StringArray getBuiltinArray(int builtinId)
          this is rather trick since BondArray is subclasses from Bond and StringArray from StringVal we can extract the array object as scalars and simply cast them
 StringArray getNonBuiltinArray(java.lang.String name)
           
 void setBuiltinArray(int builtinId, StringArray array)
           
 void setNonBuiltinArray(java.lang.String name, StringArray array)
           
 int size()
           
 
Methods inherited from interface org.xmlcml.cml.AbstractBond
addAtomRef, deleteAtomRef, getAtomRef, getAtomRefVector
 
Methods inherited from interface org.xmlcml.cml.AbstractBuiltinContainer
addBuiltinChildWithFloatValue, addBuiltinChildWithIntegerValue, addBuiltinChildWithStringValue, checkBuiltins, deleteNonBuiltinVal, getBuiltinChildElements, getBuiltinChildFloatValue, getBuiltinChildIntegerValue, getBuiltinChildStringValue, getBuiltinCount, getBuiltinVal, getNonBuiltinVal, setBuiltinVal, setNonBuiltinVal
 
Methods inherited from interface org.xmlcml.cml.CMLBase
addValidity, debug, isValid, processDOM, updateDOM
 
Methods inherited from interface uk.co.demon.ursus.dom.PMRElement
appendTo, getValidity, processDescendants, setProcessFlag, setTagName
 
Methods inherited from interface org.xmlcml.cml.HasTitle
getTitle, setTitle, updateDOMHasTitle
 
Methods inherited from interface org.xmlcml.cml.HasDictRef
getDictRef, setDictRef, updateDOMHasDictRef
 
Methods inherited from interface org.xmlcml.cml.HasId
getId, setId, updateDOMHasId
 
Methods inherited from interface org.xmlcml.cml.HasConvention
getConventionName, setConventionName, updateDOMHasConvention
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 

Method Detail

add

public void add(Bond bond)
when an Bond is added then it is split over the various StringArrays

size

public int size()

elementAt

public Bond elementAt(int index)
when an Bond is extracted then it is combined from the various StringArrays

delete

public void delete(Bond bond)

getBuiltinArray

public StringArray getBuiltinArray(int builtinId)
this is rather trick since BondArray is subclasses from Bond and StringArray from StringVal we can extract the array object as scalars and simply cast them
Specified by:
getBuiltinArray in interface HasBuiltinArrayNames

setBuiltinArray

public void setBuiltinArray(int builtinId,
                            StringArray array)
Specified by:
setBuiltinArray in interface HasBuiltinArrayNames

getNonBuiltinArray

public StringArray getNonBuiltinArray(java.lang.String name)
Specified by:
getNonBuiltinArray in interface HasBuiltinArrayNames

setNonBuiltinArray

public void setNonBuiltinArray(java.lang.String name,
                               StringArray array)
Specified by:
setNonBuiltinArray in interface HasBuiltinArrayNames

deleteNonBuiltinArray

public void deleteNonBuiltinArray(java.lang.String name)
Specified by:
deleteNonBuiltinArray in interface HasBuiltinArrayNames

createArrayElement

public AbstractBuiltinContainer createArrayElement(org.w3c.dom.Document document)
Specified by:
createArrayElement in interface HasBuiltinArrayNames