org.jbind.xml.dom3.core
Class DomDocument

java.lang.Object
  extended byorg.jbind.xml.dom3.core.DomObject
      extended byorg.jbind.xml.dom3.core.DomNode
          extended byorg.jbind.xml.dom3.core.DomNonAttrOrElm
              extended byorg.jbind.xml.dom3.core.DomDocument
All Implemented Interfaces:
org.w3c.dom.Document, IDocumentImpl, IDomDocument, IDomNode, IDomObject, IDomParent, IHasLocation, IImplContainer, org.w3c.dom.Node

public class DomDocument
extends DomNonAttrOrElm
implements IDomDocument


Field Summary
 
Fields inherited from class org.jbind.xml.dom3.core.DomNode
myChildNodes, myParentNode
 
Fields inherited from class org.jbind.xml.dom3.core.DomObject
myOwnerDocument
 
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
 
Constructor Summary
protected DomDocument(IDomDocument aDomDocument, boolean aDeep)
           
  DomDocument(IDomImplementation aDomImplementation, java.lang.String aNamespaceUri, java.lang.String aQName, org.w3c.dom.DocumentType aDocumentType)
           
 
Method Summary
 org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
           
 boolean canSetNormalizationFeature(java.lang.String aFeature, boolean anOnOrOff)
           
 org.w3c.dom.Node cloneNode(boolean aDeep)
           
 org.w3c.dom.Attr createAttribute(java.lang.String aName)
           
 org.w3c.dom.Attr createAttributeNS(java.lang.String aNamespaceUri, java.lang.String aQualifiedName)
           
 org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
           
 org.w3c.dom.Comment createComment(java.lang.String aData)
           
 org.w3c.dom.DocumentFragment createDocumentFragment()
           
 org.w3c.dom.Element createElement(java.lang.String aTagName)
           
 org.w3c.dom.Element createElementNS(java.lang.String aNamespaceUri, java.lang.String aQName)
           
 org.w3c.dom.EntityReference createEntityReference(java.lang.String aName)
           
 org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
           
 org.w3c.dom.Text createTextNode(ITextContentProvider aProvider)
           
 org.w3c.dom.Text createTextNode(java.lang.String data)
           
protected  void doAfterAccept(IDomVisitor aDomVisitor)
           
protected  void doBeforeAccept(IDomVisitor aDomVisitor)
           
protected  IDomNodeList doCloneChildNodes(IDomNodeList aDomNodeList, boolean aDeep)
          Hook method for cloning the child nodes.
 java.lang.String getActualEncoding()
           
 org.w3c.dom.DocumentType getDoctype()
           
 org.w3c.dom.Element getDocumentElement()
           
 java.lang.String getDocumentURI()
           
 org.w3c.dom.Element getElementById(java.lang.String elementId)
           
 org.w3c.dom.NodeList getElementsByTagName(java.lang.String aName)
           
 org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String aNamespaceUri, java.lang.String aLocalName)
           
 java.lang.String getEncoding()
           
 org.w3c.dom.Entity getEntity(java.lang.String aName)
           
 org.w3c.dom.DOMImplementation getImplementation()
           
 java.lang.String getNodeName()
           
 short getNodeType()
           
 java.lang.String getNodeValue()
           
 boolean getNormalizationFeature(java.lang.String aFeature)
           
 IAnyTypeData getRootData()
           
 boolean getStandalone()
           
 boolean getStrictErrorChecking()
           
 java.lang.String getTextContent()
           
 java.lang.String getVersion()
           
 org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep)
           
 void normalizeDocument()
           
 org.w3c.dom.Node renameNode(org.w3c.dom.Node aNode, java.lang.String aNamespaceUri, java.lang.String aQName)
           
 void setActualEncoding(java.lang.String anEncoding)
           
 void setDocumentURI(java.lang.String anUri)
           
 void setEncoding(java.lang.String anEncoding)
           
 void setNodeValue(java.lang.String aString)
           
 void setNormalizationFeature(java.lang.String aFeature, boolean anOnOrOff)
           
 void setStandalone(boolean aStandalone)
           
 void setStrictErrorChecking(boolean aStrictErrorChecking)
           
 void setVersion(java.lang.String aVersion)
           
 
Methods inherited from class org.jbind.xml.dom3.core.DomNonAttrOrElm
getAttributes, getLocalName, getNamespaceURI, getPrefix, hasAttributes, isDefault, isNil, setPrefix
 
Methods inherited from class org.jbind.xml.dom3.core.DomNode
accept, addElement, addElement, addText, appendChild, collectTextContent, collectTextContent, compareTreePosition, getAncestor, getBaseURI, getChild, getChildByClass, getChildNodes, getFirstChild, getInterface, getLastChild, getLocation, getNamespaceForPrefix, getNbChildren, getNextSibling, getNonDefaultedNbChildren, getParentImpl, getParentNode, getPrefixForNamespace, getPrefixToNamespaceMapping, getPreviousSibling, getUserData, hasChildNodes, insertAfter, insertBefore, isEqualNode, isSameNode, isSupported, iterChildren, lookupNamespacePrefix, lookupNamespaceURI, normalize, removeChild, replaceChild, restoreTextContent, saveTextContent, setChildNodes, setLocation, setPrefixToNamespaceMapping, setTextContent, setTextContent, visitChildren
 
Methods inherited from class org.jbind.xml.dom3.core.DomObject
checkMutability, checkOwnerDocument, getOwnerDocument, isReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix
 
Methods inherited from interface org.jbind.xml.dom3.types.IDomNode
accept, insertAfter, lookupNamespaceURI, setLocation, setPrefixToNamespaceMapping, setTextContent, setTextContent
 
Methods inherited from interface org.jbind.xml.dom3.types.IDomObject
getOwnerDocument, isReadOnly
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.core.bridge.IImplContainer
addElement, addElement, addText, iterChildren
 

Constructor Detail

DomDocument

public DomDocument(IDomImplementation aDomImplementation,
                   java.lang.String aNamespaceUri,
                   java.lang.String aQName,
                   org.w3c.dom.DocumentType aDocumentType)

DomDocument

protected DomDocument(IDomDocument aDomDocument,
                      boolean aDeep)
Method Detail

getNodeName

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

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node

getNodeValue

public java.lang.String getNodeValue()
Specified by:
getNodeValue in interface org.w3c.dom.Node

setNodeValue

public void setNodeValue(java.lang.String aString)
Specified by:
setNodeValue in interface org.w3c.dom.Node

cloneNode

public org.w3c.dom.Node cloneNode(boolean aDeep)
Specified by:
cloneNode in interface org.w3c.dom.Node

doCloneChildNodes

protected IDomNodeList doCloneChildNodes(IDomNodeList aDomNodeList,
                                         boolean aDeep)
Description copied from class: DomNode
Hook method for cloning the child nodes.

Specified by:
doCloneChildNodes in class DomNode

getDoctype

public org.w3c.dom.DocumentType getDoctype()
Specified by:
getDoctype in interface org.w3c.dom.Document

adoptNode

public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
                           throws DomException
Throws:
DomException

createAttribute

public org.w3c.dom.Attr createAttribute(java.lang.String aName)
                                 throws DomException
Specified by:
createAttribute in interface org.w3c.dom.Document
Throws:
DomException

createAttributeNS

public org.w3c.dom.Attr createAttributeNS(java.lang.String aNamespaceUri,
                                          java.lang.String aQualifiedName)
                                   throws DomException
Specified by:
createAttributeNS in interface org.w3c.dom.Document
Throws:
DomException

createCDATASection

public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
                                            throws DomException
Specified by:
createCDATASection in interface org.w3c.dom.Document
Throws:
DomException

createComment

public org.w3c.dom.Comment createComment(java.lang.String aData)
Specified by:
createComment in interface org.w3c.dom.Document

createDocumentFragment

public org.w3c.dom.DocumentFragment createDocumentFragment()
Specified by:
createDocumentFragment in interface org.w3c.dom.Document

createElement

public org.w3c.dom.Element createElement(java.lang.String aTagName)
                                  throws DomException
Specified by:
createElement in interface org.w3c.dom.Document
Throws:
DomException

createElementNS

public org.w3c.dom.Element createElementNS(java.lang.String aNamespaceUri,
                                           java.lang.String aQName)
                                    throws DomException
Specified by:
createElementNS in interface org.w3c.dom.Document
Throws:
DomException

createEntityReference

public org.w3c.dom.EntityReference createEntityReference(java.lang.String aName)
                                                  throws DomException
Specified by:
createEntityReference in interface org.w3c.dom.Document
Throws:
DomException

createProcessingInstruction

public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
                                                                     java.lang.String data)
                                                              throws DomException
Specified by:
createProcessingInstruction in interface org.w3c.dom.Document
Throws:
DomException

createTextNode

public org.w3c.dom.Text createTextNode(java.lang.String data)
Specified by:
createTextNode in interface org.w3c.dom.Document

createTextNode

public org.w3c.dom.Text createTextNode(ITextContentProvider aProvider)
Specified by:
createTextNode in interface IDomDocument

getDocumentElement

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

getRootData

public IAnyTypeData getRootData()
Specified by:
getRootData in interface IDocumentImpl

getElementById

public org.w3c.dom.Element getElementById(java.lang.String elementId)
Specified by:
getElementById in interface org.w3c.dom.Document

getElementsByTagName

public org.w3c.dom.NodeList getElementsByTagName(java.lang.String aName)
Specified by:
getElementsByTagName in interface org.w3c.dom.Document

getElementsByTagNameNS

public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String aNamespaceUri,
                                                   java.lang.String aLocalName)
Specified by:
getElementsByTagNameNS in interface org.w3c.dom.Document

getEncoding

public java.lang.String getEncoding()

getActualEncoding

public java.lang.String getActualEncoding()

setActualEncoding

public void setActualEncoding(java.lang.String anEncoding)

getImplementation

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

getStandalone

public boolean getStandalone()

getStrictErrorChecking

public boolean getStrictErrorChecking()

getVersion

public java.lang.String getVersion()

getTextContent

public java.lang.String getTextContent()
Specified by:
getTextContent in interface IDomNode

importNode

public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
                                   boolean deep)
                            throws DomException
Specified by:
importNode in interface org.w3c.dom.Document
Throws:
DomException

getDocumentURI

public java.lang.String getDocumentURI()

setDocumentURI

public void setDocumentURI(java.lang.String anUri)

normalizeDocument

public void normalizeDocument()

canSetNormalizationFeature

public boolean canSetNormalizationFeature(java.lang.String aFeature,
                                          boolean anOnOrOff)

setNormalizationFeature

public void setNormalizationFeature(java.lang.String aFeature,
                                    boolean anOnOrOff)

getNormalizationFeature

public boolean getNormalizationFeature(java.lang.String aFeature)

renameNode

public org.w3c.dom.Node renameNode(org.w3c.dom.Node aNode,
                                   java.lang.String aNamespaceUri,
                                   java.lang.String aQName)

setEncoding

public void setEncoding(java.lang.String anEncoding)

setStandalone

public void setStandalone(boolean aStandalone)

setStrictErrorChecking

public void setStrictErrorChecking(boolean aStrictErrorChecking)

setVersion

public void setVersion(java.lang.String aVersion)

getEntity

public org.w3c.dom.Entity getEntity(java.lang.String aName)
Specified by:
getEntity in interface IDomDocument

doBeforeAccept

protected void doBeforeAccept(IDomVisitor aDomVisitor)
Specified by:
doBeforeAccept in class DomNode

doAfterAccept

protected void doAfterAccept(IDomVisitor aDomVisitor)
Specified by:
doAfterAccept in class DomNode