public class ByteTypeConverter extends NumberTypeConverterSupport implements TypeConverter<Byte>
| Constructor and Description |
|---|
ByteTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Byte |
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.
|
protected NumberFormat[] |
getNumberFormats()
Overridden to return integer instances instead.
|
getLocale, parse, preprocess, setLocaleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetLocalepublic Byte convert(String input, Class<? extends Byte> targetType, Collection<ValidationError> errors)
convert in interface TypeConverter<Byte>input - the String being convertedtargetType - 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.errors - an empty collection of validation errors that should be populated by the
converter for any errors that occur during validation that are user input related.protected NumberFormat[] getNumberFormats()
getNumberFormats in class NumberTypeConverterSupport© Copyright 2005-2006, Stripes Development Team.