|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.impl.xs.opti.DefaultNode
org.apache.xerces.impl.xs.opti.NodeImpl
org.apache.xerces.impl.xs.opti.DefaultDocument
public class DefaultDocument
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DefaultDocument()
|
|
| Method Summary | |
|---|---|
Node |
adoptNode(Node source)
DOM Level 3 |
Attr |
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 or null if undefined. |
DOMConfiguration |
getDomConfig()
The configuration used when Document.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 3 |
Node |
renameNode(Node n,
String namespaceURI,
String name)
DOM Level 3 |
void |
setDocumentURI(String documentURI)
The location of the document or null 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 Detail |
|---|
public DefaultDocument()
| Method Detail |
|---|
public String getNodeName()
getNodeName in interface NodegetNodeName in class NodeImplpublic DocumentType getDoctype()
getDoctype in interface Documentpublic DOMImplementation getImplementation()
getImplementation in interface Documentpublic Element getDocumentElement()
getDocumentElement in interface Documentpublic NodeList getElementsByTagName(String tagname)
getElementsByTagName in interface Document
public NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
getElementsByTagNameNS in interface Documentpublic Element getElementById(String elementId)
getElementById in interface Document
public Node importNode(Node importedNode,
boolean deep)
throws DOMException
importNode in interface DocumentDOMException
public Element createElement(String tagName)
throws DOMException
createElement in interface DocumentDOMExceptionpublic DocumentFragment createDocumentFragment()
createDocumentFragment in interface Documentpublic Text createTextNode(String data)
createTextNode in interface Documentpublic Comment createComment(String data)
createComment in interface Document
public CDATASection createCDATASection(String data)
throws DOMException
createCDATASection in interface DocumentDOMException
public ProcessingInstruction createProcessingInstruction(String target,
String data)
throws DOMException
createProcessingInstruction in interface DocumentDOMException
public Attr createAttribute(String name)
throws DOMException
createAttribute in interface DocumentDOMException
public EntityReference createEntityReference(String name)
throws DOMException
createEntityReference in interface DocumentDOMException
public Element createElementNS(String namespaceURI,
String qualifiedName)
throws DOMException
createElementNS in interface DocumentDOMException
public Attr createAttributeNS(String namespaceURI,
String qualifiedName)
throws DOMException
createAttributeNS in interface DocumentDOMExceptionpublic String getInputEncoding()
getInputEncoding in interface Documentpublic String getXmlEncoding()
getXmlEncoding in interface Documentpublic boolean getXmlStandalone()
getXmlStandalone in interface Documentpublic void setXmlStandalone(boolean standalone)
setXmlStandalone in interface Documentpublic String getXmlVersion()
null when unspecified.
getXmlVersion in interface DocumentDOMException - NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
not supported by this Document.
public void setXmlVersion(String version)
throws DOMException
null when unspecified.
setXmlVersion in interface DocumentDOMException - NOT_SUPPORTED_ERR: Raised if the version is set to a value that is
not supported by this Document.public boolean getStrictErrorChecking()
false, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException. In case of error, the
behavior is undefined. This attribute is true by
defaults.
getStrictErrorChecking in interface Documentpublic void setStrictErrorChecking(boolean strictErrorChecking)
false, the implementation is free to not
test every possible error case normally defined on DOM operations,
and not raise any DOMException. In case of error, the
behavior is undefined. This attribute is true by
defaults.
setStrictErrorChecking in interface Documentpublic String getDocumentURI()
null if undefined.
Document supports the feature
"HTML" , the href attribute of the HTML BASE element takes precedence
over this attribute.
getDocumentURI in interface Documentpublic void setDocumentURI(String documentURI)
null if undefined.
Document supports the feature
"HTML" , the href attribute of the HTML BASE element takes precedence
over this attribute.
setDocumentURI in interface Document
public Node adoptNode(Node source)
throws DOMException
adoptNode in interface DocumentDOMExceptionpublic void normalizeDocument()
normalizeDocument in interface Documentpublic DOMConfiguration getDomConfig()
Document.normalizeDocument is
invoked.
getDomConfig in interface Document
public Node renameNode(Node n,
String namespaceURI,
String name)
throws DOMException
renameNode in interface DocumentDOMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||