Package net.sf.saxon.expr.accum
Class VirtualAccumulatorData
- java.lang.Object
-
- net.sf.saxon.expr.accum.VirtualAccumulatorData
-
- All Implemented Interfaces:
IAccumulatorData
public class VirtualAccumulatorData extends java.lang.Object implements IAccumulatorData
Holds the values of an accumulator function for a virtual copy of a document (where the accumulator values are copies of those on the underlying document)
-
-
Constructor Summary
Constructors Constructor Description VirtualAccumulatorData(IAccumulatorData realData)
-
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
-
-
-
Constructor Detail
-
VirtualAccumulatorData
public VirtualAccumulatorData(IAccumulatorData realData)
-
-
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
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
-
-