|
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
This class implements the W3C DOM Node interface for interacting with XOBs.
Field Summary | |
protected java.sql.Connection |
m_conn |
protected XDBDocument |
m_owner |
protected long |
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 |
Method Summary | |
Node |
appendChild(Node arg) append the new child to the end of the child list; must be overriden by sub classes which support this method. |
Node |
cloneNode(boolean deep) Returns the copy of the node. the parent of the clone is set to null |
void |
close() |
boolean |
equals(java.lang.Object obj) Tests to see if the given object refers to the same node in the DOM tree as this. |
void |
finalize() |
NamedNodeMap |
getAttributes() Returns the attributes of the node. |
NodeList |
getChildNodes() Returns the nodelist of child nodes. |
java.lang.String |
getExpandedName() get the expanded name of the node |
Node |
getFirstChild() Returns the first child of the node. must be overriden derived classes which support this |
java.io.InputStream |
getInputStream() Get an InputStream from the node, applications can read XML data from the stream |
Node |
getLastChild() Returns the last child of the node. must be overriden derived classes which support this |
java.lang.String |
getLocalName() get the local name of the node |
java.lang.String |
getNamespaceURI() The namespace URI of this node, or null if it is unspecified. |
Node |
getNextSibling() Returns the next sibling of the node. must be overriden derived classes which support this |
protected static Node |
getNodeFromCState(XDBDocument owner, long cstate) |
java.lang.String |
getNodeName() get the name of the node; sub classes need to override this method. |
short |
getNodeType() Returns the type of the node. |
java.lang.String |
getNodeValue() get the value of the node; sub classes which need to return valid values should override this method. |
Document |
getOwnerDocument() Returns the owner document of the node. |
Node |
getParentNode() Returns the parent of the node. |
java.lang.String |
getPrefix() The namespace prefix of this node, or null if it is unspecified. |
Node |
getPreviousSibling() Returns the previous sibling of the node. must be overriden derived classes which support this |
int |
getPrimitiveType() get the primitive type of a node |
java.lang.String |
getQualifiedName() get the qualified name of the node |
Node |
getSchemaNode() |
boolean |
hasAttributes() tests if the node has attributes. |
boolean |
hasChildNodes() determines if the node has any children; sub classes must override this. |
int |
hashCode() |
Node |
insertBefore(Node newChild, Node refChild) Insert the newchild before the refchild; if refchild is null insert the newchild at the end of the child list. |
protected boolean |
isClosed() |
boolean |
isNilled() tests if xsi:nil is set for the node |
boolean |
isSchemaBased() tests if the node is schema-based or not |
boolean |
isSupported(java.lang.String feature, java.lang.String version) test if a feature is supported in the given version |
void |
normalize() normalize |
Node |
removeChild(Node arg) remove the child from the childlist; must be overriden by sub classes which support this method. |
Node |
replaceChild(Node newChild, Node oldChild) replace the oldchild in the childlist with the newchild; must be overriden by sub classes which support this method. |
void |
setNodeValue(java.lang.String value) set the value of the node |
void |
setNodeXob(int propnum) Set the Xob state based on the owner document |
void |
setOwner(XDBDocument owner) |
void |
setPrefix(java.lang.String prefix) |
void |
setXobCstate(long xob) |
long |
toCState() Returns a long integer, which is actually the pointer to the underlying qmxob struct. |
java.lang.String |
toString() |
protected static void |
validateName(java.lang.String name) |
void |
write(java.io.OutputStream s, java.lang.String charEncoding, short indent) Writes the XML for this Node (and all subnodes) to an OutputStream. |
void |
writeToOutputStream(java.io.OutputStream os) Write the contents of the node to an OutputStream. |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected XDBDocument m_owner
protected long m_xobcstate
protected java.sql.Connection m_conn
Method Detail |
public java.lang.String getNodeName()
getNodeName
in interface Node
public short getNodeType()
getNodeType
in interface Node
public java.lang.String getNodeValue()
getNodeValue
in interface Node
public void setNodeValue(java.lang.String value) throws DOMException
setNodeValue
in interface Node
DOMException
public Node getParentNode()
getParentNode
in interface Node
public Node getSchemaNode()
public NodeList getChildNodes()
getChildNodes
in interface Node
public java.lang.String getLocalName()
getLocalName
in interface Node
public java.lang.String getPrefix()
Node
null
if it is unspecified.nodeName
attribute, which holds the qualified name, as well as the tagName
and name
attributes of the Element
and Attr
interfaces, when applicable.namespaceURI
and localName
do not change.ELEMENT_NODE
and ATTRIBUTE_NODE
and nodes created with a DOM Level 1 method, such as createElement
from the Document
interface, this is always null
.getPrefix
in interface Node
public void setPrefix(java.lang.String prefix) throws DOMException
setPrefix
in interface Node
DOMException
public java.lang.String getNamespaceURI()
Node
null
if it is unspecified.ELEMENT_NODE
and ATTRIBUTE_NODE
and nodes created with a DOM Level 1 method, such as createElement
from the Document
interface, this is always null
.Per the Namespaces in XML Specification an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it simply has no namespace.getNamespaceURI
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
- 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 removeChild(Node arg) throws DOMException
removeChild
in interface Node
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.oldChild
is not a child of this node.public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
- 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 appendChild(Node arg) throws DOMException
appendChild
in interface Node
DOMException
- 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 boolean hasChildNodes()
hasChildNodes
in interface Node
public Node cloneNode(boolean deep)
cloneNode
in interface Node
public void normalize()
normalize
in interface Node
public boolean isSupported(java.lang.String feature, java.lang.String version)
isSupported
in interface Node
public boolean isSchemaBased()
public boolean isNilled()
public int getPrimitiveType()
public boolean equals(java.lang.Object obj)
public long toCState()
public java.lang.String toString()
public void write(java.io.OutputStream s, java.lang.String charEncoding, short indent) throws java.io.IOException
s
- The stream to write the output tocharEncoding
- The IANA char code (e.g. "ISO-8859")indent
- Number of chars to indent nested elementsjava.io.IOException
public void close()
public void finalize() throws java.lang.Throwable
java.lang.Throwable
public java.lang.String getQualifiedName()
public java.lang.String getExpandedName()
public void setOwner(XDBDocument owner)
public void setXobCstate(long xob)
protected boolean isClosed()
protected static Node getNodeFromCState(XDBDocument owner, long cstate)
public void setNodeXob(int propnum)
public int hashCode()
protected static void validateName(java.lang.String name) throws DOMException
DOMException
public java.io.InputStream getInputStream() throws java.sql.SQLException
java.sql.SQLException
public void writeToOutputStream(java.io.OutputStream os) throws java.sql.SQLException
java.sql.SQLException
|
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 |