Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.xml.xpath.XPathImpl
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 NamespaceContext getNamespaceContext()
- Specified by:
- getNamespaceContext in interface XPath
public XPathFunctionResolver getXPathFunctionResolver()
- Specified by:
- getXPathFunctionResolver in interface XPath
public XPathVariableResolver getXPathVariableResolver()
- Specified by:
- getXPathVariableResolver in interface XPath
public void setNamespaceContext(NamespaceContext nsContext)
- Specified by:
- setNamespaceContext in interface XPath
public void setXPathFunctionResolver(XPathFunctionResolver resolver)
- Specified by:
- setXPathFunctionResolver in interface XPath
public void setXPathVariableResolver(XPathVariableResolver resolver)
- Specified by:
- setXPathVariableResolver in interface XPath