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 NodeadoptNode(Node source)DOM Level 3AttrcreateAttribute(String name)AttrcreateAttributeNS(String namespaceURI, String qualifiedName)CDATASectioncreateCDATASection(String data)CommentcreateComment(String data)DocumentFragmentcreateDocumentFragment()ElementcreateElement(String tagName)ElementcreateElementNS(String namespaceURI, String qualifiedName)EntityReferencecreateEntityReference(String name)ProcessingInstructioncreateProcessingInstruction(String target, String data)TextcreateTextNode(String data)DocumentTypegetDoctype()ElementgetDocumentElement()StringgetDocumentURI()The location of the document ornullif undefined.DOMConfigurationgetDomConfig()The configuration used whenDocument.normalizeDocumentis invoked.ElementgetElementById(String elementId)NodeListgetElementsByTagName(String tagname)NodeListgetElementsByTagNameNS(String namespaceURI, String localName)DOMImplementationgetImplementation()StringgetInputEncoding()StringgetNodeName()booleangetStrictErrorChecking()An attribute specifying whether errors checking is enforced or not.StringgetXmlEncoding()public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); }booleangetXmlStandalone()An attribute specifying, as part of the XML declaration, whether this document is standalone.StringgetXmlVersion()An attribute specifying, as part of the XML declaration, the version number of this document.NodeimportNode(Node importedNode, boolean deep)voidnormalizeDocument()DOM Level 3NoderenameNode(Node n, String namespaceURI, String name)DOM Level 3voidsetDocumentURI(String documentURI)The location of the document ornullif undefined.voidsetStrictErrorChecking(boolean strictErrorChecking)An attribute specifying whether errors checking is enforced or not.voidsetXmlStandalone(boolean standalone)An attribute specifying, as part of the XML declaration, whether this document is standalone.voidsetXmlVersion(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:
getNodeNamein interfaceNode- Overrides:
getNodeNamein classNodeImpl
-
getDoctype
public DocumentType getDoctype()
- Specified by:
getDoctypein interfaceDocument
-
getImplementation
public DOMImplementation getImplementation()
- Specified by:
getImplementationin interfaceDocument
-
getDocumentElement
public Element getDocumentElement()
- Specified by:
getDocumentElementin interfaceDocument
-
getElementsByTagName
public NodeList getElementsByTagName(String tagname)
- Specified by:
getElementsByTagNamein interfaceDocument
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- Specified by:
getElementsByTagNameNSin interfaceDocument
-
getElementById
public Element getElementById(String elementId)
- Specified by:
getElementByIdin interfaceDocument
-
importNode
public Node importNode(Node importedNode, boolean deep) throws DOMException
- Specified by:
importNodein interfaceDocument- Throws:
DOMException
-
createElement
public Element createElement(String tagName) throws DOMException
- Specified by:
createElementin interfaceDocument- Throws:
DOMException
-
createDocumentFragment
public DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragmentin interfaceDocument
-
createTextNode
public Text createTextNode(String data)
- Specified by:
createTextNodein interfaceDocument
-
createComment
public Comment createComment(String data)
- Specified by:
createCommentin interfaceDocument
-
createCDATASection
public CDATASection createCDATASection(String data) throws DOMException
- Specified by:
createCDATASectionin interfaceDocument- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
- Specified by:
createProcessingInstructionin interfaceDocument- Throws:
DOMException
-
createAttribute
public Attr createAttribute(String name) throws DOMException
- Specified by:
createAttributein interfaceDocument- Throws:
DOMException
-
createEntityReference
public EntityReference createEntityReference(String name) throws DOMException
- Specified by:
createEntityReferencein interfaceDocument- Throws:
DOMException
-
createElementNS
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createElementNSin interfaceDocument- Throws:
DOMException
-
createAttributeNS
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
- Specified by:
createAttributeNSin interfaceDocument- Throws:
DOMException
-
getInputEncoding
public String getInputEncoding()
- Specified by:
getInputEncodingin interfaceDocument
-
getXmlEncoding
public String getXmlEncoding()
public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); }- Specified by:
getXmlEncodingin 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:
getXmlStandalonein 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:
setXmlStandalonein 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 isnullwhen unspecified.
This attribute represents the property [version] defined in .- Specified by:
getXmlVersionin 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 isnullwhen unspecified.
This attribute represents the property [version] defined in .- Specified by:
setXmlVersionin 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 istrueby defaults.- Specified by:
getStrictErrorCheckingin 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 istrueby defaults.- Specified by:
setStrictErrorCheckingin interfaceDocument- Since:
- DOM Level 3
-
getDocumentURI
public String getDocumentURI()
The location of the document ornullif undefined.
Beware that when theDocumentsupports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.- Specified by:
getDocumentURIin interfaceDocument- Since:
- DOM Level 3
-
setDocumentURI
public void setDocumentURI(String documentURI)
The location of the document ornullif undefined.
Beware that when theDocumentsupports the feature "HTML" , the href attribute of the HTML BASE element takes precedence over this attribute.- Specified by:
setDocumentURIin interfaceDocument- Since:
- DOM Level 3
-
adoptNode
public Node adoptNode(Node source) throws DOMException
DOM Level 3- Specified by:
adoptNodein interfaceDocument- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()
DOM Level 3- Specified by:
normalizeDocumentin interfaceDocument
-
getDomConfig
public DOMConfiguration getDomConfig()
The configuration used whenDocument.normalizeDocumentis invoked.- Specified by:
getDomConfigin interfaceDocument- Since:
- DOM Level 3
-
renameNode
public Node renameNode(Node n, String namespaceURI, String name) throws DOMException
DOM Level 3- Specified by:
renameNodein interfaceDocument- Throws:
DOMException
-
-