Class BooleanConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<Boolean>
-
- org.apache.wicket.util.convert.converter.BooleanConverter
-
- All Implemented Interfaces:
Serializable
,IConverter<Boolean>
,IClusterable
public class BooleanConverter extends AbstractConverter<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<Boolean>
INSTANCE
The 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 Boolean
convertToObject(String value, Locale locale)
Converts the givenString
valueprotected Class<Boolean>
getTargetType()
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
convertToString, newConversionException, parse
-
-
-
-
Field Detail
-
INSTANCE
public static final IConverter<Boolean> INSTANCE
The singleton instance for a boolean converter
-
-
Constructor Detail
-
BooleanConverter
public BooleanConverter()
-
-
Method Detail
-
convertToObject
public Boolean convertToObject(String value, Locale locale)
Description copied from interface:IConverter
Converts the givenString
value- 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 Class<Boolean> getTargetType()
- Specified by:
getTargetType
in classAbstractConverter<Boolean>
- Returns:
- The target type of this type converter
- See Also:
AbstractConverter.getTargetType()
-
-