org.inria.ns.reflex.processor.xcl
Class ChannelFunction

java.lang.Object
  extended by org.inria.ns.reflex.xml.xpath.XPathFunction.NamedXPathFunction
      extended by org.inria.ns.reflex.processor.xcl.ChannelFunction
All Implemented Interfaces:
XPathFunction

public class ChannelFunction
extends XPathFunction.NamedXPathFunction
implements XPathFunction

The xcl:channel() function creates a channel for dispatching XML streams while filtering.

Author:
Philippe Poulard
See Also:
AbstractFilter

Nested Class Summary
 class ChannelFunction.Channel
          A Channel is a SAX filter that must be connected to a consumer (directly or indirectly through other filters) otherwise the events that it will reveive will be ignored.
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.xml.xpath.XPathFunction
XPathFunction.NamedXPathFunction
 
Constructor Summary
ChannelFunction()
           
 
Method Summary
 Object evaluate(XPathContext context, List args)
          Create a channel.
 
Methods inherited from class org.inria.ns.reflex.xml.xpath.XPathFunction.NamedXPathFunction
getQName, setQName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.inria.ns.reflex.xml.xpath.XPathFunction
getQName
 

Constructor Detail

ChannelFunction

public ChannelFunction()
Method Detail

evaluate

public Object evaluate(XPathContext context,
                       List args)
                throws XPathFunctionException
Create a channel.

Specified by:
evaluate in interface XPathFunction
Parameters:
context - The context when evaluating this function : XPath variables, current node, etc.
args - The list of arguments passed to this function.
Returns:
The result of the evaluation.
Throws:
XPathFunctionException - When this function fails to be evaluated.
See Also:
XPathFunction.evaluate(org.inria.ns.reflex.xml.xpath.XPathContext, java.util.List)