Class DefaultDocument
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.opti.DefaultNode
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.opti.NodeImpl
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.opti.DefaultDocument
-
-
Field Summary
-
Fields inherited from interface org.w3c.dom.Node
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 Summary
Constructors Constructor Description DefaultDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
adoptNode(Node source)
DOM Level 3Attr
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 ornull
if undefined.DOMConfiguration
getDomConfig()
The configuration used whenDocument.normalizeDocument
is invoked.Element
getElementById(String elementId)
NodeList
getElementsByTagName(String tagname)
NodeList
getElementsByTagNameNS(String namespaceURI, String localName)
DOMImplementation
getImplementation()
String
getInputEncoding()
String
getNodeName()
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 3Node
renameNode(Node n, String namespaceURI, String name)
DOM Level 3void
setDocumentURI(String documentURI)
The location of the document ornull
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.-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.opti.NodeImpl
getLocalName, getNamespaceURI, getNodeType, getPrefix, getReadOnly, setReadOnly, toString
-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.opti.DefaultNode
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Method Detail
-
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interfaceNode
- Overrides:
getNodeName
in classNodeImpl
-
getDoctype
public DocumentType getDoctype()
- Specified by:
getDoctype
in interfaceDocument
-
getImplementation
public DOMImplementation getImplementation()
- Specified by:
getImplementation
in interfaceDocument
-
getDocumentElement
public Element getDocumentElement()
- Specified by:
getDocumentElement
in interfaceDocument
-
getElementsByTagName
public NodeList getElementsByTagName(String tagname)
- Specified by:
getElementsByTagName
in interfaceDocument
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- Specified by:
getElementsByTagNameNS
in interfaceDocument
-
getElementById
public Element getElementById(String elementId)
- Specified by:
getElementById
in interfaceDocument
-
importNode
public Node importNode(Node importedNode, boolean deep) throws DOMException
- Specified by:
importNode
in interfaceDocument
- Throws:
DOMException
-
createElement
public Element createElement(String tagName) throws DOMException
- Specified by:
createElement
in interfaceDocument
- Throws:
DOMException
-
createDocumentFragment
public DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragment
in interfaceDocument
-
createTextNode
public Text createTextNode(String data)
- Specified by:
createTextNode
in interfaceDocument
-
createComment
public Comment createComment(String data)
- Specified by:
createComment
in interfaceDocument
-
createCDATASection
public CDATASection createCDATASection(String data) throws DOMException
- Specified by:
createCDATASection
in interfaceDocument
- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
- Specified by:
createProcessingInstruction
in interfaceDocument
- Throws:
DOMException
-
createAttribute
public Attr createAttribute(String name) throws DOMException
- Specified by:
createAttribute
in interfaceDocument
- Throws:
DOMException
-
createEntityReference
public EntityReference createEntityReference(String name) throws DOMException
- Specified by:
createEntityReference
in interfaceDocument
- Throws:
DOMException
-
createElementNS
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createElementNS
in interfaceDocument
- Throws:
DOMException
-
createAttributeNS
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createAttributeNS
in interfaceDocument
- Throws:
DOMException
-
getInputEncoding
public String getInputEncoding()
- Specified by:
getInputEncoding
in interfaceDocument
-
getXmlEncoding
public String getXmlEncoding()
public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); }- Specified by:
getXmlEncoding
in interfaceDocument
-
getXmlStandalone
public boolean getXmlStandalone()
An attribute specifying, as part of the XML declaration, whether this document is standalone.
This attribute represents the property [standalone] defined in .- Specified by:
getXmlStandalone
in interfaceDocument
- Since:
- DOM Level 3
-
setXmlStandalone
public void setXmlStandalone(boolean standalone)
An attribute specifying, as part of the XML declaration, whether this document is standalone.
This attribute represents the property [standalone] defined in .- Specified by:
setXmlStandalone
in interfaceDocument
- Since:
- DOM Level 3
-
getXmlVersion
public String getXmlVersion()
An attribute specifying, as part of the XML declaration, the version number of this document. This isnull
when unspecified.
This attribute represents the property [version] defined in .- Specified by:
getXmlVersion
in interfaceDocument
- Throws:
DOMException
- NOT_SUPPORTED_ERR: Raised if the version is set to a value that is not supported by thisDocument
.- Since:
- DOM Level 3
-
setXmlVersion
public void setXmlVersion(String version) throws DOMException
An attribute specifying, as part of the XML declaration, the version number of this document. This isnull
when unspecified.
This attribute represents the property [version] defined in .- Specified by:
setXmlVersion
in interfaceDocument
- Throws:
DOMException
- NOT_SUPPORTED_ERR: Raised if the version is set to a value that is not supported by thisDocument
.- Since:
- DOM Level 3
-
getStrictErrorChecking
public boolean getStrictErrorChecking()
An attribute specifying whether errors checking is enforced or not. When set tofalse
, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise anyDOMException
. In case of error, the behavior is undefined. This attribute istrue
by defaults.- Specified by:
getStrictErrorChecking
in interfaceDocument
- Since:
- DOM Level 3
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
An attribute specifying whether errors checking is enforced or not. When set tofalse
, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise anyDOMException
. In case of error, the behavior is undefined. This attribute istrue
by defaults.- Specified by:
setStrictErrorChecking
in interfaceDocument
- Since:
- DOM Level 3
-
getDocumentURI
public String getDocumentURI()
The location of the document ornull
if undefined.
Beware that when theDocument
supports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.- Specified by:
getDocumentURI
in interfaceDocument
- Since:
- DOM Level 3
-
setDocumentURI
public void setDocumentURI(String documentURI)
The location of the document ornull
if undefined.
Beware that when theDocument
supports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.- Specified by:
setDocumentURI
in interfaceDocument
- Since:
- DOM Level 3
-
adoptNode
public Node adoptNode(Node source) throws DOMException
DOM Level 3- Specified by:
adoptNode
in interfaceDocument
- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()
DOM Level 3- Specified by:
normalizeDocument
in interfaceDocument
-
getDomConfig
public DOMConfiguration getDomConfig()
The configuration used whenDocument.normalizeDocument
is invoked.- Specified by:
getDomConfig
in interfaceDocument
- Since:
- DOM Level 3
-
renameNode
public Node renameNode(Node n, String namespaceURI, String name) throws DOMException
DOM Level 3- Specified by:
renameNode
in interfaceDocument
- Throws:
DOMException
-
-