|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.xml.transform.TransformerObjectSupport org.springframework.xml.xpath.AbstractXPathTemplate org.springframework.xml.xpath.JaxenXPathTemplate
public class JaxenXPathTemplate
Implementation of XPathOperations
that uses Jaxen.
namespaces
property.
Field Summary |
---|
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport |
---|
logger |
Constructor Summary | |
---|---|
JaxenXPathTemplate()
|
Method Summary | |
---|---|
List |
evaluate(String expression,
Source context,
NodeMapper nodeMapper)
Evaluates the given expression, mapping each result Node objects to a Java object via a NodeMapper . |
boolean |
evaluateAsBoolean(String expression,
Source context)
Evaluates the given expression as a boolean . |
double |
evaluateAsDouble(String expression,
Source context)
Evaluates the given expression as a double . |
Node |
evaluateAsNode(String expression,
Source context)
Evaluates the given expression as a Node . |
List |
evaluateAsNodeList(String expression,
Source context)
Evaluates the given expression as a list of Node objects. |
Object |
evaluateAsObject(String expression,
Source context,
NodeMapper nodeMapper)
Evaluates the given expression, mapping a single Node result to a Java object via a NodeMapper . |
String |
evaluateAsString(String expression,
Source context)
Evaluates the given expression as a String . |
Methods inherited from class org.springframework.xml.xpath.AbstractXPathTemplate |
---|
evaluate, getNamespaces, getRootElement, setNamespaces |
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport |
---|
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaxenXPathTemplate()
Method Detail |
---|
public boolean evaluateAsBoolean(String expression, Source context) throws XPathException
XPathOperations
boolean
. Returns the boolean evaluation of the expression, or
false
if it is invalid.
expression
- the XPath expressioncontext
- the context starting point
XPathException
- in case of XPath errorspublic Node evaluateAsNode(String expression, Source context) throws XPathException
XPathOperations
Node
. Returns the evaluation of the expression, or null
if it is invalid.
expression
- the XPath expressioncontext
- the context starting point
XPathException
- in case of XPath errorspublic List evaluateAsNodeList(String expression, Source context) throws XPathException
XPathOperations
Node
objects. Returns the evaluation of the expression, or an
empty list if no results are found.
expression
- the XPath expressioncontext
- the context starting point
XPathException
- in case of XPath errorspublic double evaluateAsDouble(String expression, Source context) throws XPathException
XPathOperations
double
. Returns the evaluation of the expression, or Double.NaN
if it is invalid.
expression
- the XPath expressioncontext
- the context starting point
XPathException
- in case of XPath errorspublic String evaluateAsString(String expression, Source context) throws XPathException
XPathOperations
String
. Returns the evaluation of the expression, or
null
if it is invalid.
expression
- the XPath expressioncontext
- the context starting point
XPathException
- in case of XPath errorspublic Object evaluateAsObject(String expression, Source context, NodeMapper nodeMapper) throws XPathException
XPathOperations
Node
result to a Java object via a NodeMapper
.
expression
- the XPath expressioncontext
- the context starting pointnodeMapper
- object that will map one object per node
XPathException
- in case of XPath errorspublic List evaluate(String expression, Source context, NodeMapper nodeMapper) throws XPathException
XPathOperations
Node
objects to a Java object via a NodeMapper
.
expression
- the XPath expressioncontext
- the context starting pointnodeMapper
- object that will map one object per node
XPathException
- in case of XPath errors
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |