A
- the type of the annotationT
- the type that this formatter will parse and printpublic abstract static class Formatters.AnnotationFormatter<A extends Annotation,T> extends Object
Constructor and Description |
---|
AnnotationFormatter() |
Modifier and Type | Method and Description |
---|---|
abstract T |
parse(A annotation,
String text,
Locale locale)
Binds the field - constructs a concrete value from submitted data.
|
abstract String |
print(A annotation,
T value,
Locale locale)
Unbind this field (ie.
|
public abstract T parse(A annotation, String text, Locale locale) throws ParseException
annotation
- the annotation that triggered this formattertext
- the field textlocale
- the current Locale
ParseException
- when the text could not be parsedpublic abstract String print(A annotation, T value, Locale locale)
annotation
- the annotation that triggered this formatter.value
- the value to unbindlocale
- the current Locale