Package com.saxonica.ee.stream.feed
Class SnapshotFeed
- java.lang.Object
- 
- All Implemented Interfaces:
- javax.xml.transform.Result,- Receiver
 
 public class SnapshotFeed extends AbsorptionFeed This class provides streamed implementation of the snapshot() function
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.saxonica.ee.stream.feed.AbsorptionFeedAbsorptionFeed.PendingItem
 
- 
 - 
Field Summary- 
Fields inherited from class net.sf.saxon.event.OutputterpipelineConfiguration, systemId
 
- 
 - 
Constructor SummaryConstructors Constructor Description SnapshotFeed(WatchManager watchManager, ItemFeed result, XPathContext context)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TriggergetWatch(ItemFeed result, Pattern selection, WatchManager wm, XPathContext context)Create a Watch whose effect is to create snapshots of the selected (streamed) nodes and pass them to the supplied feedprotected AbsorptionFeed.PendingItemmakePendingItem(int sequenceNr, FleetingParentNode node)Create a pending item (appropriate to the subclass) containing the data needed to compute the result value for one node in the streamed input sequenceprotected SequenceprocessGroundedItem(Item item)Process a grounded item in the input sequence: either a streamed leaf node such as an attribute or text node, or an atomic value, or a non-streamed element or document node injected into the sequence for example by use of the comma operator.- 
Methods inherited from class com.saxonica.ee.stream.feed.AbsorptionFeedappend, endSelectedParentNode, setHasFailed, startSelectedParentNode
 - 
Methods inherited from class com.saxonica.ee.stream.feed.GroundedItemFeedattribute, characters, comment, endDocument, endElement, namespace, processingInstruction, setUnparsedEntity, startContent, startDocument, startElement, startElement
 - 
Methods inherited from class com.saxonica.ee.stream.feed.ItemFeedappend, close, dynamicError, getContext, getExpression, getResult, getTerminator, hasFailed, open, processItems, setExpression, setTerminator
 - 
Methods inherited from class net.sf.saxon.event.ProxyOutputtergetNextOutputter, open, setLocation, usesTypeAnnotations
 - 
Methods inherited from class net.sf.saxon.event.OutputtergetConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.sf.saxon.event.ReceiverhandlesAppend
 
- 
 
- 
- 
- 
Constructor Detail- 
SnapshotFeedpublic SnapshotFeed(WatchManager watchManager, ItemFeed result, XPathContext context) 
 
- 
 - 
Method Detail- 
getWatchpublic static Trigger getWatch(ItemFeed result, Pattern selection, WatchManager wm, XPathContext context) Create a Watch whose effect is to create snapshots of the selected (streamed) nodes and pass them to the supplied feed- Parameters:
- result- The feed to which the snapshot nodes should be supplied
- selection- defines the nodes to be selected
- wm- The WatchManager that will notify the selected nodes
- context- the XPath evaluation context
- Returns:
- the new Watch
 
 - 
makePendingItemprotected AbsorptionFeed.PendingItem makePendingItem(int sequenceNr, FleetingParentNode node) throws XPathException Description copied from class:AbsorptionFeedCreate a pending item (appropriate to the subclass) containing the data needed to compute the result value for one node in the streamed input sequence- Specified by:
- makePendingItemin class- AbsorptionFeed
- Parameters:
- sequenceNr- the sequence number of this node within a set of nested nodes
- node- the streamed input node
- Returns:
- the data needed to process this node
- Throws:
- XPathException- if a dynamic error is detected at this stage
 
 - 
processGroundedItemprotected Sequence processGroundedItem(Item item) Description copied from class:AbsorptionFeedProcess a grounded item in the input sequence: either a streamed leaf node such as an attribute or text node, or an atomic value, or a non-streamed element or document node injected into the sequence for example by use of the comma operator.- Specified by:
- processGroundedItemin class- AbsorptionFeed
- Parameters:
- item- the grounded item
- Returns:
- the result of processing the grounded item
 
 
- 
 
-