public class BooleanFormatter extends AbstractTextFormatter<Boolean>
validationMessage| コンストラクタと説明 |
|---|
BooleanFormatter() |
BooleanFormatter(String[] readTrueValues,
String[] readFalseValues,
String writeTrueValue,
String writeFalseValue,
boolean ignoreCase,
boolean failToFalse) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Map<String,Object> |
getMessageVariables()
パース時のエラーメッセージ中の変数を取得します。
|
Boolean |
parse(String text)
文字列をパースして、オブジェクトに変換する。
|
String |
print(Boolean object)
オブジェクトをフォーマットして、文字列に変換する。
|
getValidationMessage, setValidationMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPatternpublic Boolean parse(String text)
TextParser実装する際には、API経由などでパースした際に発生した例外は、TextParseExceptionでラップするしてください。
TextParseExceptionでラップすると、ParseProcessorでエラーオブジェクトに変換されます。
text - パース対象の文字列。public String print(Boolean object)
TextPrinter実装する際には、API経由などでパースした際に発生した例外は、TextPrintExceptionでラップするしてください。
TextPrintExceptionでラップすると、PrintProcessorでエラーオブジェクトに変換されます。
object - フォーマット対象のオブジェクトpublic Map<String,Object> getMessageVariables()
TextParserCopyright © 2025 mygreen. All rights reserved.