Class BooleanConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<java.lang.Boolean>
-
- org.apache.wicket.util.convert.converter.BooleanConverter
-
- All Implemented Interfaces:
java.io.Serializable,IConverter<java.lang.Boolean>,IClusterable
public class BooleanConverter extends AbstractConverter<java.lang.Boolean>
Converts from Object to Boolean.- Author:
- Eelco Hillenius, Jonathan Locke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IConverter<java.lang.Boolean>INSTANCEThe singleton instance for a boolean converter
-
Constructor Summary
Constructors Constructor Description BooleanConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleanconvertToObject(java.lang.String value, java.util.Locale locale)Converts the givenStringvalueprotected java.lang.Class<java.lang.Boolean>getTargetType()-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
convertToString, newConversionException, parse
-
-
-
-
Field Detail
-
INSTANCE
public static final IConverter<java.lang.Boolean> INSTANCE
The singleton instance for a boolean converter
-
-
Method Detail
-
convertToObject
public java.lang.Boolean convertToObject(java.lang.String value, java.util.Locale locale)Description copied from interface:IConverterConverts the givenStringvalue- Parameters:
value- The string value to convertlocale- The locale used to convert the value- Returns:
- The converted value
- See Also:
IConverter.convertToObject(java.lang.String,Locale)
-
getTargetType
protected java.lang.Class<java.lang.Boolean> getTargetType()
- Specified by:
getTargetTypein classAbstractConverter<java.lang.Boolean>- Returns:
- The target type of this type converter
- See Also:
AbstractConverter.getTargetType()
-
-