public class Decomposer extends Object implements EventIterator
The resulting sequence is decomposed, but not flat (it will contain nested EventIterators). To flatten
it, use EventStackIterator.flatten(EventIterator)
Constructor and Description |
---|
Decomposer(EventIterator base,
PipelineConfiguration pipe)
Create a Decomposer, which turns an event sequence into fully decomposed form
|
Decomposer(NodeInfo node,
PipelineConfiguration pipe)
Create a Decomposer which returns the sequence of events corresponding to
a particular node
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFlatSequence()
Determine whether the EventIterator returns a flat sequence of events, or whether it can return
nested event iterators
|
PullEvent |
next()
Get the next event in the sequence
|
public Decomposer(EventIterator base, PipelineConfiguration pipe)
base
- the base sequence, which may be fully composed, fully decomposed, or
anything in betweenpipe
- the Saxon pipeline configurationpublic Decomposer(NodeInfo node, PipelineConfiguration pipe)
node
- the node to be decomposedpipe
- the Saxon pipeline configurationpublic PullEvent next() throws XPathException
next
in interface EventIterator
XPathException
- if a dynamic evaluation error occurspublic boolean isFlatSequence()
isFlatSequence
in interface EventIterator
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.