| Constructor: |
public StringArrayPropertyEditor() {
this(DEFAULT_SEPARATOR, null, false);
}
|
public StringArrayPropertyEditor(String separator) {
this(separator, null, false);
}
Parameters:
separator - the separator to use for splitting a String
|
public StringArrayPropertyEditor(String separator,
boolean emptyArrayAsNull) {
this(separator, null, emptyArrayAsNull);
}
Create a new StringArrayPropertyEditor with the given separator. Parameters:
separator - the separator to use for splitting a String
emptyArrayAsNull - true if an empty String array
is to be transformed into null
|
public StringArrayPropertyEditor(String separator,
String charsToDelete,
boolean emptyArrayAsNull) {
this.separator = separator;
this.charsToDelete = charsToDelete;
this.emptyArrayAsNull = emptyArrayAsNull;
}
Create a new StringArrayPropertyEditor with the given separator. Parameters:
separator - the separator to use for splitting a String
charsToDelete - a set of characters to delete, in addition to
trimming an input String. Useful for deleting unwanted line breaks:
e.g. "\r\n\f" will delete all new lines and line feeds in a String.
emptyArrayAsNull - true if an empty String array
is to be transformed into null
|