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
Constructor and Description |
---|
DefaultDocument() |
Modifier and Type | Method and Description |
---|---|
Node |
adoptNode(Node source)
DOM Level 3
|
Attr |
createAttribute(String name) |
Attr |
createAttributeNS(String namespaceURI,
String qualifiedName) |
CDATASection |
createCDATASection(String data) |
Comment |
createComment(String data) |
DocumentFragment |
createDocumentFragment() |
Element |
createElement(String tagName) |
Element |
createElementNS(String namespaceURI,
String qualifiedName) |
EntityReference |
createEntityReference(String name) |
ProcessingInstruction |
createProcessingInstruction(String target,
String data) |
Text |
createTextNode(String data) |
DocumentType |
getDoctype() |
Element |
getDocumentElement() |
String |
getDocumentURI()
The location of the document or
null if undefined. |
DOMConfiguration |
getDomConfig()
The configuration used when
Document.normalizeDocument is
invoked. |
Element |
getElementById(String elementId) |
NodeList |
getElementsByTagName(String tagname) |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName) |
DOMImplementation |
getImplementation() |
String |
getInputEncoding() |
boolean |
getStrictErrorChecking()
An attribute specifying whether errors checking is enforced or not.
|
String |
getXmlEncoding()
public void setInputEncoding(String actualEncoding){
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
}
|
boolean |
getXmlStandalone()
An attribute specifying, as part of the XML declaration, whether this
document is standalone.
|
String |
getXmlVersion()
An attribute specifying, as part of the XML declaration, the version
number of this document.
|
Node |
importNode(Node importedNode,
boolean deep) |
void |
normalizeDocument()
DOM Level 3
|
Node |
renameNode(Node n,
String namespaceURI,
String name)
DOM Level 3
|
void |
setDocumentURI(String documentURI)
The location of the document or
null if undefined. |
void |
setStrictErrorChecking(boolean strictErrorChecking)
An attribute specifying whether errors checking is enforced or not.
|
void |
setXmlStandalone(boolean standalone)
An attribute specifying, as part of the XML declaration, whether this
document is standalone.
|
void |
setXmlVersion(String version)
An attribute specifying, as part of the XML declaration, the version
number of this document.
|
getLocalName, getNamespaceURI, getNodeName, getNodeType, getPrefix, getReadOnly, setReadOnly
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public DocumentType getDoctype()
getDoctype
in interface Document
public DOMImplementation getImplementation()
getImplementation
in interface Document
public Element getDocumentElement()
getDocumentElement
in interface Document
public NodeList getElementsByTagName(String tagname)
getElementsByTagName
in interface Document
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Document
public Element getElementById(String elementId)
getElementById
in interface Document
public Node importNode(Node importedNode, boolean deep) throws DOMException
importNode
in interface Document
DOMException
public Element createElement(String tagName) throws DOMException
createElement
in interface Document
DOMException
public DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
public Text createTextNode(String data)
createTextNode
in interface Document
public Comment createComment(String data)
createComment
in interface Document
public CDATASection createCDATASection(String data) throws DOMException
createCDATASection
in interface Document
DOMException
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
createProcessingInstruction
in interface Document
DOMException
public Attr createAttribute(String name) throws DOMException
createAttribute
in interface Document
DOMException
public EntityReference createEntityReference(String name) throws DOMException
createEntityReference
in interface Document
DOMException
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
createElementNS
in interface Document
DOMException
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
createAttributeNS
in interface Document
DOMException
public String getInputEncoding()
getInputEncoding
in interface Document
public String getXmlEncoding()
getXmlEncoding
in interface Document
public boolean getXmlStandalone()
getXmlStandalone
in interface Document
public void setXmlStandalone(boolean standalone)
setXmlStandalone
in interface Document
public String getXmlVersion()
null
when unspecified.
getXmlVersion
in interface Document
DOMException
- NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
not supported by this Document
.public void setXmlVersion(String version) throws DOMException
null
when unspecified.
setXmlVersion
in interface Document
DOMException
- NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
not supported by this Document
.public boolean getStrictErrorChecking()
false
, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException
. In case of error, the
behavior is undefined. This attribute is true
by
defaults.getStrictErrorChecking
in interface Document
public void setStrictErrorChecking(boolean strictErrorChecking)
false
, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException
. In case of error, the
behavior is undefined. This attribute is true
by
defaults.setStrictErrorChecking
in interface Document
public String getDocumentURI()
null
if undefined.
Document
supports the feature
"HTML" , the href attribute of the HTML BASE element takes precedence
over this attribute.getDocumentURI
in interface Document
public void setDocumentURI(String documentURI)
null
if undefined.
Document
supports the feature
"HTML" , the href attribute of the HTML BASE element takes precedence
over this attribute.setDocumentURI
in interface Document
public Node adoptNode(Node source) throws DOMException
adoptNode
in interface Document
DOMException
public void normalizeDocument()
normalizeDocument
in interface Document
public DOMConfiguration getDomConfig()
Document.normalizeDocument
is
invoked.getDomConfig
in interface Document
public Node renameNode(Node n, String namespaceURI, String name) throws DOMException
renameNode
in interface Document
DOMException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.