public class StringArrayPropertyEditor extends PropertyEditorSupportSE
PropertyEditor
SE。文字列は、カスタマイズ可能な区切り記号を使用した CSV 形式である必要があります。デフォルトでは、結果の値は空白が削除されます。
StringUtils.delimitedListToStringArray(java.lang.String, java.lang.String)
, StringUtils.arrayToDelimitedString(java.lang.Object[], java.lang.String)
修飾子と型 | フィールドと説明 |
---|---|
static StringSE | DEFAULT_SEPARATOR 文字列を分割するためのデフォルトの区切り文字: コンマ (",") |
コンストラクターと説明 |
---|
StringArrayPropertyEditor() デフォルトの区切り文字(コンマ)を使用して新しい 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 を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
StringSE | getAsText() |
void | setAsText(StringSE text) |
addPropertyChangeListenerSE, firePropertyChangeSE, getCustomEditorSE, getJavaInitializationStringSE, getSourceSE, getTagsSE, getValueSE, isPaintableSE, paintValueSE, removePropertyChangeListenerSE, setSourceSE, setValueSE, supportsCustomEditorSE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public StringArrayPropertyEditor()
空のテキスト(要素なし)は空の配列に変換されます。
public StringArrayPropertyEditor(StringSE separator)
空のテキスト(要素なし)は空の配列に変換されます。
separator
- String
SE の分割に使用するセパレータ public StringArrayPropertyEditor(StringSE separator, boolean emptyArrayAsNull)
separator
- String
SE の分割に使用するセパレータ emptyArrayAsNull
- 空の文字列配列を null
に変換する場合は true
public StringArrayPropertyEditor(StringSE separator, boolean emptyArrayAsNull, boolean trimValues)
separator
- String
SE の分割に使用するセパレータ emptyArrayAsNull
- 空の文字列配列を null
に変換する場合は true
trimValues
- 解析された配列の値を空白から削除する場合は true
(デフォルトは true)。public StringArrayPropertyEditor(StringSE separator, @Nullable StringSE charsToDelete, boolean emptyArrayAsNull)
separator
- String
SE の分割に使用するセパレータ charsToDelete
- 入力文字列をトリミングするだけでなく、削除する文字のセット。不要な改行を削除するのに便利です。たとえば、"\r\n\f" は文字列内のすべての新しい行と改行を削除します。emptyArrayAsNull
- 空の文字列配列を null
に変換する場合は true
public StringArrayPropertyEditor(StringSE separator, @Nullable StringSE charsToDelete, boolean emptyArrayAsNull, boolean trimValues)
separator
- String
SE の分割に使用するセパレータ charsToDelete
- 入力文字列をトリミングするだけでなく、削除する文字のセット。不要な改行を削除するのに便利です。たとえば、"\r\n\f" は文字列内のすべての新しい行と改行を削除します。emptyArrayAsNull
- 空の文字列配列を null
に変換する場合は true
trimValues
- 解析された配列の値を空白から削除する場合は true
(デフォルトは true)。public void setAsText(StringSE text) throws IllegalArgumentExceptionSE
PropertyEditorSE
の setAsTextSE
PropertyEditorSupportSE
の setAsTextSE
IllegalArgumentExceptionSE
public StringSE getAsText()
PropertyEditorSE
の getAsTextSE
PropertyEditorSupportSE
の getAsTextSE