クラス StringArrayPropertyEditor
java.lang.ObjectSE
java.beans.PropertyEditorSupportSE
org.springframework.beans.propertyeditors.StringArrayPropertyEditor
- 実装されているすべてのインターフェース:
PropertyEditorSE
文字列配列用のカスタム
PropertyEditorSE。文字列は、カスタマイズ可能な区切り文字を使用した CSV 形式である必要があります。デフォルトでは、結果の値は空白でトリミングされます。
- 作成者:
- Rod Johnson, Juergen Hoeller, Dave Syer
- 関連事項:
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクターコンストラクター説明デフォルトのセパレーター(コンマ)を使用して新しいStringArrayPropertyEditorを作成します。StringArrayPropertyEditor(StringSE separator) 指定されたセパレータで新しいStringArrayPropertyEditorを作成します。StringArrayPropertyEditor(StringSE separator, boolean emptyArrayAsNull) 指定されたセパレータで新しいStringArrayPropertyEditorを作成します。StringArrayPropertyEditor(StringSE separator, boolean emptyArrayAsNull, boolean trimValues) 指定されたセパレータで新しいStringArrayPropertyEditorを作成します。StringArrayPropertyEditor(StringSE separator, StringSE charsToDelete, boolean emptyArrayAsNull) 指定されたセパレータで新しいStringArrayPropertyEditorを作成します。StringArrayPropertyEditor(StringSE separator, StringSE charsToDelete, boolean emptyArrayAsNull, boolean trimValues) 指定されたセパレータで新しいStringArrayPropertyEditorを作成します。メソッドのサマリー
フィールドの詳細
DEFAULT_SEPARATOR
文字列を分割するためのデフォルトのセパレータ: コンマ(",")。- 関連事項:
コンストラクターの詳細
StringArrayPropertyEditor
public StringArrayPropertyEditor()デフォルトのセパレーター(コンマ)を使用して新しいStringArrayPropertyEditorを作成します。空のテキスト(要素なし)は空の配列に変換されます。
StringArrayPropertyEditor
指定されたセパレータで新しいStringArrayPropertyEditorを作成します。空のテキスト(要素なし)は空の配列に変換されます。
- パラメーター:
separator-StringSE の分割に使用するセパレータ
StringArrayPropertyEditor
指定されたセパレータで新しいStringArrayPropertyEditorを作成します。- パラメーター:
separator-StringSE の分割に使用するセパレータemptyArrayAsNull- 空の文字列配列をnullに変換する場合はtrue
StringArrayPropertyEditor
指定されたセパレータで新しいStringArrayPropertyEditorを作成します。- パラメーター:
separator-StringSE の分割に使用するセパレータemptyArrayAsNull- 空の文字列配列をnullに変換する場合はtruetrimValues- 解析された配列の値を空白から削除する場合はtrue(デフォルトはtrueです)
StringArrayPropertyEditor
public StringArrayPropertyEditor(StringSE separator, @Nullable StringSE charsToDelete, boolean emptyArrayAsNull) 指定されたセパレータで新しいStringArrayPropertyEditorを作成します。- パラメーター:
separator-StringSE の分割に使用するセパレータcharsToDelete- 入力文字列をトリミングするだけでなく、削除する文字のセット。不要な改行を削除するのに便利です。たとえば、"\r\n\f" は文字列内のすべての新しい行と改行を削除します。emptyArrayAsNull- 空の文字列配列をnullに変換する場合はtrue
StringArrayPropertyEditor
public StringArrayPropertyEditor(StringSE separator, @Nullable StringSE charsToDelete, boolean emptyArrayAsNull, boolean trimValues) 指定されたセパレータで新しいStringArrayPropertyEditorを作成します。- パラメーター:
separator-StringSE の分割に使用するセパレータcharsToDelete- 入力文字列をトリミングするだけでなく、削除する文字のセット。不要な改行を削除するのに便利です。たとえば、"\r\n\f" は文字列内のすべての新しい行と改行を削除します。emptyArrayAsNull- 空の文字列配列をnullに変換する場合はtruetrimValues- 解析された配列の値を空白から削除する場合はtrue(デフォルトはtrueです)
メソッドの詳細
setAsText
- 次で指定:
- インターフェース
PropertyEditorSEのsetAsTextSE - オーバーライド:
- クラス
PropertyEditorSupportSEのsetAsTextSE - 例外:
IllegalArgumentExceptionSE
getAsText
- 次で指定:
- インターフェース
PropertyEditorSEのgetAsText - オーバーライド:
- クラス
PropertyEditorSupportSEのgetAsText