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 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(String field)
          Constructor
 
Method Summary
 String getField()
          Gets property/field name.
 Object getResult(Object target)
          Gets result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanPropertyFunction

public BeanPropertyFunction(String field)
Constructor

Method Detail

getField

public String getField()
Gets property/field name.

Returns:

getResult

public Object getResult(Object target)
Gets result. Implementation of Function.

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


Copyright © 2009. All Rights Reserved.