|
|||||||||
| Home >> All >> org >> w3c >> [ tidy overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.w3c.tidy
Class DOMDocumentImpl

java.lang.Objectorg.w3c.tidy.DOMNodeImpl
org.w3c.tidy.DOMDocumentImpl
- All Implemented Interfaces:
- org.w3c.dom.Document, org.w3c.dom.Node
- public class DOMDocumentImpl
- extends DOMNodeImpl
- implements org.w3c.dom.Document
- extends DOMNodeImpl
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
| Field Summary | |
private TagTable |
tt
|
| Fields inherited from class org.w3c.tidy.DOMNodeImpl |
adaptee |
| Constructor Summary | |
protected |
DOMDocumentImpl(Node adaptee)
|
| Method Summary | |
org.w3c.dom.Attr |
createAttribute(java.lang.String name)
Creates an Attr of the given name. |
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM2 - not implemented. |
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data)
Creates a CDATASection node whose value is the specified
string. |
org.w3c.dom.Comment |
createComment(java.lang.String data)
Creates a Comment node given the specified string. |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
Creates an empty DocumentFragment object. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
Creates an element of the type specified. |
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM2 - not implemented. |
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name)
Creates an EntityReference object. |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
Creates a ProcessingInstruction node given the specified
name and data strings. |
org.w3c.dom.Text |
createTextNode(java.lang.String data)
Creates a Text node given the specified string. |
org.w3c.dom.DocumentType |
getDoctype()
The Document Type Declaration (see DocumentType)
associated with this document. |
org.w3c.dom.Element |
getDocumentElement()
This is a convenience attribute that allows direct access to the child node that is the document element of the document. |
org.w3c.dom.Element |
getElementById(java.lang.String elementId)
DOM2 - not implemented. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagname)
Returns a NodeList of all the Elements in
document order with a given tag name and are contained in the
document. |
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM2 - not implemented. |
org.w3c.dom.DOMImplementation |
getImplementation()
The DOMImplementation object that handles this document. |
java.lang.String |
getNodeName()
The name of this node, depending on its type; see the table above. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
DOM2 - not implemented. |
void |
setTagTable(TagTable tt)
|
| 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.Document |
adoptNode, getDocumentURI, getDomConfig, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersion |
| Methods inherited from interface org.w3c.dom.Node |
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 |
| Field Detail |
tt
private TagTable tt
| Constructor Detail |
DOMDocumentImpl
protected DOMDocumentImpl(Node adaptee)
| Method Detail |
setTagTable
public void setTagTable(TagTable tt)
getNodeName
public java.lang.String getNodeName()
- Description copied from interface:
org.w3c.dom.Node - The name of this node, depending on its type; see the table above.
- Specified by:
getNodeNamein interfaceorg.w3c.dom.Node- Overrides:
getNodeNamein classDOMNodeImpl
getNodeType
public short getNodeType()
- Description copied from interface:
org.w3c.dom.Node - A code representing the type of the underlying object, as defined above.
- Specified by:
getNodeTypein interfaceorg.w3c.dom.Node- Overrides:
getNodeTypein classDOMNodeImpl
getDoctype
public org.w3c.dom.DocumentType getDoctype()
- Description copied from interface:
org.w3c.dom.Document - The Document Type Declaration (see
DocumentType) associated with this document. For XML documents without a document type declaration this returnsnull. For HTML documents, aDocumentTypeobject may be returned, independently of the presence or absence of document type declaration in the HTML document.
This provides direct access to theDocumentTypenode, child node of thisDocument. This node can be set at document creation time and later changed through the use of child nodes manipulation methods, such asNode.insertBefore, orNode.replaceChild. Note, however, that while some implementations may instantiate different types ofDocumentobjects supporting additional features than the "Core", such as "HTML" [DOM Level 2 HTML] , based on theDocumentTypespecified at creation time, changing it afterwards is very unlikely to result in a change of the features supported.- Specified by:
getDoctypein interfaceorg.w3c.dom.Document
getImplementation
public org.w3c.dom.DOMImplementation getImplementation()
- Description copied from interface:
org.w3c.dom.Document - The
DOMImplementationobject that handles this document. A DOM application may use objects from multiple implementations.- Specified by:
getImplementationin interfaceorg.w3c.dom.Document
getDocumentElement
public org.w3c.dom.Element getDocumentElement()
- Description copied from interface:
org.w3c.dom.Document - This is a convenience attribute that allows direct access to the child
node that is the document element of the document.
- Specified by:
getDocumentElementin interfaceorg.w3c.dom.Document
createElement
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Document - Creates an element of the type specified. Note that the instance
returned implements the
Elementinterface, so attributes can be specified directly on the returned object.
In addition, if there are known attributes with default values,Attrnodes representing them are automatically created and attached to the element.
To create an element with a qualified name and namespace URI, use thecreateElementNSmethod.- Specified by:
createElementin interfaceorg.w3c.dom.Document
createDocumentFragment
public org.w3c.dom.DocumentFragment createDocumentFragment()
- Description copied from interface:
org.w3c.dom.Document - Creates an empty
DocumentFragmentobject.- Specified by:
createDocumentFragmentin interfaceorg.w3c.dom.Document
createTextNode
public org.w3c.dom.Text createTextNode(java.lang.String data)
- Description copied from interface:
org.w3c.dom.Document - Creates a
Textnode given the specified string.- Specified by:
createTextNodein interfaceorg.w3c.dom.Document
createComment
public org.w3c.dom.Comment createComment(java.lang.String data)
- Description copied from interface:
org.w3c.dom.Document - Creates a
Commentnode given the specified string.- Specified by:
createCommentin interfaceorg.w3c.dom.Document
createCDATASection
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Document - Creates a
CDATASectionnode whose value is the specified string.- Specified by:
createCDATASectionin interfaceorg.w3c.dom.Document
createProcessingInstruction
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Document - Creates a
ProcessingInstructionnode given the specified name and data strings.- Specified by:
createProcessingInstructionin interfaceorg.w3c.dom.Document
createAttribute
public org.w3c.dom.Attr createAttribute(java.lang.String name) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Document - Creates an
Attrof the given name. Note that theAttrinstance can then be set on anElementusing thesetAttributeNodemethod.
To create an attribute with a qualified name and namespace URI, use thecreateAttributeNSmethod.- Specified by:
createAttributein interfaceorg.w3c.dom.Document
createEntityReference
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Document - Creates an
EntityReferenceobject. In addition, if the referenced entity is known, the child list of theEntityReferencenode is made the same as that of the correspondingEntitynode.Note: If any descendant of the
Entitynode has an unbound namespace prefix, the corresponding descendant of the createdEntityReferencenode is also unbound; (itsnamespaceURIisnull). The DOM Level 2 and 3 do not support any mechanism to resolve namespace prefixes in this case.- Specified by:
createEntityReferencein interfaceorg.w3c.dom.Document
getElementsByTagName
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
- Description copied from interface:
org.w3c.dom.Document - Returns a
NodeListof all theElementsin document order with a given tag name and are contained in the document.- Specified by:
getElementsByTagNamein interfaceorg.w3c.dom.Document
importNode
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMException
- DOM2 - not implemented.
- Specified by:
importNodein interfaceorg.w3c.dom.Document
createAttributeNS
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
- DOM2 - not implemented.
- Specified by:
createAttributeNSin interfaceorg.w3c.dom.Document
createElementNS
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
- DOM2 - not implemented.
- Specified by:
createElementNSin interfaceorg.w3c.dom.Document
getElementsByTagNameNS
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
- DOM2 - not implemented.
- Specified by:
getElementsByTagNameNSin interfaceorg.w3c.dom.Document
getElementById
public org.w3c.dom.Element getElementById(java.lang.String elementId)
- DOM2 - not implemented.
- Specified by:
getElementByIdin interfaceorg.w3c.dom.Document
|
|||||||||
| Home >> All >> org >> w3c >> [ tidy overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC