- All Superinterfaces:
- AbstractBase, AbstractBond, AbstractBuiltinContainer, AttributeAtomRefs, AttributeConvention, AttributeDictRef, AttributeId, AttributeTitle, BuiltinArrayContainer, BuiltinContainer, org.w3c.dom.Element, org.w3c.dom.Node
- public interface CMLBondArray
- extends AbstractBond, BuiltinArrayContainer
DTD Class
May become obsolete as bondArray is only syntactic
| Fields inherited from interface org.xmlcml.cml.AbstractBond |
AROMATIC, ATOMREF, ATOMREF_NAME, ATOMREFS, ATOMREFS_NAME, 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, BONDID, bondOrders, bondTypeStrings, builtinFloatValNames, builtinIntegerValNames, builtinStringValNames, CIS, DECREASE, DEFAULTXY2LENGTH, DEFAULTXYZ3LENGTH, DELETE, DOUBLE, HATCH, ID_NAME, INCREASE, LENGTH, LENGTH_NAME, NOSTEREO, ORDER, ORDER_NAME, OVERRUN, SINGLE, STEREO, STEREO_NAME, TRANS, TRIPLE, UNKNOWN, WEDGE, ZERO |
| Fields inherited from interface org.xmlcml.cml.AbstractBase |
ANGLE, ATOM, ATOMARRAY, ATOMPARITY, BOND, BONDARRAY, BONDSTEREO, BUILTIN, CML, CML_PREFIX, CRYSTAL, ELECTRON, ELEMENT_COUNT, ELEMENT_NAMES, EXECUTE, FEATURE, FLOAT, FLOAT_TYPE, FLOATARRAY, FLOATMATRIX, FORMULA, INTEGER, INTEGER_TYPE, INTEGERARRAY, LINK, LIST, MOLECULE, NAMESPACE_URI, PACKAGE_NAME, REACTION, SEQUENCE, STRING, STRING_TYPE, STRINGARRAY, TORSION, UNK, UNK_ELEM |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Methods inherited from interface org.xmlcml.cml.AbstractBuiltinContainer |
addBuiltinChildWithFloatValue, addBuiltinChildWithIntegerValue, addBuiltinChildWithStringValue, checkBuiltins, deleteNonBuiltinVal, getBuiltinChild, getBuiltinChildElements, getBuiltinChildFloatValue, getBuiltinChildIntegerValue, getBuiltinChildStringValue, getBuiltinCount, getBuiltinVal, getNonBuiltinVal, removeBuiltinChild, setBuiltinFloatChild, setBuiltinIntegerChild, setBuiltinStringChild, setBuiltinVal, setNonBuiltinVal |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
add
public void add(CMLBond bond)
- when an CMLBond is added then it is split over the various StringArrays
size
public int size()
elementAt
public CMLBond elementAt(int index)
- when an CMLBond is extracted then it is combined from the various StringArrays
delete
public void delete(CMLBond bond)
getBuiltinArray
public CMLStringArray getBuiltinArray(int builtinId)
- this is rather trick since CMLBondArray is subclasses from CMLBond and CMLStringArray
from CMLStringVal we can extract the array object as scalars and simply cast them
- Specified by:
getBuiltinArray in interface BuiltinArrayContainer
setBuiltinArray
public void setBuiltinArray(int builtinId,
CMLStringArray array)
- Specified by:
setBuiltinArray in interface BuiltinArrayContainer
getNonBuiltinArray
public CMLStringArray getNonBuiltinArray(java.lang.String name)
- Specified by:
getNonBuiltinArray in interface BuiltinArrayContainer
setNonBuiltinArray
public void setNonBuiltinArray(java.lang.String name,
CMLStringArray array)
- Specified by:
setNonBuiltinArray in interface BuiltinArrayContainer
deleteNonBuiltinArray
public void deleteNonBuiltinArray(java.lang.String name)
- Specified by:
deleteNonBuiltinArray in interface BuiltinArrayContainer
createArrayElement
public AbstractBuiltinContainer createArrayElement(org.w3c.dom.Document document)
- Specified by:
createArrayElement in interface BuiltinArrayContainer