public class IntegerTypeConverter extends NumberTypeConverterSupport implements TypeConverter<java.lang.Integer>
| Constructor and Description |
|---|
IntegerTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
convert(java.lang.String input,
java.lang.Class<? extends java.lang.Integer> targetType,
java.util.Collection<ValidationError> errors)
Convert a String to the target type supported by this converter.
|
protected java.text.NumberFormat[] |
getNumberFormats()
Overridden to return integer instances instead.
|
getLocale, parse, preprocess, setLocaleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetLocalepublic java.lang.Integer convert(java.lang.String input,
java.lang.Class<? extends java.lang.Integer> targetType,
java.util.Collection<ValidationError> errors)
TypeConverterconvert in interface TypeConverter<java.lang.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 java.text.NumberFormat[] getNumberFormats()
getNumberFormats in class NumberTypeConverterSupport? Copyright 2005-2006, Stripes Development Team.