|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.data.format.Formatters.SimpleFormatter<T>
public abstract static class Formatters.SimpleFormatter<T>
Super-type for custom simple formatters.
Constructor Summary | |
---|---|
Formatters.SimpleFormatter()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Formatters.SimpleFormatter()
Method Detail |
---|
public abstract T parse(java.lang.String text, java.util.Locale locale) throws java.text.ParseException
text
- the field textlocale
- the current Locale
java.text.ParseException
public abstract java.lang.String print(T t, java.util.Locale locale)
t
- the value to unbindlocale
- the current Locale
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |