| パッケージ | 説明 |
|---|---|
| org.springframework.format | UI での表示用にフィールドモデル値をフォーマットするフォーマッターを定義するための API。 |
| org.springframework.format.datetime | java.util.Date プロパティのフォーマッタ。 |
| org.springframework.format.datetime.joda | Joda の日付と時刻の型、および標準の JDK の日付型をフォーマットするための Joda-Time との統合。 |
| org.springframework.format.datetime.standard | JDK 8 の JSR-310 java.time パッケージとの統合。 |
| org.springframework.format.number | java.lang.Number プロパティのフォーマッタ。 |
| org.springframework.format.number.money | JSR-354 javax.money パッケージとの統合。 |
| org.springframework.format.support | フォーマットパッケージのクラスをサポートし、一般的な実装とアダプターを提供します。 |
| 修飾子と型 | インターフェースと説明 |
|---|---|
interface | Formatter<T> 型 T のオブジェクトをフォーマットします。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
Parser<?> | AnnotationFormatterFactory.getParser(A annotation, ClassSE<?> fieldType)annotation のアノテーションが付けられた fieldType のフィールドに対して送信された値を解析するパーサーを取得します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | FormatterRegistry.addFormatterForFieldType(ClassSE<?> fieldType, Printer<?> printer, Parser<?> parser) プリンター / パーサーのペアを追加して、特定の型のフィールドをフォーマットします。 |
void | FormatterRegistry.addParser(Parser<?> parser) 特定の型のフィールドを解析するパーサーを追加します。 |
| 修飾子と型 | クラスと説明 |
|---|---|
class | DateFormatterDateSE 型のフォーマッター。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
Parser<?> | DateTimeFormatAnnotationFormatterFactory.getParser(DateTimeFormat annotation, ClassSE<?> fieldType) |
| 修飾子と型 | クラスと説明 |
|---|---|
class | DateTimeParserDateTimeFormatter を使用して Joda DateTime インスタンスを解析します。 |
class | LocalDateParserDateTimeFormatter を使用して Joda LocalDate インスタンスを解析します。 |
class | LocalDateTimeParserDateTimeFormatter を使用して Joda LocalDateTime インスタンスを解析します。 |
class | LocalTimeParserDateTimeFormatter を使用して Joda LocalTime インスタンスを解析します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
Parser<?> | JodaDateTimeFormatAnnotationFormatterFactory.getParser(DateTimeFormat annotation, ClassSE<?> fieldType) |
| 修飾子と型 | クラスと説明 |
|---|---|
class | InstantFormatterJSR-310 InstantSE の Formatter 実装、インスタントに対する JSR-310 の解析ルールに従う(つまり、構成可能な DateTimeFormatterSE を使用しない): デフォルトの ISO_INSTANT 形式と RFC_1123_DATE_TIME (HTTP 日付ヘッダー値に一般的に使用されます)を受け入れます。Spring 4.3 以降。 |
class | TemporalAccessorParser |
| 修飾子と型 | メソッドと説明 |
|---|---|
Parser<?> | Jsr310DateTimeFormatAnnotationFormatterFactory.getParser(DateTimeFormat annotation, ClassSE<?> fieldType) |
| 修飾子と型 | クラスと説明 |
|---|---|
class | AbstractNumberFormatterNumbers の抽象フォーマッタ。 AbstractNumberFormatter.getNumberFormat(java.util.Locale) テンプレートメソッドを提供します。 |
class | CurrencyStyleFormatter 通貨スタイルの数値の BigDecimal フォーマッター。 |
class | NumberStyleFormatterNumberFormat の数値スタイルを使用する汎用数値フォーマッター。 |
class | PercentStyleFormatter パーセントスタイルの数値のフォーマッター。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
Parser<NumberSE> | NumberFormatAnnotationFormatterFactory.getParser(NumberFormat annotation, ClassSE<?> fieldType) |
| 修飾子と型 | クラスと説明 |
|---|---|
class | CurrencyUnitFormatterJSR-354 CurrencyUnit 値のフォーマッター(通貨コード文字列との間)。 |
class | MonetaryAmountFormatterJSR-354 MonetaryAmount 値のフォーマッター。MonetaryAmountFormat.format(javax.money.MonetaryAmount) および MonetaryAmountFormat.parse(java.lang.CharSequence) に委譲します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
Parser<javax.money.MonetaryAmount> | Jsr354NumberFormatAnnotationFormatterFactory.getParser(NumberFormat annotation, ClassSE<?> fieldType) |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | FormattingConversionService.addFormatterForFieldType(ClassSE<?> fieldType, Printer<?> printer, Parser<?> parser) |
void | FormattingConversionService.addParser(Parser<?> parser) |