Package net.sf.saxon.expr.accum
Class PathMappedAccumulatorData
- java.lang.Object
-
- net.sf.saxon.expr.accum.PathMappedAccumulatorData
-
- All Implemented Interfaces:
IAccumulatorData
public class PathMappedAccumulatorData extends java.lang.Object implements IAccumulatorData
Accumulator data for a tree that is obtained by mapping the nodes in this tree to nodes in some other tree (specifically, the subtree from which this tree was originally copied with copy-accumulators=yes) and getting the accumulator value from the corresponding node in the other tree.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Accumulator
getAccumulator()
Get the associated accumulatorSequence
getValue(NodeInfo node, boolean postDescent)
Get the value of the accumulator for a given node
-
-
-
Method Detail
-
getAccumulator
public Accumulator getAccumulator()
Description copied from interface:IAccumulatorData
Get the associated accumulator- Specified by:
getAccumulator
in interfaceIAccumulatorData
- Returns:
- the accumulator
-
getValue
public Sequence getValue(NodeInfo node, boolean postDescent) throws XPathException
Description copied from interface:IAccumulatorData
Get the value of the accumulator for a given node- Specified by:
getValue
in interfaceIAccumulatorData
- Parameters:
node
- the node in questionpostDescent
- false if the pre-descent value of the accumulator is required; false if the post-descent value is wanted.- Returns:
- the value of the accumulator for this node
- Throws:
XPathException
- if any error occurs
-
-