类 DateTimeFormatAnnotationFormatterFactory
java.lang.Object
cn.taketoday.context.support.EmbeddedValueResolutionSupport
cn.taketoday.format.datetime.DateTimeFormatAnnotationFormatterFactory
public class DateTimeFormatAnnotationFormatterFactory
extends EmbeddedValueResolutionSupport
implements AnnotationFormatterFactory<DateTimeFormat>
Formats fields annotated with the
DateTimeFormat annotation using a DateFormatter.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Sam Brannen
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明The types of fields that may be annotated with the <A> annotation.getFormatter(DateTimeFormat annotation, Class<?> fieldType) Parser<?>getParser(DateTimeFormat annotation, Class<?> fieldType) Get the Parser to parse a submitted value for a field offieldTypeannotated withannotation.Printer<?>getPrinter(DateTimeFormat annotation, Class<?> fieldType) Get the Printer to print the value of a field offieldTypeannotated withannotation.从类继承的方法 cn.taketoday.context.support.EmbeddedValueResolutionSupport
resolveEmbeddedValue, setEmbeddedValueResolver
-
构造器详细资料
-
DateTimeFormatAnnotationFormatterFactory
public DateTimeFormatAnnotationFormatterFactory()
-
-
方法详细资料
-
getFieldTypes
从接口复制的说明:AnnotationFormatterFactoryThe types of fields that may be annotated with the <A> annotation. -
getPrinter
从接口复制的说明:AnnotationFormatterFactoryGet the Printer to print the value of a field offieldTypeannotated withannotation.If the type T the printer accepts is not assignable to
fieldType, a coercion fromfieldTypeto T will be attempted before the Printer is invoked.- 指定者:
getPrinter在接口中AnnotationFormatterFactory<DateTimeFormat>- 参数:
annotation- the annotation instancefieldType- the type of field that was annotated- 返回:
- the printer
-
getParser
从接口复制的说明:AnnotationFormatterFactoryGet the Parser to parse a submitted value for a field offieldTypeannotated withannotation.If the object the parser returns is not assignable to
fieldType, a coercion tofieldTypewill be attempted before the field is set.- 指定者:
getParser在接口中AnnotationFormatterFactory<DateTimeFormat>- 参数:
annotation- the annotation instancefieldType- the type of field that was annotated- 返回:
- the parser
-
getFormatter
-