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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_DEFAULT_SCOPE
The default scope to use when constructing errors.
|
static java.lang.String |
ERROR_KEY
The error key to use when constructing errors.
|
static java.lang.String |
THIS
The special name given to the field that the expression is annotated on.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Performs validation of an ActionBean property using the expression contained
within the validation metadata.
|
static final java.lang.String ERROR_DEFAULT_SCOPE
static final java.lang.String ERROR_KEY
static final java.lang.String THIS
void evaluate(ActionBean bean, ParameterName name, java.util.List<java.lang.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? Copyright 2005-2006, Stripes Development Team.