|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.w3c.tidy.DOMNodeImpl
org.w3c.tidy.DOMDocumentImpl
public class DOMDocumentImpl
DOMDocumentImpl (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.java for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000
| 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 | |
|---|---|
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 root 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 with a
given tag name in the order in which they are encountered in a
preorder traversal of the Document tree. |
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.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 |
|---|
protected DOMDocumentImpl(Node adaptee)
| Method Detail |
|---|
public void setTagTable(TagTable tt)
public java.lang.String getNodeName()
org.w3c.dom.Node
getNodeName in interface org.w3c.dom.NodegetNodeName in class DOMNodeImplNode.getNodeName()public short getNodeType()
org.w3c.dom.Node
getNodeType in interface org.w3c.dom.NodegetNodeType in class DOMNodeImplNode.getNodeType()public org.w3c.dom.DocumentType getDoctype()
org.w3c.dom.DocumentDocumentType)
associated with this document. For HTML documents as well as XML
documents without a document type declaration this returns
null. The DOM Level 2 does not support editing the
Document Type Declaration. docType cannot be altered in
any way, including through the use of methods inherited from the
Node interface, such as insertNode or
removeNode.
getDoctype in interface org.w3c.dom.DocumentDocument.getDoctype()public org.w3c.dom.DOMImplementation getImplementation()
org.w3c.dom.DocumentDOMImplementation object that handles this document. A
DOM application may use objects from multiple implementations.
getImplementation in interface org.w3c.dom.DocumentDocument.getImplementation()public org.w3c.dom.Element getDocumentElement()
org.w3c.dom.Document
getDocumentElement in interface org.w3c.dom.DocumentDocument.getDocumentElement()
public org.w3c.dom.Element createElement(java.lang.String tagName)
throws org.w3c.dom.DOMException
org.w3c.dom.DocumentElement interface, so attributes
can be specified directly on the returned object.
Attr nodes representing them are automatically created
and attached to the element.
createElementNS method.
createElement in interface org.w3c.dom.DocumentElement object with the
nodeName attribute set to tagName, and
localName, prefix, and
namespaceURI set to null.
org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.Document.createElement(java.lang.String)public org.w3c.dom.DocumentFragment createDocumentFragment()
org.w3c.dom.DocumentDocumentFragment object.
createDocumentFragment in interface org.w3c.dom.DocumentDocumentFragment.Document.createDocumentFragment()public org.w3c.dom.Text createTextNode(java.lang.String data)
org.w3c.dom.DocumentText node given the specified string.
createTextNode in interface org.w3c.dom.DocumentText object.Document.createTextNode(java.lang.String)public org.w3c.dom.Comment createComment(java.lang.String data)
org.w3c.dom.DocumentComment node given the specified string.
createComment in interface org.w3c.dom.DocumentComment object.Document.createComment(java.lang.String)
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
throws org.w3c.dom.DOMException
org.w3c.dom.DocumentCDATASection node whose value is the specified
string.
createCDATASection in interface org.w3c.dom.DocumentCDATASection object.
org.w3c.dom.DOMException - NOT_SUPPORTED_ERR: Raised if this document is an HTML document.Document.createCDATASection(java.lang.String)
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws org.w3c.dom.DOMException
org.w3c.dom.DocumentProcessingInstruction node given the specified
name and data strings.
createProcessingInstruction in interface org.w3c.dom.DocumentProcessingInstruction object.
org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified target contains an
illegal character.
Document.createProcessingInstruction(java.lang.String, java.lang.String)
public org.w3c.dom.Attr createAttribute(java.lang.String name)
throws org.w3c.dom.DOMException
org.w3c.dom.DocumentAttr of the given name. Note that the
Attr instance can then be set on an Element
using the setAttributeNode method.
createAttributeNS method.
createAttribute in interface org.w3c.dom.DocumentAttr object with the nodeName
attribute set to name, and localName,
prefix, and namespaceURI set to
null. The value of the attribute is the empty string.
org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.Document.createAttribute(java.lang.String)
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
throws org.w3c.dom.DOMException
org.w3c.dom.DocumentEntityReference object. In addition, if the
referenced entity is known, the child list of the
EntityReference node is made the same as that of the
corresponding Entity node.If any descendant of the
Entity node has an unbound namespace prefix, the
corresponding descendant of the created EntityReference
node is also unbound; (its namespaceURI is
null). The DOM Level 2 does not support any mechanism to
resolve namespace prefixes.
createEntityReference in interface org.w3c.dom.DocumentEntityReference object.
org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an
illegal character.
Document.createEntityReference(java.lang.String)public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
org.w3c.dom.DocumentNodeList of all the Elements with a
given tag name in the order in which they are encountered in a
preorder traversal of the Document tree.
getElementsByTagName in interface org.w3c.dom.DocumentNodeList object containing all the matched
Elements.Document.getElementsByTagName(java.lang.String)
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
boolean deep)
throws org.w3c.dom.DOMException
importNode in interface org.w3c.dom.DocumentDocument.
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
createAttributeNS in interface org.w3c.dom.DocumentAttr object with the following attributes:
AttributeValueNode.nodeNamequalifiedName
Node.namespaceURInamespaceURI
Node.prefixprefix, extracted from
qualifiedName, or null if there is no
prefixNode.localNamelocal name, extracted from
qualifiedNameAttr.name
qualifiedNameNode.nodeValuethe empty
string
org.w3c.dom.DOMException
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
createElementNS in interface org.w3c.dom.DocumentElement object with the following
attributes:AttributeValueNode.nodeName
qualifiedNameNode.namespaceURI
namespaceURINode.prefixprefix, extracted
from qualifiedName, or null if there is
no prefixNode.localNamelocal name, extracted from
qualifiedNameElement.tagName
qualifiedName
org.w3c.dom.DOMException
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
getElementsByTagNameNS in interface org.w3c.dom.DocumentNodeList object containing all the matched
Elements.public org.w3c.dom.Element getElementById(java.lang.String elementId)
getElementById in interface org.w3c.dom.Document
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||