org.w3c.tidy
Class DOMDocumentImpl

java.lang.Object
  extended byorg.w3c.tidy.DOMNodeImpl
      extended byorg.w3c.tidy.DOMDocumentImpl
All Implemented Interfaces:
org.w3c.dom.Document, org.w3c.dom.Node

public class DOMDocumentImpl
extends DOMNodeImpl
implements org.w3c.dom.Document

DOMDocumentImpl.

Version:
$Revision: 1.13 $ ($Author: fgiust $)
Author:
Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina

Field Summary
private  TagTable tt
          A DOM Document has its own TagTable.
 
Fields inherited from class org.w3c.tidy.DOMNodeImpl
adaptee
 
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 DOMDocumentImpl(Node adaptee)
          Instantiates a new Dom document with a default tag table.
 
Method Summary
 org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
           
 org.w3c.dom.Attr createAttribute(java.lang.String name)
           
 org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
           
 org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
           
 org.w3c.dom.Comment createComment(java.lang.String data)
           
 org.w3c.dom.DocumentFragment createDocumentFragment()
           
 org.w3c.dom.Element createElement(java.lang.String tagName)
           
 org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
           
 org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
           
 org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
           
 org.w3c.dom.Text createTextNode(java.lang.String data)
           
 org.w3c.dom.DocumentType getDoctype()
           
 org.w3c.dom.Element getDocumentElement()
           
 java.lang.String getDocumentURI()
           
 org.w3c.dom.DOMConfiguration getDomConfig()
           
 org.w3c.dom.Element getElementById(java.lang.String elementId)
           
 org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
           
 org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
           
 org.w3c.dom.DOMImplementation getImplementation()
           
 java.lang.String getInputEncoding()
           
 java.lang.String getNodeName()
           
 short getNodeType()
           
 boolean getStrictErrorChecking()
           
 java.lang.String getXmlEncoding()
           
 boolean getXmlStandalone()
           
 java.lang.String getXmlVersion()
           
 org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep)
           
 void normalizeDocument()
           
 org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String qualifiedName)
           
 void setDocumentURI(java.lang.String documentURI)
           
 void setStrictErrorChecking(boolean strictErrorChecking)
           
 void setXmlStandalone(boolean xmlStandalone)
           
 void setXmlVersion(java.lang.String xmlVersion)
           
 
Methods inherited from class org.w3c.tidy.DOMNodeImpl
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, supports
 
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, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Field Detail

tt

private TagTable tt
A DOM Document has its own TagTable.

Constructor Detail

DOMDocumentImpl

protected DOMDocumentImpl(Node adaptee)
Instantiates a new Dom document with a default tag table.

Parameters:
adaptee - tidy Node
Method Detail

getNodeName

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

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node
Overrides:
getNodeType in class DOMNodeImpl
See Also:
Node.getNodeType()

getDoctype

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

getImplementation

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

getDocumentElement

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

createElement

public org.w3c.dom.Element createElement(java.lang.String tagName)
                                  throws org.w3c.dom.DOMException
Specified by:
createElement in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException
See Also:
Document.createElement(java.lang.String)

createDocumentFragment

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

createTextNode

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

createComment

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

createCDATASection

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

createProcessingInstruction

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

createAttribute

public org.w3c.dom.Attr createAttribute(java.lang.String name)
                                 throws org.w3c.dom.DOMException
Specified by:
createAttribute in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException
See Also:
Document.createAttribute(java.lang.String)

createEntityReference

public org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
                                                  throws org.w3c.dom.DOMException
Specified by:
createEntityReference in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException
See Also:
Document.createEntityReference(java.lang.String)

getElementsByTagName

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

importNode

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

createAttributeNS

public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
                                          java.lang.String qualifiedName)
                                   throws org.w3c.dom.DOMException
Specified by:
createAttributeNS in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException
See Also:
Document.createAttributeNS(java.lang.String, java.lang.String)

createElementNS

public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
                                           java.lang.String qualifiedName)
                                    throws org.w3c.dom.DOMException
Specified by:
createElementNS in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException
See Also:
Document.createElementNS(java.lang.String, java.lang.String)

getElementsByTagNameNS

public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
                                                   java.lang.String localName)
Specified by:
getElementsByTagNameNS in interface org.w3c.dom.Document
See Also:
Document.getElementsByTagNameNS(java.lang.String, java.lang.String)

getElementById

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

adoptNode

public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
                           throws org.w3c.dom.DOMException
Throws:
org.w3c.dom.DOMException
See Also:
org.w3c.dom.Document#adoptNode(org.w3c.dom.Node)

getDocumentURI

public java.lang.String getDocumentURI()
See Also:
org.w3c.dom.Document#getDocumentURI()

getDomConfig

public org.w3c.dom.DOMConfiguration getDomConfig()
See Also:
org.w3c.dom.Document#getDomConfig()

getInputEncoding

public java.lang.String getInputEncoding()
See Also:
org.w3c.dom.Document#getInputEncoding()

getStrictErrorChecking

public boolean getStrictErrorChecking()
See Also:
org.w3c.dom.Document#getStrictErrorChecking()

getXmlEncoding

public java.lang.String getXmlEncoding()
See Also:
org.w3c.dom.Document#getXmlEncoding()

getXmlStandalone

public boolean getXmlStandalone()
See Also:
org.w3c.dom.Document#getXmlStandalone()

getXmlVersion

public java.lang.String getXmlVersion()
See Also:
org.w3c.dom.Document#getXmlVersion()

normalizeDocument

public void normalizeDocument()
See Also:
org.w3c.dom.Document#normalizeDocument()

renameNode

public org.w3c.dom.Node renameNode(org.w3c.dom.Node n,
                                   java.lang.String namespaceURI,
                                   java.lang.String qualifiedName)
                            throws org.w3c.dom.DOMException
Throws:
org.w3c.dom.DOMException
See Also:
org.w3c.dom.Document#renameNode(org.w3c.dom.Node, java.lang.String, java.lang.String)

setDocumentURI

public void setDocumentURI(java.lang.String documentURI)
See Also:
org.w3c.dom.Document#setDocumentURI(java.lang.String)

setStrictErrorChecking

public void setStrictErrorChecking(boolean strictErrorChecking)
See Also:
org.w3c.dom.Document#setStrictErrorChecking(boolean)

setXmlStandalone

public void setXmlStandalone(boolean xmlStandalone)
                      throws org.w3c.dom.DOMException
Throws:
org.w3c.dom.DOMException
See Also:
org.w3c.dom.Document#setXmlStandalone(boolean)

setXmlVersion

public void setXmlVersion(java.lang.String xmlVersion)
                   throws org.w3c.dom.DOMException
Throws:
org.w3c.dom.DOMException
See Also:
org.w3c.dom.Document#setXmlVersion(java.lang.String)