org.springmodules.validation.valang.functions
Class BeanPropertyFunction

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

public class BeanPropertyFunction
extends java.lang.Object
implements Function

Function taking the value from a bean property or a java.util.Map instance.

Since:
Apr 23, 2005
Author:
Steven Devijver

Constructor Summary
BeanPropertyFunction(java.lang.String field)
           
 
Method Summary
 java.lang.String getField()
           
 java.lang.Object getResult(java.lang.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

BeanPropertyFunction

public BeanPropertyFunction(java.lang.String field)
Method Detail

getField

public java.lang.String getField()

getResult

public java.lang.Object getResult(java.lang.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 © 2005. All Rights Reserved.