インターフェース AnnotationFormatterFactory<A extends AnnotationSE>
- 型パラメーター:
A- フォーマットをトリガーするアノテーション型
- すべての既知の実装クラス:
DateTimeFormatAnnotationFormatterFactory、DurationFormatAnnotationFormatterFactory、Jsr310DateTimeFormatAnnotationFormatterFactory、Jsr354NumberFormatAnnotationFormatterFactory、NumberFormatAnnotationFormatterFactory
public interface AnnotationFormatterFactory<A extends AnnotationSE>
特定の
AnnotationSE のアノテーションが付けられたフィールドの値をフォーマットするフォーマッターを作成するファクトリ。 例: 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- アノテーションが付けられたフィールドの型- 戻り値:
- パーサー