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 java.util.SortedMap<ParameterName,java.lang.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 java.util.List<java.lang.Object> |
DefaultActionBeanPropertyBinder.convert(ActionBean bean,
ParameterName propertyName,
java.lang.String[] values,
java.lang.Class<?> declaredType,
java.lang.Class<?> scalarType,
ValidationMetadata validationInfo,
java.util.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,
java.util.List<java.lang.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,
java.lang.String[] values,
ValidationMetadata validationInfo,
java.util.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,
java.util.List<java.lang.Object> values,
java.lang.Exception e,
ValidationErrors errors)
Invoked whenever an exception is thrown when attempting to bind a property to an ActionBean.
|
java.lang.String[] |
DefaultActionBeanPropertyBinder.Row.put(ParameterName key,
java.lang.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,
java.util.Map<ParameterName,java.util.List<java.lang.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(java.util.Map<ParameterName,java.lang.String[]> parameters,
ActionBean bean,
ValidationErrors errors)
Validates that all required fields have been submitted.
|
Modifier and Type | Method and Description |
---|---|
ValidationMetadata |
ValidationMetadataProvider.getValidationMetadata(java.lang.Class<?> beanType,
ParameterName property)
Get the validation metadata associated with the named
property of the given
ActionBean class. |
ValidationMetadata |
DefaultValidationMetadataProvider.getValidationMetadata(java.lang.Class<?> beanType,
ParameterName field) |
Modifier and Type | Method and Description |
---|---|
void |
ExpressionExecutorSupport.evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors) |
void |
ExpressionExecutor.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 void |
ExpressionValidator.evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Run expression validation on the bean property provided with the values provided.
|
void |
Jsp21ExpressionExecutor.evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors) |
? Copyright 2005-2006, Stripes Development Team.