|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| 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 |
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 |
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 |
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() |
void |
write(java.io.OutputStream s, java.lang.String charEncoding, short indent)Writes the XML for this Node (and all subnodes) 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 Nodepublic short getNodeType()
getNodeType in interface Nodepublic java.lang.String getNodeValue()
getNodeValue in interface Node
public void setNodeValue(java.lang.String value)
throws DOMException
setNodeValue in interface NodeDOMExceptionpublic Node getParentNode()
getParentNode in interface Nodepublic Node getSchemaNode()
public NodeList getChildNodes()
getChildNodes in interface Nodepublic java.lang.String getLocalName()
getLocalName in interface Nodepublic java.lang.String getPrefix()
Nodenull 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 NodeDOMExceptionpublic java.lang.String getNamespaceURI()
Nodenull 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 Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic Document getOwnerDocument()
getOwnerDocument in interface Node
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException
insertBefore in interface NodeDOMException - 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 NodeDOMException - 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 NodeDOMException - 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 NodeDOMException - 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 Nodepublic Node cloneNode(boolean deep)
cloneNode in interface Nodepublic void normalize()
normalize in interface Node
public boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface Nodepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic long toCState()
public java.lang.String toString()
toString in class java.lang.Object
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.IOExceptionpublic void close()
public void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic 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()
hashCode in class java.lang.Object
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||