|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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(java.lang.String[] expressions)
Creates a new ValangErrorArgumentsResolver with the given argument expressions. |
|
ValangErrorArgumentsResolver(java.lang.String[] expressions,
java.util.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(java.lang.String expression,
java.util.Map functionsByName)
Parses a valang Function from the given argument expression and custom functions. |
java.lang.Object[] |
resolveArguments(java.lang.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(java.lang.String[] expressions)
expressions - The argument valang expressions.
public ValangErrorArgumentsResolver(java.lang.String[] expressions,
java.util.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 java.lang.Object[] resolveArguments(java.lang.Object obj)
resolveArguments in interface ErrorArgumentsResolverobj - The validated object.
ErrorArgumentsResolver.resolveArguments(Object)
protected Function parseFunction(java.lang.String expression,
java.util.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 | ||||||||