org.jdesktop.xpath.function
Class Matches

java.lang.Object
  extended by org.jdesktop.xpath.function.AbstractFunction
      extended by org.jdesktop.xpath.function.Matches
All Implemented Interfaces:
XPathFunction

public class Matches
extends AbstractFunction


Constructor Summary
Matches()
          Creates a new instance of EndsWith
 
Method Summary
 Object evaluate(List args)
          Evaluate the function with the specified arguments.
 
Methods inherited from class org.jdesktop.xpath.function.AbstractFunction
getArity, getName, getNumberParam, getStringParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matches

public Matches()
Creates a new instance of EndsWith

Method Detail

evaluate

public Object evaluate(List args)
                throws XPathFunctionException
Description copied from interface: javax.xml.xpath.XPathFunction

Evaluate the function with the specified arguments.

To the greatest extent possible, side-effects should be avoided in the definition of extension functions. The implementation evaluating an XPath expression is under no obligation to call extension functions in any particular order or any particular number of times.

Parameters:
args - The arguments, null is a valid value.
Returns:
The result of evaluating the XPath function as an Object.
Throws:
XPathFunctionException - If args cannot be evaluated with this XPath function.