org.jdesktop.xpath.function
Class Replace

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

public class Replace
extends AbstractFunction


Constructor Summary
Replace()
          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

Replace

public Replace()
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.