|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExpressionExecutor
Simple interface that specifies how Stripes will invoke expression based validation. Generally used via the ExpressionValidator which will pick an appropriate implementation based on the current environment.
Implementations should throw an exception from their default constructor if they are unable to operate due to class versioning of availability issues.
Field Summary | |
---|---|
static String |
ERROR_DEFAULT_SCOPE
The default scope to use when constructing errors. |
static String |
ERROR_KEY
The error key to use when constructing errors. |
static String |
THIS
The special name given to the field that the expression is annotated on. |
Method Summary | |
---|---|
void |
evaluate(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Performs validation of an ActionBean property using the expression contained within the validation metadata. |
Field Detail |
---|
static final String ERROR_DEFAULT_SCOPE
static final String ERROR_KEY
static final String THIS
Method Detail |
---|
void evaluate(ActionBean bean, ParameterName name, List<Object> values, ValidationMetadata validationInfo, ValidationErrors errors)
bean
- the ActionBean instance owning the field being validatedname
- the name of the field being validatedvalues
- the List of values (post type conversion), each to be validatedvalidationInfo
- the validation metadata for the fielderrors
- the ValidationErrors object into which to place any errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |