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 ornullif undefined.The configuration used whenDocument.normalizeDocumentis invoked.getElementById(String elementId) getElementsByTagName(String tagname) getElementsByTagNameNS(String namespaceURI, String localName) booleanAn attribute specifying whether errors checking is enforced or not.public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); }booleanAn 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) voidDOM Level 3renameNode(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.apache.xerces.impl.xs.opti.NodeImpl
getLocalName, getNamespaceURI, getNodeType, getPrefix, getReadOnly, setReadOnly, toStringMethods 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, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getNodeNamein interfaceNode- Overrides:
getNodeNamein classNodeImpl
-
getDoctype
- Specified by:
getDoctypein interfaceDocument
-
getImplementation
- Specified by:
getImplementationin interfaceDocument
-
getDocumentElement
- Specified by:
getDocumentElementin interfaceDocument
-
getElementsByTagName
- Specified by:
getElementsByTagNamein interfaceDocument
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNSin interfaceDocument
-
getElementById
- Specified by:
getElementByIdin interfaceDocument
-
importNode
- Specified by:
importNodein interfaceDocument- Throws:
DOMException
-
createElement
- Specified by:
createElementin interfaceDocument- Throws:
DOMException
-
createDocumentFragment
- Specified by:
createDocumentFragmentin interfaceDocument
-
createTextNode
- Specified by:
createTextNodein interfaceDocument
-
createComment
- Specified by:
createCommentin interfaceDocument
-
createCDATASection
- Specified by:
createCDATASectionin interfaceDocument- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException - Specified by:
createProcessingInstructionin interfaceDocument- Throws:
DOMException
-
createAttribute
- Specified by:
createAttributein interfaceDocument- Throws:
DOMException
-
createEntityReference
- Specified by:
createEntityReferencein interfaceDocument- Throws:
DOMException
-
createElementNS
- Specified by:
createElementNSin interfaceDocument- Throws:
DOMException
-
createAttributeNS
- Specified by:
createAttributeNSin interfaceDocument- Throws:
DOMException
-
getInputEncoding
- Specified by:
getInputEncodingin interfaceDocument
-
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
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
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
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
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
DOM Level 3- Specified by:
adoptNodein interfaceDocument- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()DOM Level 3- Specified by:
normalizeDocumentin interfaceDocument
-
getDomConfig
The configuration used whenDocument.normalizeDocumentis invoked.- Specified by:
getDomConfigin interfaceDocument- Since:
- DOM Level 3
-
renameNode
DOM Level 3- Specified by:
renameNodein interfaceDocument- Throws:
DOMException
-