public class SimpleNodeConstructorFeed extends ItemFeed
The SimpleContentFeed is used when the node is constructed as a result of a computation on the streamed data,
for example xsl:value-of select="distinct-values(.//@price)". By contrast, a SimpleContentWatch
is used when the streamed nodes are selected directly, for example xsl:value-of select=".//@price".
Both a Feed and a Watch are needed because a simple content constructor operates on a sequence of nodes without simply atomizing the sequence.
| Constructor and Description |
|---|
SimpleNodeConstructorFeed(Expression expr,
Feed result,
XPathContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finish evaluating the expression.
|
void |
open(Terminator terminator)
Start evaluating the expression.
|
void |
processItem(Item<?> item)
Supply an item to the feed
|
dynamicError, endSelectedParentNode, getContext, getExpression, getPipelineConfiguration, getReceiver, getResult, getTerminator, hasFailed, processItems, setExpression, setHasFailed, setPipelineConfiguration, setTerminator, startSelectedParentNodepublic SimpleNodeConstructorFeed(Expression expr, Feed result, XPathContext context)
public void open(Terminator terminator) throws XPathException
ItemFeedopen in interface Feedopen in class ItemFeedterminator - used to achieve early exitXPathException - if a dynamic error occurspublic void processItem(Item<?> item) throws XPathException
processItem in interface FeedprocessItem in class ItemFeeditem - the item being fedXPathException - to report any failurepublic void close()
throws XPathException
ItemFeedclose in interface Feedclose in class ItemFeedXPathException - if a dynamic error occursCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.