DateTimeFormat annotation using the
JSR-310 java.time package in JDK 8.
org.springframework.format.annotation.DateTimeFormat
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Set | getFieldTypes()
Implements org. |
| protected DateTimeFormatter | Returns: aDateTimeFormatter instancethe format annotation for the field annotation, Class<?> the declared type of the field fieldType)Factory method used to create a |
| public Parser | getParser(DateTimeFormat
the annotation instance annotation, Class<?> the type of field that was annotated fieldType)Implements org. fieldType
annotated with annotation.
|
| public Printer | getPrinter(DateTimeFormat
the annotation instance annotation, Class<?> the type of field that was annotated fieldType)Implements org. fieldType annotated with
annotation.
|
| private boolean |
| FIELD_TYPES | back to summary |
|---|---|
| private static final Set<Class<?>> FIELD_TYPES | |
| Jsr310DateTimeFormatAnnotationFormatterFactory | back to summary |
|---|---|
| public Jsr310DateTimeFormatAnnotationFormatterFactory() | |
| getFieldTypes | back to summary |
|---|---|
| public final Set Implements org. Doc from org. The types of fields that may be annotated with the <A> annotation.
| |
| getFormatter | back to summary |
|---|---|
| protected DateTimeFormatter getFormatter(DateTimeFormat annotation, Class<?> fieldType) Factory method used to create a
| |
| getParser | back to summary |
|---|---|
| public Parser Implements org. Doc from org. Get the Parser to parse a submitted value for a field of If the object the parser returns is not assignable to
| |
| getPrinter | back to summary |
|---|---|
| public Printer Implements org. Doc from org. Get the Printer to print the value of a field of If the type T the printer accepts is not assignable to
| |
| isLocal | back to summary |
|---|---|
| private boolean isLocal(Class<?> fieldType) | |