| Constructor and Description |
|---|
CallableFeed(Callable function,
Feed result,
XPathContext context,
Expression[] arguments)
Create a Feed that evaluates a Callable (often but not necessarily a function)
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finish evaluating the expression.
|
void |
processItem(Item<?> item)
Supply an item to the feed
|
dynamicError, endSelectedParentNode, getContext, getExpression, getPipelineConfiguration, getReceiver, getResult, getTerminator, hasFailed, open, processItems, setExpression, setHasFailed, setPipelineConfiguration, setTerminator, startSelectedParentNodepublic CallableFeed(Callable function, Feed result, XPathContext context, Expression[] arguments)
function - the function or other Callableresult - the place to send the results of evaluating this Callablecontext - dynamic context informationarguments - the arguments to the Callable. Typically one of these is Consuming. The
expression receives its input for the consuming argument via the processItem() call,
and it then evaluates the other (non-streamed) arguments by calling iterate() on them.public 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.