org.springframework.xml.xpath
Interface NodeMapper
public interface NodeMapper
An interface used by XPathOperations
implementations for mapping Node
objects on a per-node basis.
Implementations of this interface perform the actual work of mapping each node to a result object, but don't need to
worry about exception handling.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
XPathOperations.evaluate(String,javax.xml.transform.Source,NodeMapper)
,
XPathOperations.evaluateAsObject(String,javax.xml.transform.Source,NodeMapper)
,
XPathExpression.evaluate(org.w3c.dom.Node,NodeMapper)
,
XPathExpression.evaluateAsObject(org.w3c.dom.Node,NodeMapper)
Method Summary |
java.lang.Object |
mapNode(org.w3c.dom.Node node,
int nodeNum)
Maps a single node to an arbitrary object. |
mapNode
java.lang.Object mapNode(org.w3c.dom.Node node,
int nodeNum)
throws org.w3c.dom.DOMException
- Maps a single node to an arbitrary object.
- Parameters:
node
- the node to mapnodeNum
- the number of the current node
- Returns:
- object for the current node
- Throws:
org.w3c.dom.DOMException
- in case of DOM errors
Copyright � 2005-2008 The Spring Web Services Framework. All Rights Reserved.