Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » propertyeditors » [javadoc | source]
org.springframework.beans.propertyeditors
public class: StringArrayPropertyEditor [javadoc | source]
java.lang.Object
   java.beans.PropertyEditorSupport
      org.springframework.beans.propertyeditors.StringArrayPropertyEditor

All Implemented Interfaces:
    PropertyEditor

Custom java.beans.PropertyEditor for String arrays.

Strings must be in CSV format, with a customizable separator.

Field Summary
public static final  String DEFAULT_SEPARATOR    Default separator for splitting a String: a comma (",") 
Constructor:
 public StringArrayPropertyEditor() 
 public StringArrayPropertyEditor(String separator) 
    Create a new StringArrayPropertyEditor with the given separator.

    An empty text (without elements) will be turned into an empty array.

    Parameters:
    separator - the separator to use for splitting a String
 public StringArrayPropertyEditor(String separator,
    boolean 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) 
    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
Method from org.springframework.beans.propertyeditors.StringArrayPropertyEditor Summary:
getAsText,   setAsText
Methods from java.beans.PropertyEditorSupport:
addPropertyChangeListener,   firePropertyChange,   getAsText,   getCustomEditor,   getJavaInitializationString,   getSource,   getTags,   getValue,   isPaintable,   paintValue,   removePropertyChangeListener,   setAsText,   setSource,   setValue,   supportsCustomEditor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.propertyeditors.StringArrayPropertyEditor Detail:
 public String getAsText() 
 public  void setAsText(String text) throws IllegalArgumentException