public class ShortTypeConverter extends NumberTypeConverterSupport implements TypeConverter<Short>
| Constructor and Description |
|---|
ShortTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Short |
convert(String input,
Class<? extends Short> 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 Short convert(String input, Class<? extends Short> targetType, Collection<ValidationError> errors)
TypeConverterconvert in interface TypeConverter<Short>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.