public class IntegerTypeConverter extends NumberTypeConverterSupport implements TypeConverter<Integer>
| Constructor and Description |
|---|
IntegerTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
convert(String input,
Class<? extends Integer> targetType,
Collection<ValidationError> errors)
Convert a String to the target type supported by this converter.
|
protected NumberFormat[] |
getNumberFormats()
Overridden to return integer instances instead.
|
getLocale, parse, preprocess, setLocaleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetLocalepublic Integer convert(String input, Class<? extends Integer> targetType, Collection<ValidationError> errors)
TypeConverterconvert in interface TypeConverter<Integer>input - errors - targetType - the Class representing the type of the property to which the return
value of the conversion will be assigned. In many cases this can be ignored as
converters will return a single type more often than not.protected NumberFormat[] getNumberFormats()
getNumberFormats in class NumberTypeConverterSupport© Copyright 2005-2006, Stripes Development Team.