Class StringArrayEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor, PropertyEditor<java.lang.String[]>

    public class StringArrayEditor
    extends GenericArrayPropertyEditor<java.lang.String[]>
    A property editor for String[]. The text format of a string array is a comma or \n, \r seperated list with \, representing an escaped comma to include in the string element.
    • Constructor Detail

      • StringArrayEditor

        public StringArrayEditor()
    • Method Detail

      • setAsText

        public void setAsText​(java.lang.String text)
                       throws java.lang.IllegalArgumentException
        Description copied from interface: PropertyEditor
        Set the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Specified by:
        setAsText in interface PropertyEditor<java.lang.String[]>
        Overrides:
        setAsText in class GenericArrayPropertyEditor<java.lang.String[]>
        Parameters:
        text - The string to be parsed.
        Throws:
        java.lang.IllegalArgumentException