org.jdesktop.xpath.function
Class AbstractFunction

java.lang.Object
  extended by org.jdesktop.xpath.function.AbstractFunction
All Implemented Interfaces:
XPathFunction
Direct Known Subclasses:
Abs, EndsWith, EqualsIgnoreCase, EscapeUri, LowerCase, Matches, Replace, UpperCase

public abstract class AbstractFunction
extends Object
implements XPathFunction


Constructor Summary
protected AbstractFunction(String name, int arity)
           
 
Method Summary
 int getArity()
           
 String getName()
           
protected  Number getNumberParam(Object o)
           
protected  String getStringParam(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.xpath.XPathFunction
evaluate
 

Constructor Detail

AbstractFunction

protected AbstractFunction(String name,
                           int arity)
Method Detail

getArity

public final int getArity()

getName

public final String getName()

getStringParam

protected String getStringParam(Object o)
                         throws XPathFunctionException
Throws:
XPathFunctionException

getNumberParam

protected Number getNumberParam(Object o)
                         throws XPathFunctionException
Throws:
XPathFunctionException