|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
XPathNode models a node as described in the XPath data model.
Field Summary | |
static int |
ATTRIBUTE
|
static int |
COMMENT
|
static int |
ELEMENT
|
static int |
NAMESPACE
|
static int |
PI
|
static int |
ROOT
|
static int |
TEXT
|
static String[] |
TYPE_NAMES
|
static int |
TYPES
The number of existing types. |
static int |
UNKNOWN
|
Method Summary | |
void |
accept(NodeVisitor visitor)
Dispatch method for NodeVisitors. |
int |
compareToNode(XPathNode node)
Compare to another XPathNode from the same document. |
boolean |
equals(Object object)
Test if an object is equal to this node. |
boolean |
equalsNode(XPathNode node)
Test if the node equals the given node. |
XPathNode[] |
getAttributes()
Return the Attributes of this XPathNode. |
String |
getBaseUri()
Return the base uri of the node, determined by the value of the xml:base attribute on the node, or, if it has no xml:base attribute, by the value of the xml:base attribute on the nearest ancestor of the node that has an xml:base attribute and the given document uri. |
XPathNode |
getCacheableNode()
Return a node object which can be cached without eating up any resources. |
int |
getChildCount()
Return the number of children. |
XPathNode |
getFirstChild()
Return the first child. |
XPathNode |
getFirstSibling()
Return the first sibling. |
String |
getGlobalId()
Return an unique global identifier for the node. |
String |
getLanguage()
Return the language of the node, determined by the value of the xml:lang attribute on the node, or, if it has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the node that has an xml:lang attribute. |
int |
getLineNumber()
Return the line number of this node in a source document. |
int |
getLocalId()
Return a number for the node that is unique within the document. |
String |
getLocalName()
Return the local name of the node. |
String |
getName()
Return the name of the node. |
NamespaceContext |
getNamespaceContext()
Return the namespace context of the node. |
XPathNode[] |
getNamespaceNodes()
Return the NamespaceNodes of this XPathNode. |
String |
getNamespaceUri()
Return the namespace uri of the node. |
XPathNode |
getNextSibling()
Return the next sibling. |
NodeName |
getNodeName()
Return the nodename of the node. |
XPathNode |
getParent()
Return the parent of this node. |
String |
getPrefix()
Return the prefix of the node. |
XPathNode |
getPrevSibling()
Return the previous sibling. |
XPathRootNode |
getRoot()
Return the root of this node. |
int |
getType()
Return the type of the XPathNode. |
String |
getTypeName()
Return name of the type. |
String |
getValue()
Return the string value of this node. |
int |
hashCode()
Return a hashCode. |
boolean |
hasName(NodeName name)
Test if the node name equals the given name. |
boolean |
hasNamespaceUri(NodeName name)
Test if the namespace uri of this node equals the uri of the given NodeName. |
String |
toString()
Return a string representation. |
Field Detail |
public static final int ELEMENT
public static final int TEXT
public static final int ATTRIBUTE
public static final int ROOT
public static final int COMMENT
public static final int PI
public static final int NAMESPACE
public static final int TYPES
public static final int UNKNOWN
public static final String[] TYPE_NAMES
Method Detail |
public int getType()
public String getTypeName()
public XPathRootNode getRoot()
public XPathNode getParent()
public int getChildCount()
public XPathNode getFirstChild()
public XPathNode getNextSibling()
public XPathNode getPrevSibling()
public XPathNode getFirstSibling()
public XPathNode getCacheableNode()
public String getValue()
public NodeName getNodeName()
public String getName()
public String getLocalName()
public String getPrefix()
public String getNamespaceUri()
public boolean hasName(NodeName name)
public boolean hasNamespaceUri(NodeName name)
public XPathNode[] getAttributes()
public String getLanguage()
public String getBaseUri()
public XPathNode[] getNamespaceNodes()
public NamespaceContext getNamespaceContext()
public int getLocalId()
public String getGlobalId()
public int compareToNode(XPathNode node)
public boolean equalsNode(XPathNode node)
public int getLineNumber()
public void accept(NodeVisitor visitor)
public boolean equals(Object object)
public int hashCode()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |