インターフェース AnnotationFormatterFactory<A extends AnnotationSE>
- 型パラメーター:
A
- フォーマットをトリガーするアノテーション型
- すべての既知の実装クラス:
DateTimeFormatAnnotationFormatterFactory
、DurationFormatAnnotationFormatterFactory
、Jsr310DateTimeFormatAnnotationFormatterFactory
、Jsr354NumberFormatAnnotationFormatterFactory
、NumberFormatAnnotationFormatterFactory
public interface AnnotationFormatterFactory<A extends AnnotationSE>
特定の
Annotation
SE のアノテーションが付けられたフィールドの値をフォーマットするフォーマッターを作成するファクトリ。 例: DateTimeFormatAnnotationFormatterFactory
は、@DateTimeFormat
アノテーションが付けられたフィールドに設定された Date
値をフォーマットするフォーマッターを作成する場合があります。
- 導入:
- 3.0
- 作成者:
- Keith Donald
メソッドのサマリー
修飾子と型メソッド説明アノテーションでアノテーションを付けることができるフィールドの型 <A>。</a>Parser<?>
annotation
のアノテーションが付けられたfieldType
のフィールドに対して送信された値を解析するパーサーを取得します。Printer<?>
getPrinter
(A annotation, ClassSE<?> fieldType) annotation
のアノテーションが付けられたfieldType
のフィールドの値を出力するプリンターを取得します。
メソッドの詳細
getFieldTypes
アノテーションでアノテーションを付けることができるフィールドの型 <A>。</a>getPrinter
annotation
のアノテーションが付けられたfieldType
のフィールドの値を出力するプリンターを取得します。プリンターが受け入れる型 T が
fieldType
に割り当て可能でない場合、プリンターが呼び出される前にfieldType
から T への強制が試行されます。- パラメーター:
annotation
- アノテーションインスタンスfieldType
- アノテーションが付けられたフィールドの型- 戻り値:
- プリンター
getParser
annotation
のアノテーションが付けられたfieldType
のフィールドに対して送信された値を解析するパーサーを取得します。パーサーが返すオブジェクトが
fieldType
に割り当てられない場合、フィールドが設定される前にfieldType
への強制が試行されます。- パラメーター:
annotation
- アノテーションインスタンスfieldType
- アノテーションが付けられたフィールドの型- 戻り値:
- パーサー