|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ValidationError | |
---|---|
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. |
Uses of ValidationError in net.sourceforge.stripes.controller |
---|
Method parameters in net.sourceforge.stripes.controller with type arguments of type ValidationError | |
---|---|
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. |
Uses of ValidationError in net.sourceforge.stripes.tag |
---|
Fields in net.sourceforge.stripes.tag with type parameters of type ValidationError | |
---|---|
protected List<ValidationError> |
InputTagSupport.fieldErrors
A list of the errors related to this input tag instance |
Methods in net.sourceforge.stripes.tag that return ValidationError | |
---|---|
ValidationError |
ErrorsTag.getCurrentError()
Called by the IndividualErrorTag to fetch the current error from the set being iterated. |
Methods in net.sourceforge.stripes.tag that return types with arguments of type ValidationError | |
---|---|
List<ValidationError> |
InputTagSupport.getFieldErrors()
Access for the field errors that occurred on the form input this tag represents |
Uses of ValidationError in net.sourceforge.stripes.validation |
---|
Classes in net.sourceforge.stripes.validation that implement ValidationError | |
---|---|
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. |
Methods in net.sourceforge.stripes.validation that return types with arguments of type ValidationError | |
---|---|
List<ValidationError> |
ValidationErrors.put(String field,
List<ValidationError> errors)
Replaces the list of errors for a given field with the list supplied. |
Methods in net.sourceforge.stripes.validation with parameters of type ValidationError | |
---|---|
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. |
Method parameters in net.sourceforge.stripes.validation with type arguments of type ValidationError | |
---|---|
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. |
Object |
ObjectTypeConverter.convert(String input,
Class<? extends Object> targetType,
Collection<ValidationError> errors)
Simple returns the input String un-modified in any way. |
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. |
Short |
ShortTypeConverter.convert(String input,
Class<? extends Short> targetType,
Collection<ValidationError> errors)
|
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. |
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 |
StringTypeConverter.convert(String input,
Class<? extends String> targetType,
Collection<ValidationError> errors)
Simply returns the input String un-modified in any way. |
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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |