インターフェースの使用 
org.springframework.format.Formatter
Formatter を使用するパッケージ 
 パッケージ 
 説明 
UI での表示用にフィールドモデル値をフォーマットするフォーマッターを定義するための API。
java.util.Date プロパティのフォーマッタ。JDK 8 の JSR-310 
java.time パッケージとの統合。java.lang.Number プロパティのフォーマッタ。JSR-354 
javax.money パッケージとの統合。 フォーマットパッケージのクラスをサポートし、一般的な実装とアダプターを提供します。
 ビジネスや UI レイヤーで使用するためのデータバインディングおよび検証機能を提供します。
- org.springframework.format 内の Formatter 使用型 Formatter のパラメーターを持つ org.springframework.format のメソッド修飾子と型メソッド説明- voidFormatterRegistry.- addFormatter- (Formatter<?> formatter) Formatter を追加して、特定の型のフィールドをフォーマットします。- voidFormatterRegistry.- addFormatterForFieldType- (ClassSE<?> fieldType, Formatter<?> formatter) 指定された型のフィールドをフォーマットするためのフォーマッターを追加します。
- org.springframework.format.datetime 内の Formatter 使用Formatter を実装している org.springframework.format.datetime のクラスFormatter を返す org.springframework.format.datetime のメソッド修飾子と型メソッド説明DateTimeFormatAnnotationFormatterFactory.- getFormatter- (DateTimeFormat annotation, ClassSE<?> fieldType) 
- org.springframework.format.datetime.standard 内の Formatter 使用Formatter を実装している org.springframework.format.datetime.standard のクラス修飾子と型クラス説明- classJSR-310- InstantSE の- Formatter実装、インスタントに対する JSR-310 の解析ルールに従う(つまり、構成可能な- DateTimeFormatterSE を使用しない): デフォルトの- ISO_INSTANT形式と- RFC_1123_DATE_TIME(HTTP 日付ヘッダー値に一般的に使用されます)を受け入れます。Spring 4.3 以降。
- org.springframework.format.number 内の Formatter 使用Formatter を実装している org.springframework.format.number のクラス修飾子と型クラス説明- classNumbers の抽象フォーマッタ。- AbstractNumberFormatter.getNumberFormat(java.util.Locale)テンプレートメソッドを提供します。- class通貨スタイルの数値の BigDecimal フォーマッター。- classNumberFormat の数値スタイルを使用する汎用数値フォーマッター。- classパーセントスタイルの数値のフォーマッター。
- org.springframework.format.number.money 内の Formatter 使用Formatter を実装している org.springframework.format.number.money のクラス修飾子と型クラス説明- classJSR-354- CurrencyUnit値のフォーマッター(通貨コード文字列との間)。- classJSR-354- MonetaryAmount値のフォーマッター。- MonetaryAmountFormat.format(javax.money.MonetaryAmount)および- MonetaryAmountFormat.parse(java.lang.CharSequence)に委譲します。
- org.springframework.format.support 内の Formatter 使用型 Formatter のパラメーターを持つ org.springframework.format.support のメソッド修飾子と型メソッド説明- voidFormattingConversionService.- addFormatter- (Formatter<?> formatter) - voidFormattingConversionService.- addFormatterForFieldType- (ClassSE<?> fieldType, Formatter<?> formatter) 型 Formatter のパラメーターを持つ org.springframework.format.support のコンストラクター修飾子コンストラクター説明- FormatterPropertyEditorAdapter- (Formatter<?> formatter) 指定された- Formatterの新しい- FormatterPropertyEditorAdapterを作成します。
- org.springframework.validation 内の Formatter 使用型 Formatter のパラメーターを持つ org.springframework.validation のメソッド修飾子と型メソッド説明- voidDataBinder.- addCustomFormatter- (Formatter<?> formatter) カスタムフォーマッターを追加し、- Formatter-declared 型に一致するすべてのフィールドに適用します。- voidDataBinder.- addCustomFormatter- (Formatter<?> formatter, ClassSE<?>... fieldTypes) カスタムフォーマッターを追加し、指定されたフィールド型(存在する場合のみ)に適用するか、- Formatter-declared 型に一致するすべてのフィールドに適用します。- voidDataBinder.- addCustomFormatter- (Formatter<?> formatter, StringSE... fields) - Formatterクラスで指定されたフィールド型のカスタムフォーマッタを追加し、指定されたフィールドのみ(存在する場合)に適用するか、そうでなければすべてのフィールドに適用します。