Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface XPath
Method Summary | |
XPathExpression |
|
String |
|
Object | |
String |
|
Object |
|
NamespaceContext | |
XPathFunctionResolver | |
XPathVariableResolver | |
void |
|
void |
|
void | |
void |
public XPathExpression compile(String expression) throws XPathExpressionException
Compiles an XPath expression for future evaluation.
- Parameters:
expression
- the expression
public String evaluate(String expression, Object item) throws XPathExpressionException
Evaluates an expression and returns the result as a string.
- Parameters:
expression
- the expressionitem
- the expression context
public Object evaluate(String expression, Object item, QName returnType) throws XPathExpressionException
Evaluates an expression.
- Parameters:
expression
- the expressionitem
- the expression contextreturnType
- the desired return type
public String evaluate(String expression, InputSource source) throws XPathExpressionException
Evaluates an expression and returns the result as a string.
- Parameters:
expression
- the expressionsource
- the source to load the expression context from
public Object evaluate(String expression, InputSource source, QName returnType) throws XPathExpressionException
Evaluates an expression.
- Parameters:
expression
- the expressionsource
- the source to load the expression context fromreturnType
- the desired return type
public void reset()
Resets the environment.