Package com.saxonica.ee.stream.feed
Class AbsorptionFeed.PendingItem
java.lang.Object
com.saxonica.ee.stream.feed.AbsorptionFeed.PendingItem
- Enclosing class:
AbsorptionFeed
A pending item represents a tree under construction.
The sequence number represents its position relative to other trees under construction.
The builder is the builder being used to construct the tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Sequence
deliver()
On completion of this streamed node, that is, when the relevant end tag is reached, compute the result of processing this node and return this resultabstract Receiver
Get a receiver which will be notified of all events in the streamed input between the start event for this node and the corresponding end event.int
Get the sequence number of this item within a set of items representing nested nodesabstract void
rollback()
Reset the data relating to this node if a dynamic error occurs while processing the input stream.
-
Constructor Details
-
PendingItem
public PendingItem(int sequenceNr)
-
-
Method Details
-
getSequenceNr
public int getSequenceNr()Get the sequence number of this item within a set of items representing nested nodes- Returns:
- the sequence number
-
getGatherer
Get a receiver which will be notified of all events in the streamed input between the start event for this node and the corresponding end event. This Receiver gathers data into the pending item so that the final result of processing the streamed node can be computed by the deliver() method- Returns:
- a receiver to be notified of all events relating to this streamed input node
- Throws:
XPathException
- if a dynamic error is detected
-
deliver
On completion of this streamed node, that is, when the relevant end tag is reached, compute the result of processing this node and return this result- Returns:
- the result of processing a streamed input node
- Throws:
XPathException
- if the processing fails with a dynamic error
-
rollback
public abstract void rollback()Reset the data relating to this node if a dynamic error occurs while processing the input stream.
-