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
-
- All Implemented Interfaces:
org.w3c.dom.Document,org.w3c.dom.Node
- Direct Known Subclasses:
SchemaDOM
public class DefaultDocument extends NodeImpl implements org.w3c.dom.Document
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 Constructor Description DefaultDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodeadoptNode(org.w3c.dom.Node source)DOM Level 3org.w3c.dom.AttrcreateAttribute(java.lang.String name)org.w3c.dom.AttrcreateAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)org.w3c.dom.CDATASectioncreateCDATASection(java.lang.String data)org.w3c.dom.CommentcreateComment(java.lang.String data)org.w3c.dom.DocumentFragmentcreateDocumentFragment()org.w3c.dom.ElementcreateElement(java.lang.String tagName)org.w3c.dom.ElementcreateElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)org.w3c.dom.EntityReferencecreateEntityReference(java.lang.String name)org.w3c.dom.ProcessingInstructioncreateProcessingInstruction(java.lang.String target, java.lang.String data)org.w3c.dom.TextcreateTextNode(java.lang.String data)org.w3c.dom.DocumentTypegetDoctype()org.w3c.dom.ElementgetDocumentElement()java.lang.StringgetDocumentURI()The location of the document ornullif undefined.org.w3c.dom.DOMConfigurationgetDomConfig()The configuration used whenDocument.normalizeDocumentis invoked.org.w3c.dom.ElementgetElementById(java.lang.String elementId)org.w3c.dom.NodeListgetElementsByTagName(java.lang.String tagname)org.w3c.dom.NodeListgetElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)org.w3c.dom.DOMImplementationgetImplementation()java.lang.StringgetInputEncoding()java.lang.StringgetNodeName()booleangetStrictErrorChecking()An attribute specifying whether errors checking is enforced or not.java.lang.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.java.lang.StringgetXmlVersion()An attribute specifying, as part of the XML declaration, the version number of this document.org.w3c.dom.NodeimportNode(org.w3c.dom.Node importedNode, boolean deep)voidnormalizeDocument()DOM Level 3org.w3c.dom.NoderenameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String name)DOM Level 3voidsetDocumentURI(java.lang.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(java.lang.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
-
-
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeNamein interfaceorg.w3c.dom.Node- Overrides:
getNodeNamein classNodeImpl
-
getDoctype
public org.w3c.dom.DocumentType getDoctype()
- Specified by:
getDoctypein interfaceorg.w3c.dom.Document
-
getImplementation
public org.w3c.dom.DOMImplementation getImplementation()
- Specified by:
getImplementationin interfaceorg.w3c.dom.Document
-
getDocumentElement
public org.w3c.dom.Element getDocumentElement()
- Specified by:
getDocumentElementin interfaceorg.w3c.dom.Document
-
getElementsByTagName
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
- Specified by:
getElementsByTagNamein interfaceorg.w3c.dom.Document
-
getElementsByTagNameNS
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)- Specified by:
getElementsByTagNameNSin interfaceorg.w3c.dom.Document
-
getElementById
public org.w3c.dom.Element getElementById(java.lang.String elementId)
- Specified by:
getElementByIdin interfaceorg.w3c.dom.Document
-
importNode
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMException- Specified by:
importNodein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
createElement
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException- Specified by:
createElementin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
createDocumentFragment
public org.w3c.dom.DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragmentin interfaceorg.w3c.dom.Document
-
createTextNode
public org.w3c.dom.Text createTextNode(java.lang.String data)
- Specified by:
createTextNodein interfaceorg.w3c.dom.Document
-
createComment
public org.w3c.dom.Comment createComment(java.lang.String data)
- Specified by:
createCommentin interfaceorg.w3c.dom.Document
-
createCDATASection
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data) throws org.w3c.dom.DOMException- Specified by:
createCDATASectionin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
createProcessingInstruction
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMException- Specified by:
createProcessingInstructionin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
createAttribute
public org.w3c.dom.Attr createAttribute(java.lang.String name) throws org.w3c.dom.DOMException- Specified by:
createAttributein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
createEntityReference
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name) throws org.w3c.dom.DOMException- Specified by:
createEntityReferencein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
createElementNS
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException- Specified by:
createElementNSin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
createAttributeNS
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException- Specified by:
createAttributeNSin interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
getInputEncoding
public java.lang.String getInputEncoding()
- Specified by:
getInputEncodingin interfaceorg.w3c.dom.Document
-
getXmlEncoding
public java.lang.String getXmlEncoding()
public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); }- Specified by:
getXmlEncodingin interfaceorg.w3c.dom.Document
-
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 interfaceorg.w3c.dom.Document- 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 interfaceorg.w3c.dom.Document- Since:
- DOM Level 3
-
getXmlVersion
public java.lang.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 interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.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(java.lang.String version) throws org.w3c.dom.DOMExceptionAn 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 interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.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 interfaceorg.w3c.dom.Document- 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 interfaceorg.w3c.dom.Document- Since:
- DOM Level 3
-
getDocumentURI
public java.lang.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 interfaceorg.w3c.dom.Document- Since:
- DOM Level 3
-
setDocumentURI
public void setDocumentURI(java.lang.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 interfaceorg.w3c.dom.Document- Since:
- DOM Level 3
-
adoptNode
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws org.w3c.dom.DOMExceptionDOM Level 3- Specified by:
adoptNodein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
normalizeDocument
public void normalizeDocument()
DOM Level 3- Specified by:
normalizeDocumentin interfaceorg.w3c.dom.Document
-
getDomConfig
public org.w3c.dom.DOMConfiguration getDomConfig()
The configuration used whenDocument.normalizeDocumentis invoked.- Specified by:
getDomConfigin interfaceorg.w3c.dom.Document- Since:
- DOM Level 3
-
renameNode
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String name) throws org.w3c.dom.DOMExceptionDOM Level 3- Specified by:
renameNodein interfaceorg.w3c.dom.Document- Throws:
org.w3c.dom.DOMException
-
-