public class Jsr354NumberFormatAnnotationFormatterFactory extends EmbeddedValueResolutionSupport implements AnnotationFormatterFactory<NumberFormat>
NumberFormat
アノテーションが付けられた MonetaryAmount
フィールドをフォーマットします。NumberFormat
コンストラクターと説明 |
---|
Jsr354NumberFormatAnnotationFormatterFactory() |
修飾子と型 | メソッドと説明 |
---|---|
SetSE<ClassSE<?>> | getFieldTypes() アノテーションでアノテーションを付けることができるフィールドの型 <A>。</a> |
Parser<javax.money.MonetaryAmount> | getParser(NumberFormat annotation, ClassSE<?> fieldType) annotation のアノテーションが付けられた fieldType のフィールドに対して送信された値を解析するパーサーを取得します。 |
Printer<javax.money.MonetaryAmount> | getPrinter(NumberFormat annotation, ClassSE<?> fieldType) annotation のアノテーションが付けられた fieldType のフィールドの値を出力するプリンターを取得します。 |
resolveEmbeddedValue, setEmbeddedValueResolver
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public Jsr354NumberFormatAnnotationFormatterFactory()
public SetSE<ClassSE<?>> getFieldTypes()
AnnotationFormatterFactory
AnnotationFormatterFactory<NumberFormat>
の getFieldTypes
public Printer<javax.money.MonetaryAmount> getPrinter(NumberFormat annotation, ClassSE<?> fieldType)
AnnotationFormatterFactory
annotation
のアノテーションが付けられた fieldType
のフィールドの値を出力するプリンターを取得します。 プリンターが受け入れる型 T が fieldType
に割り当て可能でない場合、プリンターが呼び出される前に fieldType
から T への強制が試行されます。
AnnotationFormatterFactory<NumberFormat>
の getPrinter
annotation
- アノテーションインスタンス fieldType
- アノテーションが付けられたフィールドの型 public Parser<javax.money.MonetaryAmount> getParser(NumberFormat annotation, ClassSE<?> fieldType)
AnnotationFormatterFactory
annotation
のアノテーションが付けられた fieldType
のフィールドに対して送信された値を解析するパーサーを取得します。 パーサーが返すオブジェクトが fieldType
に割り当てられない場合、フィールドが設定される前に fieldType
への強制が試行されます。
AnnotationFormatterFactory<NumberFormat>
の getParser
annotation
- アノテーションインスタンス fieldType
- アノテーションが付けられたフィールドの型