Module org.apache.wicket.util
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
Converts from Object to Boolean.
- Author:
- Eelco Hillenius, Jonathan Locke
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IConverter<Boolean>
The singleton instance for a boolean converter -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToObject
(String value, Locale locale) Converts the givenString
valueMethods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
convertToString, newConversionException, parse
-
Field Details
-
INSTANCE
The singleton instance for a boolean converter
-
-
Constructor Details
-
BooleanConverter
public BooleanConverter()
-
-
Method Details
-
convertToObject
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:
-
getTargetType
- Specified by:
getTargetType
in classAbstractConverter<Boolean>
- Returns:
- The target type of this type converter
- See Also:
-