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, startSelectedParentNode
public 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 Feed
processItem
in class ItemFeed
item
- the item being fedXPathException
- to report any failurepublic void close() throws XPathException
ItemFeed
close
in interface Feed
close
in class ItemFeed
XPathException
- if a dynamic error occursCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.