public abstract static class Formatters.AnnotationFormatter<A extends java.lang.annotation.Annotation,T>
extends java.lang.Object
| Constructor and Description |
|---|
Formatters.AnnotationFormatter() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
parse(A annotation,
java.lang.String text,
java.util.Locale locale)
Binds the field - constructs a concrete value from submitted data.
|
abstract java.lang.String |
print(A annotation,
T value,
java.util.Locale locale)
Unbind this field (ie.
|
public abstract T parse(A annotation, java.lang.String text, java.util.Locale locale) throws java.text.ParseException
annotation - the annotation that trigerred this formattertext - the field textlocale - the current Localejava.text.ParseExceptionpublic abstract java.lang.String print(A annotation, T value, java.util.Locale locale)
annotation - the annotation that trigerred this formatter.value - the value to unbindlocale - the current Locale