Package org.jboss.common.beans.property
Class BooleanEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jboss.common.beans.property.PropertyEditorSupport<java.lang.Boolean>
-
- org.jboss.common.beans.property.BooleanEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
,PropertyEditor<java.lang.Boolean>
public class BooleanEditor extends PropertyEditorSupport<java.lang.Boolean>
A property editor forBoolean
.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
BOOLEAN_TAGS
-
Constructor Summary
Constructors Constructor Description BooleanEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getTags()
void
setAsText(java.lang.String text)
Map the argument text into Boolean.TRUE or Boolean.FALSE using Boolean.valueOf.-
Methods inherited from class org.jboss.common.beans.property.PropertyEditorSupport
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getAsText, getType, getValue, removePropertyChangeListener, removePropertyChangeListener, setValue
-
-
-
-
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 interfacejava.beans.PropertyEditor
- Specified by:
setAsText
in interfacePropertyEditor<java.lang.Boolean>
- Specified by:
setAsText
in classPropertyEditorSupport<java.lang.Boolean>
- Parameters:
text
- The string to be parsed.
-
getTags
public java.lang.String[] getTags()
- Specified by:
getTags
in interfacejava.beans.PropertyEditor
- Overrides:
getTags
in classjava.beans.PropertyEditorSupport
- Returns:
- the values {"true", "false"}
-
-