org.inria.ns.reflex.xml.provider.jaxen
Class JaxenXPathFunctionResolver.JaxenXPathFunction

java.lang.Object
  extended by org.inria.ns.reflex.xml.provider.jaxen.JaxenXPathFunctionResolver.JaxenXPathFunction
All Implemented Interfaces:
Unwrappable, XPathFunction
Enclosing class:
JaxenXPathFunctionResolver

public static class JaxenXPathFunctionResolver.JaxenXPathFunction
extends Object
implements XPathFunction, Unwrappable

Wraps a native Jaxen function inside an ActiveTags function.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.xml.xpath.XPathFunction
XPathFunction.NamedXPathFunction
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.structures.Unwrappable
Unwrappable.Unwrapper
 
Field Summary
 
Fields inherited from interface org.inria.ns.reflex.structures.Unwrappable
UNWRAPPER
 
Method Summary
 Object evaluate(XPathContext context, List args)
          Evalutate this function.
 Function getNativeJaxenFunction()
          Unwrap the Jaxen function.
 QName getQName()
          Return the name of this function.
 Object unwrap()
          Unwrap the native Jaxen function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNativeJaxenFunction

public Function getNativeJaxenFunction()
Unwrap the Jaxen function.

Returns:
The Jaxen function.
See Also:
unwrap()

evaluate

public Object evaluate(XPathContext context,
                       List args)
                throws XPathFunctionException
Evalutate this function.

Specified by:
evaluate in interface XPathFunction
Parameters:
context - The context.
args - The list of arguments.
Returns:
The result of the evaluation.
Throws:
XPathFunctionException - When this function fails to be evaluated.
See Also:
XPathFunction.evaluate(XPathContext, List)

unwrap

public Object unwrap()
Unwrap the native Jaxen function.

Specified by:
unwrap in interface Unwrappable
Returns:
A Function.
See Also:
getNativeJaxenFunction(), Unwrappable.unwrap()

getQName

public QName getQName()
Return the name of this function.

Specified by:
getQName in interface XPathFunction
Returns:
The name of this function.
See Also:
XPathFunction.getQName()