|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springmodules.validation.bean.rule.resolver.ValangErrorArgumentsResolver
public class ValangErrorArgumentsResolver
Resolves error arguments based on valang expressions.
Constructor Summary | |
---|---|
ValangErrorArgumentsResolver()
Creates a new ValangErrorArgumentsResolver with no argument expressions, that is, there will be no arguments. |
|
ValangErrorArgumentsResolver(String[] expressions)
Creates a new ValangErrorArgumentsResolver with the given argument expressions. |
|
ValangErrorArgumentsResolver(String[] expressions,
Map functionsByName)
Creates a new ValangErrorArgumentsResolver with given argument expressions and custom functions that will be used by the valang parser. |
Method Summary | |
---|---|
protected Function |
parseFunction(String expression,
Map functionsByName)
Parses a valang Function from the given argument expression and custom functions. |
Object[] |
resolveArguments(Object obj)
Returns the error arguments that are resolved by the configured valang expressions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValangErrorArgumentsResolver()
public ValangErrorArgumentsResolver(String[] expressions)
expressions
- The argument valang expressions.public ValangErrorArgumentsResolver(String[] expressions, Map functionsByName)
expressions
- The arguments valang expressions.functionsByName
- A map of custom valang functiosns where the key is the function name and the value is
the name of the function class.Method Detail |
---|
public Object[] resolveArguments(Object obj)
resolveArguments
in interface ErrorArgumentsResolver
obj
- The validated object.
ErrorArgumentsResolver.resolveArguments(Object)
protected Function parseFunction(String expression, Map functionsByName)
Function
from the given argument expression and custom functions.
expression
- The given argument expression.functionsByName
- The custom valang functions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |