|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.validator.util.ShaleValidatorAction
public final class ShaleValidatorAction
Custom wrapper around a Commons Validator ValidatorAction
that precalculates as many of the introspective lookup operations as
possible. This ensures that runtime operation of the validator checks
can proceed as quickly as possible.
Constructor Summary | |
---|---|
ShaleValidatorAction(ValidatorResources resources,
ValidatorAction action)
Create a new instance of ShaleValidatorAction that wraps the specified ValidatorAction . |
Method Summary | |
---|---|
ValidatorAction |
getAction()
Return the ValidatorAction instance we are wrapping. |
Object |
getInstance()
Return an instance of the requested validator class, if the requested validation method is not static. |
Arg[] |
getMessageArgs()
Return an array of argument metadata describing subtitution values for error messages emitted by this validator type. |
String |
getMessageKey()
Return the lookup key for the error message template to be used if this validation fails. |
Method |
getMethod()
Return the validation Method to be called for this
action. |
Arg[] |
getParameterArgs()
Return an array of argument metadata describing the parameter values to be sent to the validation method for this validator type. |
Class[] |
getSignature()
Return the parameter signature for the validation method to be called for this action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShaleValidatorAction(ValidatorResources resources, ValidatorAction action)
Create a new instance of ShaleValidatorAction that wraps the
specified ValidatorAction
.
resources
- ValidatorResources
for this applicationaction
- The ValidatorAction
to be wrapped
IllegalArgumentException
- if configuration data is missing
or incorrectMethod Detail |
---|
public ValidatorAction getAction()
Return the ValidatorAction
instance we are wrapping.
public Object getInstance()
Return an instance of the requested validator class, if the requested
validation method is not static. If the method is static, return
null
instead.
public Arg[] getMessageArgs()
Return an array of argument metadata describing subtitution values for error messages emitted by this validator type.
public String getMessageKey()
Return the lookup key for the error message template to be used if this validation fails.
public Method getMethod()
Return the validation Method
to be called for this
action.
public Arg[] getParameterArgs()
Return an array of argument metadata describing the parameter values to be sent to the validation method for this validator type.
public Class[] getSignature()
Return the parameter signature for the validation method to be called for this action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |