|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.evpull.Decomposer
public class Decomposer
This class takes a sequence of pull events and turns it into fully-decomposed form, that is, it takes and document and element nodes in the sequence and turns them into a subsequence consisting of a start element|document event, a content sequence, and an end element|document event, recursively.
The resulting sequence is decomposed, but not flat (it will contain nested EventIterators). To flatten
it, use EventStackIterator.flatten(EventIterator)
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 configurationMethod Detail |
---|
public PullEvent next() throws XPathException
next
in interface EventIterator
XPathException
- if a dynamic evaluation error occurspublic boolean isFlatSequence()
isFlatSequence
in interface EventIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |