org.w3c.tidy

Class DOMDocumentImpl

Implemented Interfaces:
org.w3c.dom.Document, org.w3c.dom.Node

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

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

Field Summary

Fields inherited from class org.w3c.tidy.DOMNodeImpl

adaptee

Constructor Summary

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(String name)
org.w3c.dom.Attr
createAttributeNS(String namespaceURI, String qualifiedName)
org.w3c.dom.CDATASection
createCDATASection(String data)
org.w3c.dom.Comment
createComment(String data)
org.w3c.dom.DocumentFragment
createDocumentFragment()
org.w3c.dom.Element
createElement(String tagName)
org.w3c.dom.Element
createElementNS(String namespaceURI, String qualifiedName)
org.w3c.dom.EntityReference
createEntityReference(String name)
org.w3c.dom.ProcessingInstruction
createProcessingInstruction(String target, String data)
org.w3c.dom.Text
createTextNode(String data)
org.w3c.dom.DocumentType
getDoctype()
org.w3c.dom.Element
getDocumentElement()
String
getDocumentURI()
DOMConfiguration
getDomConfig()
org.w3c.dom.Element
getElementById(String elementId)
org.w3c.dom.NodeList
getElementsByTagName(String tagname)
org.w3c.dom.NodeList
getElementsByTagNameNS(String namespaceURI, String localName)
org.w3c.dom.DOMImplementation
getImplementation()
String
getInputEncoding()
String
getNodeName()
short
getNodeType()
boolean
getStrictErrorChecking()
String
getXmlEncoding()
boolean
getXmlStandalone()
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, String namespaceURI, String qualifiedName)
void
setDocumentURI(String documentURI)
void
setStrictErrorChecking(boolean strictErrorChecking)
void
setXmlStandalone(boolean xmlStandalone)
void
setXmlVersion(String xmlVersion)

Methods inherited from class org.w3c.tidy.DOMNodeImpl

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, supports

Constructor Details

DOMDocumentImpl

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

Method Details

adoptNode

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

createAttribute

public org.w3c.dom.Attr createAttribute(String name)
            throws DOMException
See Also:
org.w3c.dom.Document.createAttribute

createAttributeNS

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

createCDATASection

public org.w3c.dom.CDATASection createCDATASection(String data)
            throws DOMException
See Also:
org.w3c.dom.Document.createCDATASection

createComment

public org.w3c.dom.Comment createComment(String data)
See Also:
org.w3c.dom.Document.createComment

createDocumentFragment

public org.w3c.dom.DocumentFragment createDocumentFragment()
See Also:
org.w3c.dom.Document.createDocumentFragment

createElement

public org.w3c.dom.Element createElement(String tagName)
            throws DOMException
See Also:
org.w3c.dom.Document.createElement

createElementNS

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

createEntityReference

public org.w3c.dom.EntityReference createEntityReference(String name)
            throws DOMException
See Also:
org.w3c.dom.Document.createEntityReference

createProcessingInstruction

public org.w3c.dom.ProcessingInstruction createProcessingInstruction(String target,
                                                                     String data)
            throws DOMException
See Also:
org.w3c.dom.Document.createProcessingInstruction

createTextNode

public org.w3c.dom.Text createTextNode(String data)
See Also:
org.w3c.dom.Document.createTextNode

getDoctype

public org.w3c.dom.DocumentType getDoctype()
See Also:
org.w3c.dom.Document.getDoctype

getDocumentElement

public org.w3c.dom.Element getDocumentElement()
See Also:
org.w3c.dom.Document.getDocumentElement

getDocumentURI

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

getDomConfig

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

getElementById

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

getElementsByTagName

public org.w3c.dom.NodeList getElementsByTagName(String tagname)
See Also:
org.w3c.dom.Document.getElementsByTagName

getElementsByTagNameNS

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

getImplementation

public org.w3c.dom.DOMImplementation getImplementation()
See Also:
org.w3c.dom.Document.getImplementation

getInputEncoding

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

getNodeName

public String getNodeName()
Overrides:
getNodeName in interface DOMNodeImpl
See Also:
org.w3c.dom.Node.getNodeName

getNodeType

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

getStrictErrorChecking

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

getXmlEncoding

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

getXmlStandalone

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

getXmlVersion

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

importNode

public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
                                   boolean deep)
            throws DOMException
See Also:
org.w3c.dom.Document.importNode(org.w3c.dom.Node, boolean)

normalizeDocument

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

renameNode

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

setDocumentURI

public void setDocumentURI(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 DOMException
See Also:
org.w3c.dom.Document.setXmlStandalone(boolean)

setXmlVersion

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