|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.saxonica.stream.feed.ItemFeed
com.saxonica.stream.feed.SimpleNodeConstructorFeed
public class SimpleNodeConstructorFeed
This class is used when a streaming template requests evaluation of a simple content constructor in streaming mode (that is, when it constructs a text, attribute, comment, or PI node based on the contents of the streamed document).
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 Summary | |
|---|---|
SimpleNodeConstructorFeed(Expression expr,
Feed result,
Stack<XPathContext> contextStack)
|
|
| Method Summary | |
|---|---|
void |
append(Item item)
Supply an item to the feed |
void |
close()
Finish evaluating the expression. |
void |
open()
Start evaluating the expression. |
| Methods inherited from class com.saxonica.stream.feed.ItemFeed |
|---|
getContext, getContextStack, getExpression, getPipelineConfiguration, getResult, setPipelineConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleNodeConstructorFeed(Expression expr,
Feed result,
Stack<XPathContext> contextStack)
| Method Detail |
|---|
public void open()
throws XPathException
ItemFeed
open in interface Feedopen in class ItemFeedXPathException - if a dynamic error occurs
public void close()
throws XPathException
ItemFeed
close in interface Feedclose in class ItemFeedXPathException - if a dynamic error occurs
public void append(Item item)
throws XPathException
append in interface Feedappend in class ItemFeeditem - the item being fed
XPathException - to report any failure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||