public class AccumulatorManagerPE extends Object implements IAccumulatorManager
Modifier and Type | Field and Description |
---|---|
protected Map<StructuredQName,Accumulator> |
map |
Constructor and Description |
---|
AccumulatorManagerPE() |
Modifier and Type | Method and Description |
---|---|
void |
addAccumulator(Accumulator acc)
Register an accumulator with the manager
|
Accumulator |
getAccumulator(StructuredQName name) |
AccumulatorData |
getAccumulatorData(DocumentInfo doc,
Accumulator acc,
XPathContext context)
Get the data relating to a particular accumulator for a particular unstreamed document tree
|
Iterable<Accumulator> |
getAllAccumulators()
Get all the accumulators
|
protected Map<StructuredQName,Accumulator> map
public void addAccumulator(Accumulator acc)
acc
- the accumulator to be registeredpublic Accumulator getAccumulator(StructuredQName name)
public AccumulatorData getAccumulatorData(DocumentInfo doc, Accumulator acc, XPathContext context) throws XPathException
doc
- the source document tree in questionacc
- the required accumulatorcontext
- the XPath dynamic evaluation contextXPathException
- if any dynamic error occurspublic Iterable<Accumulator> getAllAccumulators()
getAllAccumulators
in interface IAccumulatorManager
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.