org.springmodules.validation.valang.functions
Class AbstractInitializableFunction

java.lang.Object
  extended by org.springmodules.validation.valang.functions.AbstractInitializableFunction
All Implemented Interfaces:
Function

public abstract class AbstractInitializableFunction
extends Object
implements Function

Author:
Uri Boness

Constructor Summary
protected AbstractInitializableFunction()
           
protected AbstractInitializableFunction(Function[] arguments, int line, int column)
           
 
Method Summary
 Function[] getArguments()
           
 Object getResult(Object target)
          Gets the result of the function.
protected abstract  Object getResult(Object target, Function[] arguments)
           
 void init(Function[] arguments, int line, int column)
           
protected  boolean isInitialized()
           
protected abstract  void validateArguments(Function[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInitializableFunction

protected AbstractInitializableFunction()

AbstractInitializableFunction

protected AbstractInitializableFunction(Function[] arguments,
                                        int line,
                                        int column)
Method Detail

init

public void init(Function[] arguments,
                 int line,
                 int column)

getResult

public Object getResult(Object target)
Description copied from interface: Function

Gets the result of the function.

Specified by:
getResult in interface Function
Parameters:
target - the target bean
Returns:
the result of the function

validateArguments

protected abstract void validateArguments(Function[] arguments)
                                   throws RuntimeException
Throws:
RuntimeException

getResult

protected abstract Object getResult(Object target,
                                    Function[] arguments)

getArguments

public Function[] getArguments()

isInitialized

protected boolean isInitialized()


Copyright © 2009. All Rights Reserved.