org.jscience.ml.cml
Interface AbstractCMLDocument

All Superinterfaces:
CMLNode, org.w3c.dom.Document, org.w3c.dom.Node, PMRDocument
All Known Implementing Classes:
AbstractCMLDocumentImpl

public interface AbstractCMLDocument
extends PMRDocument, CMLNode

CORE InterfaceDTD ClassThe interface for any Document objects There are NO Core Methods.


Field Summary
static java.lang.String DEFAULT_OUTPUT_DTD
          DOCUMENT ME!
static java.lang.String DEFAULT_OUTPUT_ENCODING
          DOCUMENT ME!
static java.lang.String DEFAULT_OUTPUT_NAMESPACE
          DOCUMENT ME!
static java.lang.String NULL_DTD
          DOCUMENT ME!
static java.lang.String NULL_NAMESPACE
          DOCUMENT ME!
static java.lang.String PACKAGE_NAME
          the package name
 
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
 
Fields inherited from interface org.jscience.ml.cml.CMLNode
ARRAY, CML1, CML2
 
Method Summary
 AbstractBase clone(AbstractBase element)
          clone element in context of document.
 AbstractBase createAbstractBase()
          creates new AbstractBase
 org.w3c.dom.Element createSubclassedElement(java.lang.String tagName)
          creates new Element of given subclass
 boolean getDebug()
          debug status
 org.w3c.dom.Element[] getElementList(java.lang.String name)
          gets all element of given type (included nested children)
 java.util.Vector getElementVector(java.lang.String name)
          gets all element of given type (included nested children)
 org.w3c.dom.Element getFirstElement(java.lang.String name)
          gets first element of given type
 void setDebug(boolean d)
          toggle debugging
 org.w3c.dom.Element subclass(org.w3c.dom.Element oldEl)
          DOCUMENT ME!
 void updateDelegates()
          update delegates. updates documentElement delegates (content and attributes) then recurses through children
 void updateDOM()
          update DOM. updates documentElement DOM (content and attributes) then recurses through children
 
Methods inherited from interface org.w3c.dom.Document
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersion
 
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
 
Methods inherited from interface org.jscience.ml.cml.CMLNode
setArraySyntax, setVersion, writeXML, writeXML
 

Field Detail

PACKAGE_NAME

static final java.lang.String PACKAGE_NAME
the package name

See Also:
Constant Field Values

NULL_DTD

static final java.lang.String NULL_DTD
DOCUMENT ME!

See Also:
Constant Field Values

NULL_NAMESPACE

static final java.lang.String NULL_NAMESPACE
DOCUMENT ME!

See Also:
Constant Field Values

DEFAULT_OUTPUT_ENCODING

static final java.lang.String DEFAULT_OUTPUT_ENCODING
DOCUMENT ME!

See Also:
Constant Field Values

DEFAULT_OUTPUT_DTD

static final java.lang.String DEFAULT_OUTPUT_DTD
DOCUMENT ME!

See Also:
Constant Field Values

DEFAULT_OUTPUT_NAMESPACE

static final java.lang.String DEFAULT_OUTPUT_NAMESPACE
DOCUMENT ME!

See Also:
Constant Field Values
Method Detail

getFirstElement

org.w3c.dom.Element getFirstElement(java.lang.String name)
gets first element of given type

Parameters:
name - element to return
Returns:
Element the element (null if none)

getElementVector

java.util.Vector getElementVector(java.lang.String name)
gets all element of given type (included nested children)

Parameters:
name - elements to return
Returns:
Vector of elements (empty if none)

getElementList

org.w3c.dom.Element[] getElementList(java.lang.String name)
gets all element of given type (included nested children)

Parameters:
name - elements to return
Returns:
array of elements (empty if none)

createSubclassedElement

org.w3c.dom.Element createSubclassedElement(java.lang.String tagName)
creates new Element of given subclass

Parameters:
tagName - determines the class
Returns:
the new element

subclass

org.w3c.dom.Element subclass(org.w3c.dom.Element oldEl)
DOCUMENT ME!

Parameters:
oldEl - DOCUMENT ME!
Returns:
DOCUMENT ME!

createAbstractBase

AbstractBase createAbstractBase()
creates new AbstractBase

Returns:
the new element

setDebug

void setDebug(boolean d)
toggle debugging

Parameters:
d - debug

getDebug

boolean getDebug()
debug status

Returns:
is debug set

clone

AbstractBase clone(AbstractBase element)
                   throws CMLException
clone element in context of document.

Parameters:
element - to clone (may or may not be owned by this)
Returns:
the cloned element (owner is this)
Throws:
CMLException - cannot clone non-AbstractBase

updateDelegates

void updateDelegates()
update delegates. updates documentElement delegates (content and attributes) then recurses through children


updateDOM

void updateDOM()
update DOM. updates documentElement DOM (content and attributes) then recurses through children