public abstract static class Formatters.SimpleFormatter<T>
extends java.lang.Object
Constructor and Description |
---|
SimpleFormatter() |
Modifier and Type | Method and Description |
---|---|
abstract T |
parse(java.lang.String text,
java.util.Locale locale)
Binds the field - constructs a concrete value from submitted data.
|
abstract java.lang.String |
print(T t,
java.util.Locale locale)
Unbinds this field - transforms a concrete value to plain string.
|
public abstract T parse(java.lang.String text, java.util.Locale locale) throws java.text.ParseException
text
- the field textlocale
- the current Localejava.text.ParseException
public abstract java.lang.String print(T t, java.util.Locale locale)
t
- the value to unbindlocale
- the current Locale