public abstract class XDBNode extends java.lang.Object implements 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| Modifier and Type | Method and Description |
|---|---|
Node |
appendChild(Node arg)
Deprecated.
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)
Deprecated.
Returns the copy of the node. the parent of the clone is set to null
|
void |
close()
Deprecated.
|
short |
compareDocumentPosition(Node other)
Deprecated.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
Tests to see if the given object refers to the same node in the DOM tree as this.
|
void |
finalize()
Deprecated.
|
NamedNodeMap |
getAttributes()
Deprecated.
Returns the attributes of the node.
|
java.lang.String |
getBaseURI()
Deprecated.
|
NodeList |
getChildNodes()
Deprecated.
Returns the nodelist of child nodes.
|
java.lang.String |
getExpandedName()
Deprecated.
get the expanded name of the node
|
java.lang.Object |
getFeature(java.lang.String feature, java.lang.String version)
Deprecated.
|
Node |
getFirstChild()
Deprecated.
Returns the first child of the node. must be overriden derived classes which support this
|
java.io.InputStream |
getInputStream()
Deprecated.
Get an InputStream from the node, applications can read XML data from the stream
|
Node |
getLastChild()
Deprecated.
Returns the last child of the node. must be overriden derived classes which support this
|
java.lang.String |
getLocalName()
Deprecated.
get the local name of the node
|
java.lang.String |
getNamespaceURI()
Deprecated.
The namespace URI of this node, or
null if it is unspecified. |
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; sub classes need to override this method.
|
short |
getNodeType()
Deprecated.
Returns the type of the node.
|
java.lang.String |
getNodeValue()
Deprecated.
get the value of the node; sub classes which need to return valid values should override this method.
|
Document |
getOwnerDocument()
Deprecated.
Returns the owner document of the node.
|
Node |
getParentNode()
Deprecated.
Returns the parent of the node.
|
java.lang.String |
getPrefix()
Deprecated.
The namespace prefix of this node, or
null if it is unspecified. |
Node |
getPreviousSibling()
Deprecated.
Returns the previous sibling of the node. must be overriden derived classes which support this
|
int |
getPrimitiveType()
Deprecated.
get the primitive type of a node
|
java.lang.String |
getQualifiedName()
Deprecated.
get the qualified name of the node
|
Node |
getSchemaNode()
Deprecated.
|
java.lang.String |
getTextContent()
Deprecated.
|
java.lang.Object |
getUserData(java.lang.String key)
Deprecated.
|
boolean |
hasAttributes()
Deprecated.
tests if the node has attributes.
|
boolean |
hasChildNodes()
Deprecated.
determines if the node has any children; sub classes must override this.
|
int |
hashCode()
Deprecated.
|
Node |
insertBefore(Node newChild, Node refChild)
Deprecated.
Insert the newchild before the refchild; if refchild is null insert the newchild at the end of the child list.
|
boolean |
isDefaultNamespace(java.lang.String namespaceURI)
Deprecated.
|
boolean |
isEqualNode(Node arg)
Deprecated.
|
boolean |
isNilled()
Deprecated.
tests if xsi:nil is set for the node
|
boolean |
isSameNode(Node other)
Deprecated.
|
boolean |
isSchemaBased()
Deprecated.
tests if the node is schema-based or not
|
boolean |
isSupported(java.lang.String feature, java.lang.String version)
Deprecated.
test if a feature is supported in the given version
|
java.lang.String |
lookupNamespaceURI(java.lang.String prefix)
Deprecated.
|
java.lang.String |
lookupPrefix(java.lang.String namespaceURI)
Deprecated.
|
void |
normalize()
Deprecated.
normalize
|
Node |
removeChild(Node arg)
Deprecated.
remove the child from the childlist; must be overriden by sub classes which support this method.
|
Node |
replaceChild(Node newChild, Node oldChild)
Deprecated.
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)
Deprecated.
set the value of the node
|
void |
setNodeXob(int propnum)
Deprecated.
Set the Xob state based on the owner document
|
void |
setOwner(XDBDocument owner)
Deprecated.
|
void |
setPrefix(java.lang.String prefix)
Deprecated.
|
void |
setTextContent(java.lang.String textContent)
Deprecated.
|
java.lang.Object |
setUserData(java.lang.String key, java.lang.Object data, UserDataHandler handler)
Deprecated.
|
void |
setXobCstate(long xob)
Deprecated.
|
long |
toCState()
Deprecated.
Returns a long integer, which is actually the pointer to the underlying qmxob struct.
|
java.lang.String |
toString()
Deprecated.
|
void |
write(java.io.OutputStream s, java.lang.String charEncoding, short indent)
Deprecated.
Writes the XML for this Node (and all subnodes) to an OutputStream.
|
void |
writeToOutputStream(java.io.OutputStream os)
Deprecated.
Write the contents of the node to an OutputStream.
|
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.
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 Nodepublic 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)
public boolean isSupported(java.lang.String feature,
java.lang.String version)
isSupported in interface Nodepublic boolean isSchemaBased()
public boolean isNilled()
public int getPrimitiveType()
public 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)
public void setNodeXob(int propnum)
public int hashCode()
hashCode in class java.lang.Object
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.SQLExceptionpublic java.lang.Object getUserData(java.lang.String key)
public java.lang.Object setUserData(java.lang.String key,
java.lang.Object data,
UserDataHandler handler)
public java.lang.Object getFeature(java.lang.String feature,
java.lang.String version)
public boolean isEqualNode(Node arg)
public java.lang.String lookupNamespaceURI(java.lang.String prefix)
public short compareDocumentPosition(Node other) throws DOMException
DOMException
public java.lang.String getTextContent()
throws DOMException
DOMException
public void setTextContent(java.lang.String textContent)
throws DOMException
DOMExceptionpublic boolean isSameNode(Node other)
public java.lang.String lookupPrefix(java.lang.String namespaceURI)
public boolean isDefaultNamespace(java.lang.String namespaceURI)
public java.lang.String getBaseURI()