org.apache.wicket.util.convert.converter
Class BooleanConverter

java.lang.Object
  extended by org.apache.wicket.util.convert.converter.AbstractConverter<java.lang.Boolean>
      extended by org.apache.wicket.util.convert.converter.BooleanConverter
All Implemented Interfaces:
java.io.Serializable, IClusterable, IConverter<java.lang.Boolean>

public class BooleanConverter
extends AbstractConverter<java.lang.Boolean>

Converts from Object to Boolean.

Author:
Eelco Hillenius, Jonathan Locke
See Also:
Serialized Form

Field Summary
static IConverter<java.lang.Boolean> INSTANCE
          The singleton instance for a boolean converter
 
Constructor Summary
BooleanConverter()
           
 
Method Summary
 java.lang.Boolean convertToObject(java.lang.String value, java.util.Locale locale)
          Converts the given String value
protected  java.lang.Class<java.lang.Boolean> getTargetType()
           
 
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
convertToString, newConversionException, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IConverter<java.lang.Boolean> INSTANCE
The singleton instance for a boolean converter

Constructor Detail

BooleanConverter

public BooleanConverter()
Method Detail

convertToObject

public java.lang.Boolean convertToObject(java.lang.String value,
                                         java.util.Locale locale)
Description copied from interface: IConverter
Converts the given String value

Parameters:
value - The string value to convert
locale - 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:
getTargetType in class AbstractConverter<java.lang.Boolean>
Returns:
The target type of this type converter
See Also:
AbstractConverter.getTargetType()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.