org.springmodules.validation.valang.functions
Class LiteralFunction

java.lang.Object
  extended by org.springmodules.validation.valang.functions.LiteralFunction
All Implemented Interfaces:
Function
Direct Known Subclasses:
EnumLiteralFunction

public class LiteralFunction
extends Object
implements Function

Container class for a literal function. Stricly speaking this is not a function as it does not manipulate data.

Since:
Apr 23, 2005
Author:
Steven Devijver

Constructor Summary
LiteralFunction(Object literal)
           
 
Method Summary
 Object getResult(Object target)
          Gets the result of the function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteralFunction

public LiteralFunction(Object literal)
Method Detail

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


Copyright © 2009. All Rights Reserved.