public class ChooseAdjunct extends TransmissionAdjunct
Constructor and Description |
---|
ChooseAdjunct() |
Modifier and Type | Method and Description |
---|---|
FeedMaker |
getFeedMaker(int arg)
Get a FeedMaker, a factory class that creates a Feed to evaluate this expression
in streaming mode.
|
WatchMaker |
getWatchMaker(boolean forGrouping)
Get a WatchMaker, a factory class that creates a Watch to evaluate this expression
in streaming mode.
|
Feed |
makeItemFeed(WatchManager watchManager,
Feed out,
XPathContext context) |
Trigger |
makeTransmissionFlow(WatchManager watchManager,
Expression exp,
Feed out,
XPathContext context)
Make a Trigger that implements this expression in streaming mode.
|
void |
setExpression(Expression expression)
Set the expression being processed by this StreamingAdjunct
|
Pattern |
toStreamingPattern(Configuration config)
Convert this expression to a streaming pattern (a pattern used internally to match nodes during
push processing of an event stream)
|
computeStreamability, getConfiguration, getDefaultFeedMaker, getExpression, setConfiguration
public void setExpression(Expression expression)
StreamingAdjunct
setExpression
in class StreamingAdjunct
expression
- the expression being processedpublic Pattern toStreamingPattern(Configuration config)
toStreamingPattern
in class StreamingAdjunct
config
- the Saxon configurationpublic WatchMaker getWatchMaker(boolean forGrouping) throws XPathException
StreamingAdjunct
Expression.WATCH_METHOD
getWatchMaker
in class TransmissionAdjunct
forGrouping
- true if the selected items are being groupedXPathException
- in the event of a failurepublic Trigger makeTransmissionFlow(WatchManager watchManager, Expression exp, Feed out, XPathContext context) throws XPathException
TransmissionAdjunct
makeTransmissionFlow
in class TransmissionAdjunct
watchManager
- the WatchManager that fires this triggerexp
- the expressionout
- the next action in the push pipeline for evaluationcontext
- the XPath dynamic contextXPathException
- if a dynamic evaluation error occurs.public Feed makeItemFeed(WatchManager watchManager, Feed out, XPathContext context) throws XPathException
XPathException
public FeedMaker getFeedMaker(int arg) throws XPathException
StreamingAdjunct
getFeedMaker
in class StreamingAdjunct
arg
- identifies the argument with respect to which the expression is to be inverted:
usually 0 to indicate the first argument is the value that is streamed. Argument numbering
is the same as the sequence of arguments/operands returned by the method Expression.operands()
XPathException
- in the event of a failureCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.