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

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

public class CanonicalPathFunction
extends XPathFunction.NamedXPathFunction
implements XPathFunction

The xcl:canonical-path() function computes the canonical path of a node.

Author:
Philippe Poulard
See Also:
CanonicalPath

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.xml.xpath.XPathFunction
XPathFunction.NamedXPathFunction
 
Constructor Summary
CanonicalPathFunction()
           
 
Method Summary
 Object evaluate(XPathContext context, List args)
          Computes the canonical path of the node given as the first argument.
 
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

CanonicalPathFunction

public CanonicalPathFunction()
Method Detail

evaluate

public Object evaluate(XPathContext context,
                       List args)
                throws XPathFunctionException
Computes the canonical path of the node given as the first argument.

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