org.springmodules.validation.bean.rule.resolver
Class FunctionErrorArgumentsResolver

java.lang.Object
  extended by org.springmodules.validation.bean.rule.resolver.FunctionErrorArgumentsResolver
All Implemented Interfaces:
ErrorArgumentsResolver

public class FunctionErrorArgumentsResolver
extends Object
implements ErrorArgumentsResolver

Resolves error arguments based on valang expressions.

Author:
Uri Boness

Constructor Summary
FunctionErrorArgumentsResolver(Function[] functions)
           
FunctionErrorArgumentsResolver(String[] expressions, FunctionExpressionParser functionExpressionParser)
           
 
Method Summary
protected static Function[] parseFunctionExpressions(String[] expressions, FunctionExpressionParser parser)
           
 Object[] resolveArguments(Object obj)
          Returns the error arguments that are resolved by the configured function expressions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionErrorArgumentsResolver

public FunctionErrorArgumentsResolver(Function[] functions)

FunctionErrorArgumentsResolver

public FunctionErrorArgumentsResolver(String[] expressions,
                                      FunctionExpressionParser functionExpressionParser)
Method Detail

resolveArguments

public Object[] resolveArguments(Object obj)
Returns the error arguments that are resolved by the configured function expressions.

Specified by:
resolveArguments in interface ErrorArgumentsResolver
Parameters:
obj - The validated object.
Returns:
The validation error arguments.
See Also:
ErrorArgumentsResolver.resolveArguments(Object)

parseFunctionExpressions

protected static Function[] parseFunctionExpressions(String[] expressions,
                                                     FunctionExpressionParser parser)


Copyright © 2009. All Rights Reserved.