org.loom.converter
Class AbstractSimpleNumberConverter
java.lang.Object
org.loom.converter.AbstractConverter
org.loom.converter.AbstractStringConverter
org.loom.converter.AbstractSimpleNumberConverter
- All Implemented Interfaces:
- Converter, LocaleUnawareConverter, FormInputDecorator
- Direct Known Subclasses:
- ByteConverter, IntegerConverter, LongConverter, ShortConverter
public abstract class AbstractSimpleNumberConverter
- extends AbstractStringConverter
- implements LocaleUnawareConverter
number format that is not locale-dependant (integer, long, etc)
Method Summary |
abstract java.lang.Object |
getAsObject(java.lang.String text)
Perform the conversion. |
java.lang.Object |
getAsObjectImpl(java.lang.String name,
java.lang.String value,
Messages messages,
MessagesRepository repository)
This method is the getAsObject implementation, and has the guarantee that the value is not null |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleNumberConverter
protected AbstractSimpleNumberConverter(java.lang.Class<?> convertedClass)
getAsObjectImpl
public java.lang.Object getAsObjectImpl(java.lang.String name,
java.lang.String value,
Messages messages,
MessagesRepository repository)
- Description copied from class:
AbstractStringConverter
- This method is the getAsObject implementation, and has the guarantee that the value is not null
- Specified by:
getAsObjectImpl
in class AbstractStringConverter
getAsObject
public abstract java.lang.Object getAsObject(java.lang.String text)
- Description copied from interface:
LocaleUnawareConverter
- Perform the conversion. If the input data is not valid, will throw a RuntimeException.
- Specified by:
getAsObject
in interface LocaleUnawareConverter