org.springmodules.validation.bean.rule.resolver
Class FunctionErrorArgumentsResolver
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionErrorArgumentsResolver
public FunctionErrorArgumentsResolver(Function[] functions)
FunctionErrorArgumentsResolver
public FunctionErrorArgumentsResolver(String[] expressions,
FunctionExpressionParser functionExpressionParser)
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.