public class DOMDocumentImpl extends DOMNodeImpl implements 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.
|
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 String getNodeName()
getNodeName
in interface Node
getNodeName
in class DOMNodeImpl
Node.getNodeName()
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class DOMNodeImpl
Node.getNodeType()
public DocumentType getDoctype()
getDoctype
in interface Document
Document.getDoctype()
public DOMImplementation getImplementation()
getImplementation
in interface Document
Document.getImplementation()
public Element getDocumentElement()
getDocumentElement
in interface Document
Document.getDocumentElement()
public Element createElement(String tagName) throws DOMException
createElement
in interface Document
DOMException
Document.createElement(java.lang.String)
public DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
Document.createDocumentFragment()
public Text createTextNode(String data)
createTextNode
in interface Document
Document.createTextNode(java.lang.String)
public Comment createComment(String data)
createComment
in interface Document
Document.createComment(java.lang.String)
public CDATASection createCDATASection(String data) throws DOMException
createCDATASection
in interface Document
DOMException
Document.createCDATASection(java.lang.String)
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
createProcessingInstruction
in interface Document
DOMException
Document.createProcessingInstruction(java.lang.String, java.lang.String)
public Attr createAttribute(String name) throws DOMException
createAttribute
in interface Document
DOMException
Document.createAttribute(java.lang.String)
public EntityReference createEntityReference(String name) throws DOMException
createEntityReference
in interface Document
DOMException
Document.createEntityReference(java.lang.String)
public NodeList getElementsByTagName(String tagname)
getElementsByTagName
in interface Document
Document.getElementsByTagName(java.lang.String)
public Node importNode(Node importedNode, boolean deep) throws DOMException
importNode
in interface Document
DOMException
Document.importNode(org.w3c.dom.Node, boolean)
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
createAttributeNS
in interface Document
DOMException
Document.createAttributeNS(java.lang.String, java.lang.String)
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
createElementNS
in interface Document
DOMException
Document.createElementNS(java.lang.String, java.lang.String)
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Document
Document.getElementsByTagNameNS(java.lang.String, java.lang.String)
public Element getElementById(String elementId)
getElementById
in interface Document
Document.getElementById(java.lang.String)
public Node adoptNode(Node source) throws DOMException
adoptNode
in interface Document
DOMException
Document.adoptNode(org.w3c.dom.Node)
public String getDocumentURI()
getDocumentURI
in interface Document
Document.getDocumentURI()
public DOMConfiguration getDomConfig()
getDomConfig
in interface Document
Document.getDomConfig()
public String getInputEncoding()
getInputEncoding
in interface Document
Document.getInputEncoding()
public boolean getStrictErrorChecking()
getStrictErrorChecking
in interface Document
Document.getStrictErrorChecking()
public String getXmlEncoding()
getXmlEncoding
in interface Document
Document.getXmlEncoding()
public boolean getXmlStandalone()
getXmlStandalone
in interface Document
Document.getXmlStandalone()
public String getXmlVersion()
getXmlVersion
in interface Document
Document.getXmlVersion()
public void normalizeDocument()
normalizeDocument
in interface Document
Document.normalizeDocument()
public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException
renameNode
in interface Document
DOMException
Document.renameNode(org.w3c.dom.Node, java.lang.String, java.lang.String)
public void setDocumentURI(String documentURI)
setDocumentURI
in interface Document
Document.setDocumentURI(java.lang.String)
public void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking
in interface Document
Document.setStrictErrorChecking(boolean)
public void setXmlStandalone(boolean xmlStandalone) throws DOMException
setXmlStandalone
in interface Document
DOMException
Document.setXmlStandalone(boolean)
public void setXmlVersion(String xmlVersion) throws DOMException
setXmlVersion
in interface Document
DOMException
Document.setXmlVersion(java.lang.String)
Copyright © 2000–2012 sourceforge. All rights reserved.