| java.lang.Object java.beans.PropertyEditorSupport org.springframework.beans.propertyeditors.CustomBooleanEditor
Constructor Summary | |
public | CustomBooleanEditor(boolean allowEmpty) Create a new CustomBooleanEditor instance, with "true"/"on"/"yes"
and "false"/"off"/"no" as recognized String values.
The "allowEmpty" parameter states if an empty String should
be allowed for parsing, i.e. | public | CustomBooleanEditor(String trueString, String falseString, boolean allowEmpty) Create a new CustomBooleanEditor instance,
with configurable String values for true and false.
The "allowEmpty" parameter states if an empty String should
be allowed for parsing, i.e. |
CustomBooleanEditor | public CustomBooleanEditor(boolean allowEmpty)(Code) | | Create a new CustomBooleanEditor instance, with "true"/"on"/"yes"
and "false"/"off"/"no" as recognized String values.
The "allowEmpty" parameter states if an empty String should
be allowed for parsing, i.e. get interpreted as null value.
Else, an IllegalArgumentException gets thrown in that case.
Parameters: allowEmpty - if empty strings should be allowed |
CustomBooleanEditor | public CustomBooleanEditor(String trueString, String falseString, boolean allowEmpty)(Code) | | Create a new CustomBooleanEditor instance,
with configurable String values for true and false.
The "allowEmpty" parameter states if an empty String should
be allowed for parsing, i.e. get interpreted as null value.
Else, an IllegalArgumentException gets thrown in that case.
Parameters: trueString - the String value that represents true:for example, "true" (VALUE_TRUE), "on" (VALUE_ON),"yes" (VALUE_YES) or some custom value Parameters: falseString - the String value that represents false:for example, "false" (VALUE_FALSE), "off" (VALUE_OFF),"no" (VALUE_NO) or some custom value Parameters: allowEmpty - if empty strings should be allowed See Also: CustomBooleanEditor.VALUE_TRUE See Also: CustomBooleanEditor.VALUE_FALSE See Also: CustomBooleanEditor.VALUE_ON See Also: CustomBooleanEditor.VALUE_OFF See Also: CustomBooleanEditor.VALUE_YES See Also: CustomBooleanEditor.VALUE_NO |
|
|