クラス Jsr310DateTimeFormatAnnotationFormatterFactory
java.lang.ObjectSE
org.springframework.context.support.EmbeddedValueResolutionSupport
org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory
- 実装されたすべてのインターフェース:
Aware
、EmbeddedValueResolverAware
、AnnotationFormatterFactory<DateTimeFormat>
public class Jsr310DateTimeFormatAnnotationFormatterFactory
extends EmbeddedValueResolutionSupport
implements AnnotationFormatterFactory<DateTimeFormat>
JDK 8 の JSR-310
java.time
パッケージを使用して、DateTimeFormat
アノテーションが付けられたフィールドをフォーマットします。- 導入:
- 4.0
- 作成者:
- Juergen Hoeller, Sam Brannen, Kazuki Shimizu
- 関連事項:
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明アノテーションでアノテーションを付けることができるフィールドの型 <A>。</a>protected DateTimeFormatterSE
getFormatter
(DateTimeFormat annotation, ClassSE<?> fieldType) DateTimeFormatter
SE の作成に使用されるファクトリメソッド。Parser<?>
getParser
(DateTimeFormat annotation, ClassSE<?> fieldType) annotation
のアノテーションが付けられたfieldType
のフィールドに対して送信された値を解析するパーサーを取得します。Printer<?>
getPrinter
(DateTimeFormat annotation, ClassSE<?> fieldType) annotation
のアノテーションが付けられたfieldType
のフィールドの値を出力するプリンターを取得します。クラス org.springframework.context.support.EmbeddedValueResolutionSupport から継承されたメソッド
resolveEmbeddedValue, setEmbeddedValueResolver
コンストラクターの詳細
Jsr310DateTimeFormatAnnotationFormatterFactory
public Jsr310DateTimeFormatAnnotationFormatterFactory()
メソッドの詳細
getFieldTypes
インターフェースからコピーされた説明:AnnotationFormatterFactory
アノテーションでアノテーションを付けることができるフィールドの型 <A>。</a>- 次で指定:
- インターフェース
AnnotationFormatterFactory<DateTimeFormat>
のgetFieldTypes
getPrinter
インターフェースからコピーされた説明:AnnotationFormatterFactory
annotation
のアノテーションが付けられたfieldType
のフィールドの値を出力するプリンターを取得します。プリンターが受け入れる型 T が
fieldType
に割り当て可能でない場合、プリンターが呼び出される前にfieldType
から T への強制が試行されます。- 次で指定:
- インターフェース
AnnotationFormatterFactory<DateTimeFormat>
のgetPrinter
- パラメーター:
annotation
- アノテーションインスタンスfieldType
- アノテーションが付けられたフィールドの型- 戻り値:
- プリンター
getParser
インターフェースからコピーされた説明:AnnotationFormatterFactory
annotation
のアノテーションが付けられたfieldType
のフィールドに対して送信された値を解析するパーサーを取得します。パーサーが返すオブジェクトが
fieldType
に割り当てられない場合、フィールドが設定される前にfieldType
への強制が試行されます。- 次で指定:
- インターフェース
AnnotationFormatterFactory<DateTimeFormat>
のgetParser
- パラメーター:
annotation
- アノテーションインスタンスfieldType
- アノテーションが付けられたフィールドの型- 戻り値:
- パーサー
getFormatter
DateTimeFormatter
SE の作成に使用されるファクトリメソッド。- パラメーター:
annotation
- フィールドのフォーマットアノテーションfieldType
- フィールドの宣言された型- 戻り値:
DateTimeFormatter
SE インスタンス