org.exolab.adaptx.xpath.expressions
public interface NodeExpression extends XPathExpression, MatchExpression
Field Summary | |
---|---|
static short | ANY_EXPR
The node expression type that selects or
matches "any" node. |
static short | ATTRIBUTE_EXPR
The node expression type that selects or
matches attribute nodes |
static short | COMMENT_EXPR
The node expression type that selects or
matches comment nodes |
static short | ELEMENT_EXPR
The node expression type that selects or
matches element nodes |
static short | IDENTITY_EXPR
The node expression type that selects or
matches the current context node |
static short | ID_EXPR
The node expression type that selects or
matches any element node with a specific ID |
static short | NAMESPACE_EXPR
The node expression type that selects or
matches namespace nodes |
static short | PARENT_EXPR
The node expression type that selects or
matches the parent node of the current
context node. |
static short | PI_EXPR
The node expression type that selects or
matches Processing Instruction nodes |
static short | TEXT_EXPR
The node expression type that selects or
matches text nodes |
static short | WILDCARD_EXPR
The node expression type that selects or
matches any element node |
Method Summary | |
---|---|
String | getName()
Returns the QName matched by this NodeExpression.
|
short | getNodeExprType()
Returns the type of this Node exprression, the value
must be one of the value Node expression types.
|
boolean | matches(XPathNode node, XPathContext context)
Determines if the given node is matched by this MatchExpr with
respect to the given context. |
Returns: the QName matched by this NodeExpression.
Returns: the type of this Node expression
Parameters: node the node to determine a match for context the XPathContext
Returns: true if the given node is matched by this MatchExpr
Throws: XPathException when an error occurs during evaluation