|
Oracle® Database XML Java API Reference 10g Release 2 (10.2) B14293-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.xdb.dom.XDBNode
oracle.xdb.dom.XDBDocument
Field Summary |
Fields inherited from class oracle.xdb.dom.XDBNode |
m_conn, m_owner, m_xobcstate |
Fields inherited from interface org.w3c.dom.Node |
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 Summary | |
XDBDocument() |
|
XDBDocument(byte[] source) |
|
XDBDocument(java.sql.Connection conn) |
|
XDBDocument(java.sql.Connection conn, byte[] source) |
|
XDBDocument(java.sql.Connection conn, long xobd) |
|
XDBDocument(java.sql.Connection conn, java.lang.String source) |
|
XDBDocument(java.lang.String source) |
|
XDBDocument(XMLType parxmlt, java.sql.Connection conn, long xobd) |
Method Summary | |
Node |
appendChild(Node arg) append the given node to the list of children of this node. |
void |
close() |
Attr |
createAttribute(java.lang.String qname) create an empty attribute node. |
Attr |
createAttributeNS(java.lang.String nsURI, java.lang.String qname) create an empty attribute node given the namespace information. |
CDATASection |
createCDATASection(java.lang.String data) create a CDATA section node. |
Comment |
createComment(java.lang.String data) create a comment node. |
DocumentFragment |
createDocumentFragment() create an empty document fragment. |
Element |
createElement(java.lang.String tagName) create and Return a new empty element associated with the document. |
Element |
createElementNS(java.lang.String nsURI, java.lang.String qname) create and Return a new empty element associated with the document. |
EntityReference |
createEntityReference(java.lang.String name) create an entity reference node. |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target, java.lang.String data) create a processing instruction node. |
Text |
createTextNode(java.lang.String data) create an empty text node. |
void |
finalize() |
DocumentType |
getDoctype() Returns the document type defn. of the doc. |
Element |
getDocumentElement() Returns the root element of the document. |
Element |
getElementById(java.lang.String id) get elements of the given ID with a pre-order traversal of the document tree. |
NodeList |
getElementsByTagName(java.lang.String tagname) 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) get elements of the given tagname and ns URI with a pre-order traversal of the document tree. |
static long |
getEnvNative(long envhandle) |
Node |
getFirstChild() The first child of this node. |
protected static long |
getGP(java.sql.Connection conn) |
DOMImplementation |
getImplementation() Returns the dom implementation object. |
Node |
getLastChild() The last child of this node. |
Node |
getNextSibling() The node immediately following this node. |
java.lang.String |
getNodeName() get the name of the node |
Document |
getOwnerDocument() the owner document for this node |
Node |
getPreviousSibling() The node immediately preceding this node. |
Node |
importNode(Node importNode, boolean deep) import the given node from the original document based on the rules specified by the DOM specification |
Node |
insertBefore(Node newChild, Node refChild) insert the given node before the ref node. |
boolean |
isClosed() |
Node |
removeChild(Node arg) remove the given node from the node. |
Node |
replaceChild(Node newChild, Node oldChild) replace the oldchild node with the newchild node. |
Methods inherited from class oracle.xdb.dom.XDBNode |
cloneNode, equals, getAttributes, getChildNodes, getExpandedName, getInputStream, getLocalName, getNamespaceURI, getNodeFromCState, getNodeType, getNodeValue, getParentNode, getPrefix, getPrimitiveType, getQualifiedName, getSchemaNode, hasAttributes, hasChildNodes, hashCode, isNilled, isSchemaBased, isSupported, normalize, setNodeValue, setNodeXob, setOwner, setPrefix, setXobCstate, toCState, toString, validateName, write, writeToOutputStream |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
cloneNode, getAttributes, getChildNodes, getLocalName, getNamespaceURI, getNodeType, getNodeValue, getParentNode, getPrefix, hasAttributes, hasChildNodes, isSupported, normalize, setNodeValue, setPrefix |
Constructor Detail |
public XDBDocument()
public XDBDocument(java.sql.Connection conn) throws java.lang.Exception
public XDBDocument(java.lang.String source)
public XDBDocument(java.sql.Connection conn, java.lang.String source) throws java.lang.Exception
public XDBDocument(byte[] source)
public XDBDocument(java.sql.Connection conn, byte[] source) throws java.lang.Exception
public XDBDocument(java.sql.Connection conn, long xobd) throws XDBDOMException
public XDBDocument(XMLType parxmlt, java.sql.Connection conn, long xobd) throws XDBDOMException
Method Detail |
public static long getEnvNative(long envhandle)
public DocumentType getDoctype()
getDoctype
in interface Document
public DOMImplementation getImplementation()
getImplementation
in interface Document
public Element getDocumentElement()
getDocumentElement
in interface Document
public Element createElement(java.lang.String tagName) throws DOMException
createElement
in interface Document
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.public DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
public Text createTextNode(java.lang.String data)
createTextNode
in interface Document
public Comment createComment(java.lang.String data)
createComment
in interface Document
public CDATASection createCDATASection(java.lang.String data) throws DOMException
createCDATASection
in interface Document
DOMException
- 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 Document
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified target contains an illegal character.public Attr createAttribute(java.lang.String qname) throws DOMException
createAttribute
in interface Document
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.public EntityReference createEntityReference(java.lang.String name) throws DOMException
createEntityReference
in interface Document
DOMException
- INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.public NodeList getElementsByTagName(java.lang.String tagname)
getElementsByTagName
in interface Document
public Node importNode(Node importNode, boolean deep) throws DOMException
importNode
in interface Document
DOMException
- 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 Document
DOMException
- 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 Document
DOMException
- 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 Document
public Element getElementById(java.lang.String id)
getElementById
in interface Document
public java.lang.String getNodeName()
getNodeName
in interface Node
getNodeName
in class XDBNode
public Document getOwnerDocument()
getOwnerDocument
in interface Node
getOwnerDocument
in class XDBNode
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
insertBefore
in class XDBNode
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
replaceChild
in class XDBNode
DOMException
public Node removeChild(Node arg) throws DOMException
removeChild
in interface Node
removeChild
in class XDBNode
DOMException
public Node appendChild(Node arg) throws DOMException
appendChild
in interface Node
appendChild
in class XDBNode
DOMException
public Node getFirstChild()
Node
null
.getFirstChild
in interface Node
getFirstChild
in class XDBNode
public Node getLastChild()
Node
null
.getLastChild
in interface Node
getLastChild
in class XDBNode
public Node getPreviousSibling()
Node
null
.getPreviousSibling
in interface Node
getPreviousSibling
in class XDBNode
public Node getNextSibling()
Node
null
.getNextSibling
in interface Node
getNextSibling
in class XDBNode
public boolean isClosed()
isClosed
in class XDBNode
public void close()
close
in class XDBNode
public void finalize() throws java.lang.Throwable
finalize
in class XDBNode
java.lang.Throwable
protected static long getGP(java.sql.Connection conn)
|
Oracle® Database XML Java API Reference 10g Release 2 (10.2) B14293-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |