public class XDBDocument extends XDBNode implements Document
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
XDBDocument()
Deprecated.
|
XDBDocument(byte[] source)
Deprecated.
|
XDBDocument(java.sql.Connection conn)
Deprecated.
|
XDBDocument(java.sql.Connection conn, byte[] source)
Deprecated.
|
XDBDocument(java.sql.Connection conn, long xobd)
Deprecated.
|
XDBDocument(java.sql.Connection conn, java.lang.String source)
Deprecated.
|
XDBDocument(java.lang.String source)
Deprecated.
|
XDBDocument(XMLType parxmlt, java.sql.Connection conn, long xobd)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
adoptNode(Node source)
Deprecated.
|
Node |
appendChild(Node arg)
Deprecated.
append the given node to the list of children of this node.
|
void |
close()
Deprecated.
|
Attr |
createAttribute(java.lang.String qname)
Deprecated.
create an empty attribute node.
|
Attr |
createAttributeNS(java.lang.String nsURI, java.lang.String qname)
Deprecated.
create an empty attribute node given the namespace information.
|
CDATASection |
createCDATASection(java.lang.String data)
Deprecated.
create a CDATA section node.
|
Comment |
createComment(java.lang.String data)
Deprecated.
create a comment node.
|
DocumentFragment |
createDocumentFragment()
Deprecated.
create an empty document fragment.
|
Element |
createElement(java.lang.String tagName)
Deprecated.
create and Return a new empty element associated with the document.
|
Element |
createElementNS(java.lang.String nsURI, java.lang.String qname)
Deprecated.
create and Return a new empty element associated with the document.
|
EntityReference |
createEntityReference(java.lang.String name)
Deprecated.
create an entity reference node.
|
ProcessingInstruction |
createProcessingInstruction(java.lang.String target, java.lang.String data)
Deprecated.
create a processing instruction node.
|
Text |
createTextNode(java.lang.String data)
Deprecated.
create an empty text node.
|
void |
finalize()
Deprecated.
|
DocumentType |
getDoctype()
Deprecated.
Returns the document type defn. of the doc.
|
Element |
getDocumentElement()
Deprecated.
Returns the root element of the document.
|
java.lang.String |
getDocumentURI()
Deprecated.
|
DOMConfiguration |
getDomConfig()
Deprecated.
|
Element |
getElementById(java.lang.String id)
Deprecated.
get elements of the given ID with a pre-order traversal of the document tree.
|
NodeList |
getElementsByTagName(java.lang.String tagname)
Deprecated.
get elements of the given tagname with a pre-order traversal of the document tree.
|
NodeList |
getElementsByTagNameNS(java.lang.String nsURI, java.lang.String tagname)
Deprecated.
get elements of the given tagname and ns URI with a pre-order traversal of the document tree.
|
Node |
getFirstChild()
Deprecated.
Returns the first child of the node. must be overriden derived classes which support this
|
static long |
getGP(java.sql.Connection conn)
Deprecated.
|
DOMImplementation |
getImplementation()
Deprecated.
Returns the dom implementation object.
|
java.lang.String |
getInputEncoding()
Deprecated.
|
Node |
getLastChild()
Deprecated.
Returns the last child of the node. must be overriden derived classes which support this
|
Node |
getNextSibling()
Deprecated.
Returns the next sibling of the node. must be overriden derived classes which support this
|
java.lang.String |
getNodeName()
Deprecated.
get the name of the node
|
Document |
getOwnerDocument()
Deprecated.
the owner document for this node
|
Node |
getPreviousSibling()
Deprecated.
Returns the previous sibling of the node. must be overriden derived classes which support this
|
boolean |
getStrictErrorChecking()
Deprecated.
|
java.lang.String |
getXmlEncoding()
Deprecated.
|
boolean |
getXmlStandalone()
Deprecated.
|
java.lang.String |
getXmlVersion()
Deprecated.
|
Node |
importNode(Node importNode, boolean deep)
Deprecated.
import the given node from the original document based on the rules specified by the DOM specification
|
Node |
insertBefore(Node newChild, Node refChild)
Deprecated.
insert the given node before the ref node.
|
boolean |
isClosed()
Deprecated.
|
void |
normalizeDocument()
Deprecated.
|
Node |
removeChild(Node arg)
Deprecated.
remove the given node from the node.
|
Node |
renameNode(Node n, java.lang.String namespaceURI, java.lang.String qualifiedName)
Deprecated.
|
Node |
replaceChild(Node newChild, Node oldChild)
Deprecated.
replace the oldchild node with the newchild node.
|
void |
setDocumentURI(java.lang.String documentURI)
Deprecated.
|
void |
setStrictErrorChecking(boolean strictErrorChecking)
Deprecated.
|
void |
setXmlStandalone(boolean xmlStandalone)
Deprecated.
|
void |
setXmlVersion(java.lang.String xmlVersion)
Deprecated.
|
cloneNode, compareDocumentPosition, equals, getAttributes, getBaseURI, getChildNodes, getExpandedName, getFeature, getInputStream, getLocalName, getNamespaceURI, getNodeType, getNodeValue, getParentNode, getPrefix, getPrimitiveType, getQualifiedName, getSchemaNode, getTextContent, getUserData, hasAttributes, hasChildNodes, hashCode, isDefaultNamespace, isEqualNode, isNilled, isSameNode, isSchemaBased, isSupported, lookupNamespaceURI, lookupPrefix, normalize, setNodeValue, setNodeXob, setOwner, setPrefix, setTextContent, setUserData, setXobCstate, toCState, toString, write, writeToOutputStreamcloneNode, getAttributes, getChildNodes, getLocalName, getNamespaceURI, getNodeType, getNodeValue, getParentNode, getPrefix, hasAttributes, hasChildNodes, isSupported, normalize, setNodeValue, setPrefixpublic XDBDocument()
public XDBDocument(java.sql.Connection conn)
throws java.lang.Exception
java.lang.Exceptionpublic XDBDocument(java.lang.String source)
public XDBDocument(java.sql.Connection conn,
java.lang.String source)
throws java.lang.Exception
java.lang.Exceptionpublic XDBDocument(byte[] source)
public XDBDocument(java.sql.Connection conn,
byte[] source)
throws java.lang.Exception
java.lang.Exception
public XDBDocument(java.sql.Connection conn,
long xobd)
throws XDBDOMException
XDBDOMExceptionpublic XDBDocument(XMLType parxmlt, java.sql.Connection conn, long xobd) throws XDBDOMException
XDBDOMExceptionpublic DocumentType getDoctype()
getDoctype in interface Documentpublic DOMImplementation getImplementation()
getImplementation in interface Documentpublic Element getDocumentElement()
getDocumentElement in interface Documentpublic Element createElement(java.lang.String tagName) throws DOMException
createElement in interface DocumentDOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.public DocumentFragment createDocumentFragment()
createDocumentFragment in interface Documentpublic Text createTextNode(java.lang.String data)
createTextNode in interface Documentpublic Comment createComment(java.lang.String data)
createComment in interface Documentpublic CDATASection createCDATASection(java.lang.String data) throws DOMException
createCDATASection in interface DocumentDOMException - NOT_SUPPORTED_ERR: Raised if this document is an HTML document.public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws DOMException
createProcessingInstruction in interface DocumentDOMException - INVALID_CHARACTER_ERR: Raised if the specified target contains an illegal character.public Attr createAttribute(java.lang.String qname) throws DOMException
createAttribute in interface DocumentDOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.public EntityReference createEntityReference(java.lang.String name) throws DOMException
createEntityReference in interface DocumentDOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.public NodeList getElementsByTagName(java.lang.String tagname)
getElementsByTagName in interface Documentpublic Node importNode(Node importNode, boolean deep) throws DOMException
importNode in interface DocumentDOMException - NOT_SUPPORTED_ERR: Raised if the type of node being imported is not supported.public Element createElementNS(java.lang.String nsURI, java.lang.String qname) throws DOMException
createElementNS in interface DocumentDOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from " http://www.w3.org/XML/1998/namespace" .public Attr createAttributeNS(java.lang.String nsURI, java.lang.String qname) throws DOMException
createAttributeNS in interface DocumentDOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from " http://www.w3.org/XML/1998/namespace", or if the qualifiedName is "xmlns" and the namespaceURI is different from " http://www.w3.org/2000/xmlns/".public NodeList getElementsByTagNameNS(java.lang.String nsURI, java.lang.String tagname)
getElementsByTagNameNS in interface Documentpublic Element getElementById(java.lang.String id)
getElementById in interface Documentpublic java.lang.String getNodeName()
getNodeName in interface NodegetNodeName in class XDBNodepublic Document getOwnerDocument()
getOwnerDocument in interface NodegetOwnerDocument in class XDBNodepublic Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore in interface NodeinsertBefore in class XDBNodeDOMException - HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to insert is one of this node's ancestors.newChild was created from a different document than the one that created this node.refChild is not a child of this node.public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild in interface NodereplaceChild in class XDBNodeDOMException - HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to put in is one of this node's ancestors.newChild was created from a different document than the one that created this node.oldChild is not a child of this node.public Node removeChild(Node arg) throws DOMException
removeChild in interface NoderemoveChild in class XDBNodeDOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.oldChild is not a child of this node.public Node appendChild(Node arg) throws DOMException
appendChild in interface NodeappendChild in class XDBNodeDOMException - HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to append is one of this node's ancestors.newChild was created from a different document than the one that created this node.public Node getFirstChild()
XDBNodegetFirstChild in interface NodegetFirstChild in class XDBNodepublic Node getLastChild()
XDBNodegetLastChild in interface NodegetLastChild in class XDBNodepublic Node getPreviousSibling()
XDBNodegetPreviousSibling in interface NodegetPreviousSibling in class XDBNodepublic Node getNextSibling()
XDBNodegetNextSibling in interface NodegetNextSibling in class XDBNodepublic boolean isClosed()
public void finalize()
throws java.lang.Throwable
public static long getGP(java.sql.Connection conn)
public Node renameNode(Node n, java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
DOMExceptionpublic DOMConfiguration getDomConfig()
public void normalizeDocument()
public boolean getStrictErrorChecking()
public void setStrictErrorChecking(boolean strictErrorChecking)
public java.lang.String getDocumentURI()
public void setDocumentURI(java.lang.String documentURI)
public Node adoptNode(Node source) throws DOMException
DOMExceptionpublic java.lang.String getInputEncoding()
public java.lang.String getXmlEncoding()
public boolean getXmlStandalone()
public void setXmlStandalone(boolean xmlStandalone)
throws DOMException
DOMExceptionpublic java.lang.String getXmlVersion()
public void setXmlVersion(java.lang.String xmlVersion)
throws DOMException
DOMException