org.w3c.tidy
Class DOMDocumentImpl

java.lang.Object
  |
  +--org.w3c.tidy.DOMNodeImpl
        |
        +--org.w3c.tidy.DOMDocumentImpl
All Implemented Interfaces:
Document, Node

public class DOMDocumentImpl
extends DOMNodeImpl
implements Document

DOMDocumentImpl (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.java for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000

Version:
1.4, 1999/09/04 DOM Support, 1.5, 1999/10/23 Tidy Release 27 Sep 1999, 1.6, 1999/11/01 Tidy Release 22 Oct 1999, 1.7, 1999/12/06 Tidy Release 30 Nov 1999, 1.8, 2000/01/22 Tidy Release 13 Jan 2000, 1.9, 2000/06/03 Tidy Release 30 Apr 2000, 1.10, 2000/07/22 Tidy Release 8 Jul 2000, 1.11, 2000/08/16 Tidy Release 4 Aug 2000
Author:
Dave Raggett , Andy Quick (translation to Java)

Field Summary
 
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)
           
 
Method Summary
 Node adoptNode(Node source)
           
 Attr createAttribute(String name)
           
 Attr createAttributeNS(String namespaceURI, String qualifiedName)
          DOM2 - not implemented.
 CDATASection createCDATASection(String data)
           
 Comment createComment(String data)
           
 DocumentFragment createDocumentFragment()
           
 Element createElement(String tagName)
           
 Element createElementNS(String namespaceURI, String qualifiedName)
          DOM2 - not implemented.
 EntityReference createEntityReference(String name)
           
 ProcessingInstruction createProcessingInstruction(String target, String data)
           
 Text createTextNode(String data)
           
 DocumentType getDoctype()
           
 Element getDocumentElement()
           
 Element getElementById(String elementId)
          DOM2 - not implemented.
 NodeList getElementsByTagName(String tagname)
           
 NodeList getElementsByTagNameNS(String namespaceURI, String localName)
          DOM2 - not implemented.
 String getEncoding()
           
 DOMImplementation getImplementation()
           
 String getNodeName()
           
 short getNodeType()
           
 boolean getStandalone()
           
 boolean getStrictErrorChecking()
           
 String getVersion()
           
 Node importNode(Node importedNode, boolean deep)
          DOM2 - not implemented.
 void setEncoding(String encoding)
           
 void setStandalone(boolean standalone)
           
 void setStrictErrorChecking(boolean strictErrorChecking)
           
 void setTagTable(TagTable tt)
           
 void setVersion(String version)
           
 
Methods inherited from class org.w3c.tidy.DOMNodeImpl
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, 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
 

Constructor Detail

DOMDocumentImpl

protected DOMDocumentImpl(Node adaptee)
Method Detail

setTagTable

public void setTagTable(TagTable tt)

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node
Overrides:
getNodeName in class DOMNodeImpl
See Also:
Node.getNodeName()

getNodeType

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

getDoctype

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

getImplementation

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

getDocumentElement

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

createElement

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

createDocumentFragment

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

createTextNode

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

createComment

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

createCDATASection

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

createProcessingInstruction

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

createAttribute

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

createEntityReference

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

getElementsByTagName

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

importNode

public Node importNode(Node importedNode,
                       boolean deep)
                throws DOMException
DOM2 - not implemented.

Specified by:
importNode in interface Document
Throws:
DOMException

createAttributeNS

public Attr createAttributeNS(String namespaceURI,
                              String qualifiedName)
                       throws DOMException
DOM2 - not implemented.

Specified by:
createAttributeNS in interface Document
Throws:
DOMException

createElementNS

public Element createElementNS(String namespaceURI,
                               String qualifiedName)
                        throws DOMException
DOM2 - not implemented.

Specified by:
createElementNS in interface Document
Throws:
DOMException

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespaceURI,
                                       String localName)
DOM2 - not implemented.

Specified by:
getElementsByTagNameNS in interface Document

getElementById

public Element getElementById(String elementId)
DOM2 - not implemented.

Specified by:
getElementById in interface Document

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getStandalone

public boolean getStandalone()

setStandalone

public void setStandalone(boolean standalone)

getStrictErrorChecking

public boolean getStrictErrorChecking()

setStrictErrorChecking

public void setStrictErrorChecking(boolean strictErrorChecking)

adoptNode

public Node adoptNode(Node source)
               throws DOMException
DOMException


Copyright © 1998-2000 World Wide Web Consortium (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights reserved.