| 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.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.
|
| Modifier and Type | Method and Description |
|---|---|
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.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.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<ValidationError> |
InputTagSupport.fieldErrors
A list of the errors related to this input tag instance
|
| Modifier and Type | Method and Description |
|---|---|
ValidationError |
ErrorsTag.getCurrentError()
Called by the IndividualErrorTag to fetch the current error from the set being iterated.
|
| Modifier and Type | Method and Description |
|---|---|
List<ValidationError> |
InputTagSupport.getFieldErrors()
Access for the field errors that occurred on the form input this tag represents
|
| Modifier and Type | Class and Description |
|---|---|
class |
LocalizableError
Provides a mechanism for creating localizable error messages for presentation to the user.
|
class |
ScopedLocalizableError
Provides a slightly more customizable approach to error messages.
|
class |
SimpleError
Validation error message that allows for supplying the error message at the time of
creation - i.e.
|
| Modifier and Type | Method and Description |
|---|---|
List<ValidationError> |
ValidationErrors.put(String field,
List<ValidationError> errors)
Replaces the list of errors for a given field with the list supplied.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ValidationErrors.add(String field,
ValidationError error)
Synonym for put(String field, ValidationError error).
|
void |
ValidationErrors.addGlobalError(ValidationError error)
Allows for the addition of errors that are not tied to a specific field.
|
void |
ValidationErrors.put(String field,
ValidationError error)
Adds an error message for the field specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ValidationErrors.addAll(String field,
List<ValidationError> errors)
Synonym for putAll().
|
BigDecimal |
BigDecimalTypeConverter.convert(String input,
Class<? extends BigDecimal> targetType,
Collection<ValidationError> errors)
Implemented to parse a BigDecimal using the parse() support method.
|
BigInteger |
BigIntegerTypeConverter.convert(String input,
Class<? extends BigInteger> targetType,
Collection<ValidationError> errors)
Implemented to parse a BigDecimal and then remove any fractional part and
return a BigInteger.
|
Boolean |
BooleanTypeConverter.convert(String input,
Class<? extends Boolean> targetType,
Collection<ValidationError> errors)
Converts a String to a Boolean in accordance with the specification laid out in the
class level javadoc.
|
Byte |
ByteTypeConverter.convert(String input,
Class<? extends Byte> targetType,
Collection<ValidationError> errors)
Converts a String to a Byte in accordance with the rules laid out in the class level javadoc.
|
Character |
CharacterTypeConverter.convert(String input,
Class<? extends Character> targetType,
Collection<ValidationError> errors)
Converts the input String to a Character by taking the first character in the
String and returning it.
|
Date |
DateTypeConverter.convert(String input,
Class<? extends Date> targetType,
Collection<ValidationError> errors)
Attempts to convert a String to a Date object.
|
Double |
DoubleTypeConverter.convert(String input,
Class<? extends Double> targetType,
Collection<ValidationError> errors)
Converts the input to an object of type Double.
|
Enum |
EnumeratedTypeConverter.convert(String input,
Class<? extends Enum> targetType,
Collection<ValidationError> errors) |
Float |
FloatTypeConverter.convert(String input,
Class<? extends Float> targetType,
Collection<ValidationError> errors)
Converts the input to an object of type Double.
|
Integer |
IntegerTypeConverter.convert(String input,
Class<? extends Integer> targetType,
Collection<ValidationError> errors) |
Long |
LongTypeConverter.convert(String input,
Class<? extends Long> targetType,
Collection<ValidationError> errors) |
Number |
PercentageTypeConverter.convert(String input,
Class<? extends Number> targetType,
Collection<ValidationError> errors)
Converts the input to a subclass of Number based on the targetType provided.
|
Collection<? extends Object> |
OneToManyTypeConverter.convert(String input,
Class<? extends Object> targetType,
Collection<ValidationError> errors)
Converts the supplied String into one or more objects is the manner described in
the class level JavaDoc.
|
Object |
ObjectTypeConverter.convert(String input,
Class<? extends Object> targetType,
Collection<ValidationError> errors)
Simple returns the input String un-modified in any way.
|
Short |
ShortTypeConverter.convert(String input,
Class<? extends Short> targetType,
Collection<ValidationError> errors) |
String |
StringTypeConverter.convert(String input,
Class<? extends String> targetType,
Collection<ValidationError> errors)
Simply returns the input String un-modified in any way.
|
String |
EmailTypeConverter.convert(String input,
Class<? extends String> targetType,
Collection<ValidationError> errors)
Validates the user input to ensure that it is a valid email address.
|
String |
CreditCardTypeConverter.convert(String input,
Class<? extends String> targetType,
Collection<ValidationError> errors)
Validates the user input to ensure that it looks like a valid credit card number.
|
T |
TypeConverter.convert(String input,
Class<? extends T> targetType,
Collection<ValidationError> errors)
Convert a String to the target type supported by this converter.
|
protected Number |
NumberTypeConverterSupport.parse(String input,
Collection<ValidationError> errors)
Parse the input using a NumberFormatter.
|
List<ValidationError> |
ValidationErrors.put(String field,
List<ValidationError> errors)
Replaces the list of errors for a given field with the list supplied.
|
void |
ValidationErrors.putAll(String field,
List<ValidationError> errors)
Add multiple errors for a particular field.
|
© Copyright 2005-2006, Stripes Development Team.