Class BooleanEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor, PropertyEditor<java.lang.Boolean>

    public class BooleanEditor
    extends PropertyEditorSupport<java.lang.Boolean>
    A property editor for Boolean.
    • Field Detail

      • BOOLEAN_TAGS

        private static final java.lang.String[] BOOLEAN_TAGS
    • Constructor Detail

      • BooleanEditor

        public BooleanEditor()
    • Method Detail

      • setAsText

        public void setAsText​(java.lang.String text)
        Map the argument text into Boolean.TRUE or Boolean.FALSE using Boolean.valueOf.
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Specified by:
        setAsText in interface PropertyEditor<java.lang.Boolean>
        Specified by:
        setAsText in class PropertyEditorSupport<java.lang.Boolean>
        Parameters:
        text - The string to be parsed.
      • getTags

        public java.lang.String[] getTags()
        Specified by:
        getTags in interface java.beans.PropertyEditor
        Overrides:
        getTags in class java.beans.PropertyEditorSupport
        Returns:
        the values {"true", "false"}