| Package | Description |
|---|---|
| net.sourceforge.stripes.controller |
This package contains classes which form the core internals of Stripes.
|
| net.sourceforge.stripes.validation |
This package contains interfaces and implementations of error message classes
and of classes that convert Strings to rich objects, providing validation during
the conversion.
|
| net.sourceforge.stripes.validation.expression |
This package provides several classes that give Stripes the ability to execute
EL expressions for validation using various implementations.
|
| Modifier and Type | Method and Description |
|---|---|
protected SortedMap<ParameterName,String[]> |
DefaultActionBeanPropertyBinder.getParameters(ActionBean bean)
Converts the map of parameters in the request into a Map of ParameterName to String[].
|
| Modifier and Type | Method and Description |
|---|---|
int |
ParameterName.compareTo(ParameterName that)
Orders ParameterNames so that those with shorter (unstripped) names come first.
|
protected List<Object> |
DefaultActionBeanPropertyBinder.convert(ActionBean bean,
ParameterName propertyName,
String[] values,
Class<?> declaredType,
Class<?> scalarType,
ValidationMetadata validationInfo,
List<ValidationError> errors)
Converts the String[] of values for a given parameter in the HttpServletRequest into the
desired type of Object.
|
protected void |
DefaultActionBeanPropertyBinder.doExpressionValidation(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Performs validation of attribute values using a JSP EL expression if one is defined in the
@Validate annotation.
|
protected void |
DefaultActionBeanPropertyBinder.doPreConversionValidations(ParameterName propertyName,
String[] values,
ValidationMetadata validationInfo,
List<ValidationError> errors)
Performs several basic validations on the String value supplied in the HttpServletRequest,
based on information provided in annotations on the ActionBean.
|
protected void |
DefaultActionBeanPropertyBinder.handlePropertyBindingError(ActionBean bean,
ParameterName name,
List<Object> values,
Exception e,
ValidationErrors errors)
Invoked whenever an exception is thrown when attempting to bind a property to an ActionBean.
|
String[] |
DefaultActionBeanPropertyBinder.Row.put(ParameterName key,
String[] values)
Adds the value to the map, along the way checking to see if there are any non-null values for
the row so far.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultActionBeanPropertyBinder.doPostConversionValidations(ActionBean bean,
Map<ParameterName,List<Object>> convertedValues,
ValidationErrors errors)
Performs basic post-conversion validations on the properties of the ActionBean after they
have been converted to their rich type by the type conversion system.
|
protected void |
DefaultActionBeanPropertyBinder.validateRequiredFields(Map<ParameterName,String[]> parameters,
ActionBean bean,
ValidationErrors errors)
Validates that all required fields have been submitted.
|
| Modifier and Type | Method and Description |
|---|---|
ValidationMetadata |
ValidationMetadataProvider.getValidationMetadata(Class<?> beanType,
ParameterName property)
Get the validation metadata associated with the named
property of the given
ActionBean class. |
ValidationMetadata |
DefaultValidationMetadataProvider.getValidationMetadata(Class<?> beanType,
ParameterName field) |
| Modifier and Type | Method and Description |
|---|---|
void |
Jsp21ExpressionExecutor.evaluate(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors) |
static void |
ExpressionValidator.evaluate(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Run expression validation on the bean property provided with the values provided.
|
void |
ExpressionExecutorSupport.evaluate(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors) |
void |
ExpressionExecutor.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.
|
© Copyright 2005-2006, Stripes Development Team.