A - the type of the annotationT - the type that this formatter will parse and printpublic abstract static class Formatters.AnnotationFormatter<A extends java.lang.annotation.Annotation,T>
extends java.lang.Object
| Constructor and Description |
|---|
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.ParseException - when the text could not be parsedpublic 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