Package org.apache.xerces.impl.xs.opti
Class DefaultDocument
java.lang.Object
org.apache.xerces.impl.xs.opti.DefaultNode
org.apache.xerces.impl.xs.opti.NodeImpl
org.apache.xerces.impl.xs.opti.DefaultDocument
- Direct Known Subclasses:
SchemaDOM
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: DefaultDocument.java 705596 2008-10-17 13:05:10Z mrglavas $
- Author:
- Rahul Srivastava, Sun Microsystems Inc.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionDOM Level 3createAttribute
(String name) createAttributeNS
(String namespaceURI, String qualifiedName) createCDATASection
(String data) createComment
(String data) createElement
(String tagName) createElementNS
(String namespaceURI, String qualifiedName) createEntityReference
(String name) createProcessingInstruction
(String target, String data) createTextNode
(String data) The location of the document ornull
if undefined.The configuration used whenDocument.normalizeDocument
is invoked.getElementById
(String elementId) getElementsByTagName
(String tagname) getElementsByTagNameNS
(String namespaceURI, String localName) boolean
An attribute specifying whether errors checking is enforced or not.public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); }boolean
An attribute specifying, as part of the XML declaration, whether this document is standalone.An attribute specifying, as part of the XML declaration, the version number of this document.importNode
(Node importedNode, boolean deep) void
DOM Level 3renameNode
(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.apache.xerces.impl.xs.opti.NodeImpl
getLocalName, getNamespaceURI, getNodeType, getPrefix, getReadOnly, setReadOnly, toString
Methods inherited from class 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
-
Constructor Details
-
DefaultDocument
public DefaultDocument()
-
-
Method Details
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
- Overrides:
getNodeName
in classNodeImpl
-
getDoctype
- Specified by:
getDoctype
in interfaceDocument
-
getImplementation
- Specified by:
getImplementation
in interfaceDocument
-
getDocumentElement
- Specified by:
getDocumentElement
in interfaceDocument
-
getElementsByTagName
- Specified by:
getElementsByTagName
in interfaceDocument
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNS
in interfaceDocument
-
getElementById
- Specified by:
getElementById
in interfaceDocument
-
importNode
- Specified by:
importNode
in interfaceDocument
- Throws:
DOMException
-
createElement
- Specified by:
createElement
in interfaceDocument
- Throws:
DOMException
-
createDocumentFragment
- Specified by:
createDocumentFragment
in interfaceDocument
-
createTextNode
- Specified by:
createTextNode
in interfaceDocument
-
createComment
- Specified by:
createComment
in interfaceDocument
-
createCDATASection
- 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
- Specified by:
createAttribute
in interfaceDocument
- Throws:
DOMException
-
createEntityReference
- Specified by:
createEntityReference
in interfaceDocument
- Throws:
DOMException
-
createElementNS
- Specified by:
createElementNS
in interfaceDocument
- Throws:
DOMException
-
createAttributeNS
- Specified by:
createAttributeNS
in interfaceDocument
- Throws:
DOMException
-
getInputEncoding
- Specified by:
getInputEncoding
in interfaceDocument
-
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
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
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
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
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
DOM Level 3- Specified by:
adoptNode
in interfaceDocument
- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()DOM Level 3- Specified by:
normalizeDocument
in interfaceDocument
-
getDomConfig
The configuration used whenDocument.normalizeDocument
is invoked.- Specified by:
getDomConfig
in interfaceDocument
- Since:
- DOM Level 3
-
renameNode
DOM Level 3- Specified by:
renameNode
in interfaceDocument
- Throws:
DOMException
-