Package | Description |
---|---|
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 | Class and Description |
---|---|
class |
BigDecimalTypeConverter
Type converter for converting localized strings into BigDecimal numbers without
any loss of magnitude or precision.
|
class |
BigIntegerTypeConverter
Type converter for converting localized strings into BigInteger numbers without
any loss of magnitude or precision.
|
class |
BooleanTypeConverter
Performs a fairly aggressive conversion of a String to a boolean.
|
class |
ByteTypeConverter
Basic type converter for converting strings to bytes.
|
class |
CharacterTypeConverter
Simple type converter that converts the input String to a Character by returning
the first character in the String.
|
class |
CreditCardTypeConverter
A faux TypeConverter that validates that the String supplied is a valid credit card number.
|
class |
DateTypeConverter
A TypeConverter that aggressively attempts to convert a String to a java.util.Date object.
|
class |
DoubleTypeConverter
Basic TypeConverter that will convert from Strings to Numbers of type Double.
|
class |
EmailTypeConverter
A faux TypeConverter that validates that the String supplied is a valid email address.
|
class |
EnumeratedTypeConverter
Converts the String form of an Enumerated type into the Enum value that it represents.
|
class |
FloatTypeConverter
Basic TypeConverter that converts Strings to Numbers of type Float.
|
class |
IntegerTypeConverter
Basic type converter for converting strings to integers.
|
class |
LongTypeConverter
Basic type converter for converting strings to integers.
|
class |
ObjectTypeConverter
A dummy type converter that targets the Object type by simply returning the input
String without any modifications.
|
class |
OneToManyTypeConverter
A specialized type converter for converting a single input field/parameter value
into one or more Java objects contained in a List.
|
class |
PercentageTypeConverter
A locale aware number converter that parses percentages.
|
class |
ShortTypeConverter
Basic type converter for converting strings to short integers.
|
class |
StringTypeConverter
A dummy type converter that targets the String type by simply returning the input
String without any modifications.
|
Modifier and Type | Method and Description |
---|---|
TypeConverter |
TypeConverterFactory.getInstance(java.lang.Class<? extends TypeConverter> clazz,
java.util.Locale locale)
Gets an instance of the TypeConverter class specified.
|
TypeConverter |
DefaultTypeConverterFactory.getInstance(java.lang.Class<? extends TypeConverter> clazz,
java.util.Locale locale)
Gets an instance of the TypeConverter class specified.
|
protected TypeConverter |
OneToManyTypeConverter.getSingleItemTypeConverter(java.lang.Class targetType)
Fetches an instance of
TypeConverter that can be used to convert the individual
items split out of the input String. |
TypeConverter |
TypeConverterFactory.getTypeConverter(java.lang.Class forType,
java.util.Locale locale)
Gets the applicable type converter for the class passed in.
|
TypeConverter |
DefaultTypeConverterFactory.getTypeConverter(java.lang.Class forType,
java.util.Locale locale)
Gets the applicable type converter for the class passed in.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class<? extends TypeConverter<?>> |
DefaultTypeConverterFactory.cacheTypeConverterClass(java.lang.Class<?> clazz,
java.lang.Class<? extends TypeConverter<?>> converterClass)
Add converter class
converterClass for converting objects of type clazz . |
java.lang.Class<? extends TypeConverter> |
ValidationMetadata.converter()
Returns the overridden TypeConverter if there is one, or null.
|
protected java.lang.Class<? extends TypeConverter<?>> |
DefaultTypeConverterFactory.findTypeConverterClass(java.lang.Class<?> targetClass)
Search for a type converter class that best matches the requested class.
|
protected java.util.Map<java.lang.Class<?>,java.lang.Class<? extends TypeConverter<?>>> |
DefaultTypeConverterFactory.getTypeConverters()
Gets the (rather confusing) Map of TypeConverter objects.
|
Modifier and Type | Method and Description |
---|---|
void |
TypeConverterFactory.add(java.lang.Class<?> targetType,
java.lang.Class<? extends TypeConverter<?>> converterClass)
Adds a type converter to the set of registered type converters, overriding an existing
converter if one was already registered for the type.
|
void |
DefaultTypeConverterFactory.add(java.lang.Class<?> targetType,
java.lang.Class<? extends TypeConverter<?>> converterClass)
Adds a TypeConverter to the set of registered TypeConverters, overriding an existing
converter if one was registered for the type.
|
protected java.lang.Class<? extends TypeConverter<?>> |
DefaultTypeConverterFactory.cacheTypeConverterClass(java.lang.Class<?> clazz,
java.lang.Class<? extends TypeConverter<?>> converterClass)
Add converter class
converterClass for converting objects of type clazz . |
ValidationMetadata |
ValidationMetadata.converter(java.lang.Class<? extends TypeConverter> converter)
Sets the overridden TypeConveter to use to convert values.
|
TypeConverter |
TypeConverterFactory.getInstance(java.lang.Class<? extends TypeConverter> clazz,
java.util.Locale locale)
Gets an instance of the TypeConverter class specified.
|
TypeConverter |
DefaultTypeConverterFactory.getInstance(java.lang.Class<? extends TypeConverter> clazz,
java.util.Locale locale)
Gets an instance of the TypeConverter class specified.
|
? Copyright 2005-2006, Stripes Development Team.