Package | Description |
---|---|
net.sourceforge.stripes.controller |
This package contains classes which form the core internals of Stripes.
|
net.sourceforge.stripes.tag |
Contains implementation classes for all the Stripes custom tags and interfaces
for overriding the strategy used to (re-)populate tag values and rendering tags
in case of validation errors.
|
net.sourceforge.stripes.util |
This package contains various utility classes that are used to implement 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.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 java.lang.String[] |
DefaultActionBeanPropertyBinder.trim(java.lang.String[] values,
ValidationMetadata meta)
Inspects the given
ValidationMetadata object to determine if the given values
should be trimmed. |
Modifier and Type | Method and Description |
---|---|
protected ValidationMetadata |
InputTagSupport.getValidationMetadata() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,ValidationMetadata> |
UrlBuilder.getValidationMetadata()
Get a map of property names to
ValidationMetadata for the ActionBean class
bound to the URL being built. |
Modifier and Type | Method and Description |
---|---|
ValidationMetadata |
ValidationMetadata.converter(java.lang.Class<? extends TypeConverter> converter)
Sets the overridden TypeConveter to use to convert values.
|
ValidationMetadata |
ValidationMetadata.encrypted(boolean encrypted)
Sets the encrypted flag for this field.
|
ValidationMetadata |
ValidationMetadata.expression(java.lang.String expression)
Sets the expression that should be used to validate values.
|
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) |
ValidationMetadata |
ValidationMetadata.ignore(boolean ignore)
Sets whether or not this field should be ignored during binding and validation.
|
ValidationMetadata |
ValidationMetadata.mask(java.lang.String mask)
Sets the mask which the String form of the property must match.
|
ValidationMetadata |
ValidationMetadata.maxlength(java.lang.Integer maxlength)
Sets the maximum acceptable length for property values.
|
ValidationMetadata |
ValidationMetadata.maxvalue(java.lang.Double maxvalue)
Sets the maximum acceptable value for numeric property values.
|
ValidationMetadata |
ValidationMetadata.minlength(java.lang.Integer minlength)
Sets the minimum acceptable length for property values.
|
ValidationMetadata |
ValidationMetadata.minvalue(java.lang.Double minvalue)
Sets the minimum acceptable value for numeric property values.
|
ValidationMetadata |
ValidationMetadata.on(java.lang.String... on)
Sets the set of events for which the field in question is required, if it is at all.
|
ValidationMetadata |
ValidationMetadata.required(boolean required)
Sets the required-ness of this field.
|
ValidationMetadata |
ValidationMetadata.trim(boolean trim)
Sets the trim flag of this field.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,ValidationMetadata> |
ValidationMetadataProvider.getValidationMetadata(java.lang.Class<?> beanType)
Get a map of property names to
ValidationMetadata for the given ActionBean
class. |
java.util.Map<java.lang.String,ValidationMetadata> |
DefaultValidationMetadataProvider.getValidationMetadata(java.lang.Class<?> beanType) |
protected java.util.Map<java.lang.String,ValidationMetadata> |
DefaultValidationMetadataProvider.loadForClass(java.lang.Class<?> beanType)
Get validation information for all the properties and nested properties of the given class.
|
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.