クラス StringArrayPropertyEditor
java.lang.ObjectSE
java.beans.PropertyEditorSupportSE
org.springframework.beans.propertyeditors.StringArrayPropertyEditor
- 実装されたすべてのインターフェース:
PropertyEditorSE
文字列配列用のカスタム
PropertyEditor
SE。文字列は、カスタマイズ可能な区切り文字を使用した 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
-String
SE の分割に使用するセパレータ
StringArrayPropertyEditor
指定されたセパレータで新しいStringArrayPropertyEditor
を作成します。- パラメーター:
separator
-String
SE の分割に使用するセパレータemptyArrayAsNull
- 空の文字列配列をnull
に変換する場合はtrue
StringArrayPropertyEditor
指定されたセパレータで新しいStringArrayPropertyEditor
を作成します。- パラメーター:
separator
-String
SE の分割に使用するセパレータemptyArrayAsNull
- 空の文字列配列をnull
に変換する場合はtrue
trimValues
- 解析された配列の値を空白から削除する場合はtrue
(デフォルトはtrue
です)
StringArrayPropertyEditor
public StringArrayPropertyEditor(StringSE separator, @Nullable StringSE charsToDelete, boolean emptyArrayAsNull) 指定されたセパレータで新しいStringArrayPropertyEditor
を作成します。- パラメーター:
separator
-String
SE の分割に使用するセパレータcharsToDelete
- 入力文字列をトリミングするだけでなく、削除する文字のセット。不要な改行を削除するのに便利です。たとえば、"\r\n\f" は文字列内のすべての新しい行と改行を削除します。emptyArrayAsNull
- 空の文字列配列をnull
に変換する場合はtrue
StringArrayPropertyEditor
public StringArrayPropertyEditor(StringSE separator, @Nullable StringSE charsToDelete, boolean emptyArrayAsNull, boolean trimValues) 指定されたセパレータで新しいStringArrayPropertyEditor
を作成します。- パラメーター:
separator
-String
SE の分割に使用するセパレータcharsToDelete
- 入力文字列をトリミングするだけでなく、削除する文字のセット。不要な改行を削除するのに便利です。たとえば、"\r\n\f" は文字列内のすべての新しい行と改行を削除します。emptyArrayAsNull
- 空の文字列配列をnull
に変換する場合はtrue
trimValues
- 解析された配列の値を空白から削除する場合はtrue
(デフォルトはtrue
です)
メソッドの詳細
setAsText
- 次で指定:
- インターフェース
PropertyEditorSE
のsetAsTextSE
- オーバーライド:
- クラス
PropertyEditorSupportSE
のsetAsTextSE
- 例外:
IllegalArgumentExceptionSE
getAsText
- 次で指定:
- インターフェース
PropertyEditorSE
のgetAsText
- オーバーライド:
- クラス
PropertyEditorSupportSE
のgetAsText