|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.dom.NodeDecorator com.novell.xml.xpath.XPathNamespaceNode
A Node implementation that provides the functionality of the XPath namespace node. It is implemented in terms of decorating a DOM attribute node.
Field Summary |
Fields inherited from class com.novell.xml.dom.NodeDecorator |
node |
Fields inherited from interface com.novell.xml.dom.Namespace |
NAMESPACE_NODE |
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 | |
XPathNamespaceNode(String prefix,
String uri,
Node ownerElement)
Constructs a new decorator that decorates an attribute node and is a namespace of the specified element node. |
Method Summary | |
int |
compareTo(Object obj)
Compares this namespace node to another namespace node for document order. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
NamespaceName |
getNamespaceName()
Return the NamespaceName object for this namespace node.
|
String |
getNodeName()
DOM-defined method that returns the name of the node. |
short |
getNodeType()
DOM-defined method that returns a code representing the type of the underlying object. |
String |
getNodeValue()
Dom-defined method that returns the text value of a node. |
Node |
getParentNode()
DOM-defined method that returns the parent of this namespace node. |
Methods inherited from class com.novell.xml.dom.NodeDecorator |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public XPathNamespaceNode(String prefix, String uri, Node ownerElement)
ownerElement
- the element node of which this node is a namespace nodeMethod Detail |
public final short getNodeType()
getNodeType
in interface Node
getNodeType
in class NodeDecorator
public final Node getParentNode()
getParentNode
in interface Node
getParentNode
in class NodeDecorator
Element
node of which this node is an attributepublic final String getNodeName()
getNodeName
in interface Node
getNodeName
in class NodeDecorator
public final String getNodeValue()
getNodeValue
in interface Node
getNodeValue
in class NodeDecorator
public NamespaceName getNamespaceName()
NamespaceName
object for this namespace node.
This should generally be used in preference to getNodeValue()
(which
returns the string value of the uri) because NamespaceName
objects
can be compared much more efficiently than can strings.
getNamespaceName
in interface Namespace
NamespaceName
of this namespace nodepublic int compareTo(Object obj)
compareTo
in interface Comparable
obj
- the other XPathNamespaceNode
to compare with; it
is declared as an Object
to conform with the
Comparable
interface
ClassCastException
- if the specified object is not an
XPathNamespaceNode
public boolean equals(Object obj)
true
if and only if the other object
is the SAME object as this one.
obj
- the object to compare against
true
if this object is "equal to"
obj, false
if not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |