public class DOMDocumentImpl extends DOMNodeImpl implements org.w3c.dom.Document
adaptee
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier | Constructor and Description |
---|---|
protected |
DOMDocumentImpl(Node adaptee)
Instantiates a new Dom document with a default tag table.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
protected DOMDocumentImpl(Node adaptee)
adaptee
- tidy Nodepublic java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class DOMNodeImpl
Node.getNodeName()
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class DOMNodeImpl
Node.getNodeType()
public org.w3c.dom.DocumentType getDoctype()
getDoctype
in interface org.w3c.dom.Document
Document.getDoctype()
public org.w3c.dom.DOMImplementation getImplementation()
getImplementation
in interface org.w3c.dom.Document
Document.getImplementation()
public org.w3c.dom.Element getDocumentElement()
getDocumentElement
in interface org.w3c.dom.Document
Document.getDocumentElement()
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
createElement
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createElement(java.lang.String)
public org.w3c.dom.DocumentFragment createDocumentFragment()
createDocumentFragment
in interface org.w3c.dom.Document
Document.createDocumentFragment()
public org.w3c.dom.Text createTextNode(java.lang.String data)
createTextNode
in interface org.w3c.dom.Document
Document.createTextNode(java.lang.String)
public org.w3c.dom.Comment createComment(java.lang.String data)
createComment
in interface org.w3c.dom.Document
Document.createComment(java.lang.String)
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data) throws org.w3c.dom.DOMException
createCDATASection
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createCDATASection(java.lang.String)
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMException
createProcessingInstruction
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createProcessingInstruction(java.lang.String, java.lang.String)
public org.w3c.dom.Attr createAttribute(java.lang.String name) throws org.w3c.dom.DOMException
createAttribute
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createAttribute(java.lang.String)
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name) throws org.w3c.dom.DOMException
createEntityReference
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createEntityReference(java.lang.String)
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
getElementsByTagName
in interface org.w3c.dom.Document
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.Document
org.w3c.dom.DOMException
Document.importNode(org.w3c.dom.Node, boolean)
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.Document
org.w3c.dom.DOMException
Document.createAttributeNS(java.lang.String, java.lang.String)
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.Document
org.w3c.dom.DOMException
Document.createElementNS(java.lang.String, java.lang.String)
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
getElementsByTagNameNS
in interface org.w3c.dom.Document
Document.getElementsByTagNameNS(java.lang.String, java.lang.String)
public org.w3c.dom.Element getElementById(java.lang.String elementId)
getElementById
in interface org.w3c.dom.Document
Document.getElementById(java.lang.String)
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws org.w3c.dom.DOMException
adoptNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.adoptNode(org.w3c.dom.Node)
public java.lang.String getDocumentURI()
getDocumentURI
in interface org.w3c.dom.Document
Document.getDocumentURI()
public org.w3c.dom.DOMConfiguration getDomConfig()
getDomConfig
in interface org.w3c.dom.Document
Document.getDomConfig()
public java.lang.String getInputEncoding()
getInputEncoding
in interface org.w3c.dom.Document
Document.getInputEncoding()
public boolean getStrictErrorChecking()
getStrictErrorChecking
in interface org.w3c.dom.Document
Document.getStrictErrorChecking()
public java.lang.String getXmlEncoding()
getXmlEncoding
in interface org.w3c.dom.Document
Document.getXmlEncoding()
public boolean getXmlStandalone()
getXmlStandalone
in interface org.w3c.dom.Document
Document.getXmlStandalone()
public java.lang.String getXmlVersion()
getXmlVersion
in interface org.w3c.dom.Document
Document.getXmlVersion()
public void normalizeDocument()
normalizeDocument
in interface org.w3c.dom.Document
Document.normalizeDocument()
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
renameNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.renameNode(org.w3c.dom.Node, java.lang.String, java.lang.String)
public void setDocumentURI(java.lang.String documentURI)
setDocumentURI
in interface org.w3c.dom.Document
Document.setDocumentURI(java.lang.String)
public void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking
in interface org.w3c.dom.Document
Document.setStrictErrorChecking(boolean)
public void setXmlStandalone(boolean xmlStandalone) throws org.w3c.dom.DOMException
setXmlStandalone
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.setXmlStandalone(boolean)
public void setXmlVersion(java.lang.String xmlVersion) throws org.w3c.dom.DOMException
setXmlVersion
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.setXmlVersion(java.lang.String)