Class BooleanEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.mina.integration.beans.AbstractPropertyEditor
-
- org.apache.mina.integration.beans.BooleanEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class BooleanEditor extends AbstractPropertyEditor
APropertyEditor
which converts aString
into aCharacter
and vice versa.- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description BooleanEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
toText(java.lang.Object value)
Returns a String representation of the given valueprotected java.lang.Object
toValue(java.lang.String text)
Returns an instance from a String representation of an object-
Methods inherited from class org.apache.mina.integration.beans.AbstractPropertyEditor
defaultText, defaultValue, getAsText, getValue, setAsText, setTrimText, setValue
-
-
-
-
Method Detail
-
toText
protected java.lang.String toText(java.lang.Object value)
Description copied from class:AbstractPropertyEditor
Returns a String representation of the given value- Specified by:
toText
in classAbstractPropertyEditor
- Parameters:
value
- The value- Returns:
- A String representation of the value
-
toValue
protected java.lang.Object toValue(java.lang.String text) throws java.lang.IllegalArgumentException
Description copied from class:AbstractPropertyEditor
Returns an instance from a String representation of an object- Specified by:
toValue
in classAbstractPropertyEditor
- Parameters:
text
- The String representation to convert- Returns:
- A instance of an object
- Throws:
java.lang.IllegalArgumentException
-
-