adapforms.runtime.state
Class StateTree.DOMStateDocument

java.lang.Object
  extended by adapforms.runtime.state.dom.AbstractNode
      extended by adapforms.runtime.state.dom.AbstractDocument
          extended by adapforms.runtime.state.StateTree.DOMStateDocument
All Implemented Interfaces:
org.w3c.dom.Document, org.w3c.dom.DocumentFragment, org.w3c.dom.Node
Enclosing class:
StateTree

 class StateTree.DOMStateDocument
extends AbstractDocument
implements org.w3c.dom.DocumentFragment

DOM document representation of the state tree, used for XPath evaluation etc.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Field Summary
 
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
 
Constructor Summary
StateTree.DOMStateDocument()
           
 
Method Summary
 org.w3c.dom.NodeList getChildNodes()
           
 org.w3c.dom.Element getDocumentElement()
           
 java.lang.String getDocumentURI()
           
 org.w3c.dom.Node getFirstChild()
           
 org.w3c.dom.DOMImplementation getImplementation()
           
 java.lang.String getInputEncoding()
           
 org.w3c.dom.Node getLastChild()
           
 java.lang.String getNamespaceURI()
           
 java.lang.String getNodeName()
           
 java.lang.String getPrefix()
           
 boolean getStrictErrorChecking()
           
 java.lang.String getXmlEncoding()
           
 boolean getXmlStandalone()
           
 java.lang.String getXmlVersion()
           
 boolean hasChildNodes()
           
 boolean isEqualNode(org.w3c.dom.Node arg)
           
 boolean isSameNode(org.w3c.dom.Node other)
           
 void toogleFragmentEmulation(boolean value)
          Determine if this DOM Document should emulate a DOM DocumentFragment instead, having the child nodes of this one as "multiple roots".
 java.lang.String toString()
           
 
Methods inherited from class adapforms.runtime.state.dom.AbstractDocument
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getTextContent, hasAttributes, importNode, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setTextContent, setXmlStandalone, setXmlVersion
 
Methods inherited from class adapforms.runtime.state.dom.AbstractNode
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNextSibling, getPreviousSibling, getUserData, insertBefore, isDefaultNamespace, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

StateTree.DOMStateDocument

StateTree.DOMStateDocument()
Method Detail

toogleFragmentEmulation

public void toogleFragmentEmulation(boolean value)
Determine if this DOM Document should emulate a DOM DocumentFragment instead, having the child nodes of this one as "multiple roots".

Used during XPath evaluation.


getDocumentElement

public org.w3c.dom.Element getDocumentElement()
Specified by:
getDocumentElement in interface org.w3c.dom.Document
Overrides:
getDocumentElement in class AbstractDocument

isSameNode

public boolean isSameNode(org.w3c.dom.Node other)
Specified by:
isSameNode in interface org.w3c.dom.Node
Overrides:
isSameNode in class AbstractNode

getDocumentURI

public java.lang.String getDocumentURI()
Specified by:
getDocumentURI in interface org.w3c.dom.Document
Overrides:
getDocumentURI in class AbstractDocument

getImplementation

public org.w3c.dom.DOMImplementation getImplementation()
Specified by:
getImplementation in interface org.w3c.dom.Document
Overrides:
getImplementation in class AbstractDocument

getInputEncoding

public java.lang.String getInputEncoding()
Specified by:
getInputEncoding in interface org.w3c.dom.Document
Overrides:
getInputEncoding in class AbstractDocument

getStrictErrorChecking

public boolean getStrictErrorChecking()
Specified by:
getStrictErrorChecking in interface org.w3c.dom.Document
Overrides:
getStrictErrorChecking in class AbstractDocument

getXmlEncoding

public java.lang.String getXmlEncoding()
Specified by:
getXmlEncoding in interface org.w3c.dom.Document
Overrides:
getXmlEncoding in class AbstractDocument

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface org.w3c.dom.Node
Overrides:
getPrefix in class AbstractNode

getXmlStandalone

public boolean getXmlStandalone()
Specified by:
getXmlStandalone in interface org.w3c.dom.Document
Overrides:
getXmlStandalone in class AbstractDocument

isEqualNode

public boolean isEqualNode(org.w3c.dom.Node arg)
Specified by:
isEqualNode in interface org.w3c.dom.Node
Overrides:
isEqualNode in class AbstractNode

getXmlVersion

public java.lang.String getXmlVersion()
Specified by:
getXmlVersion in interface org.w3c.dom.Document
Overrides:
getXmlVersion in class AbstractDocument

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface org.w3c.dom.Node
Overrides:
hasChildNodes in class AbstractNode

getChildNodes

public org.w3c.dom.NodeList getChildNodes()
Specified by:
getChildNodes in interface org.w3c.dom.Node
Overrides:
getChildNodes in class AbstractNode

getFirstChild

public org.w3c.dom.Node getFirstChild()
Specified by:
getFirstChild in interface org.w3c.dom.Node
Overrides:
getFirstChild in class AbstractNode

getLastChild

public org.w3c.dom.Node getLastChild()
Specified by:
getLastChild in interface org.w3c.dom.Node
Overrides:
getLastChild in class AbstractNode

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node
Overrides:
getNodeName in class AbstractNode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNamespaceURI

public java.lang.String getNamespaceURI()
Specified by:
getNamespaceURI in interface org.w3c.dom.Node
Overrides:
getNamespaceURI in class AbstractNode