T - the type that this formatter will parse and printpublic 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 - if the text could not be parsed into Tpublic abstract java.lang.String print(T t, java.util.Locale locale)
t - the value to unbindlocale - the current Locale