Class GenericArrayPropertyEditor<T>

    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
      • cellType

        private final java.lang.Class<?> cellType
    • Constructor Detail

      • GenericArrayPropertyEditor

        public GenericArrayPropertyEditor​(java.lang.Class<T> initType)
        Parameters:
        type -
    • 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<T>
        Specified by:
        setAsText in class PropertyEditorSupport<T>
        Parameters:
        text - The string to be parsed.
        Throws:
        java.lang.IllegalArgumentException
      • getAsText

        public java.lang.String getAsText()
        Description copied from interface: PropertyEditor
        Gets the property value as text.
        Specified by:
        getAsText in interface java.beans.PropertyEditor
        Specified by:
        getAsText in interface PropertyEditor<T>
        Overrides:
        getAsText in class PropertyEditorSupport<T>
        Returns:
        The property value as a human editable string.

        Returns null if the value can't be expressed as an editable string.

        If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().

      • tokenize

        protected java.lang.String[] tokenize​(java.lang.String text)
      • encode

        protected java.lang.String encode​(java.lang.String[] v)
      • getCellType

        protected java.lang.Class<?> getCellType()