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

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

public class CharacterConverter
extends AbstractConverter<java.lang.Character>

Converts from Object to Character.

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

Field Summary
static IConverter<java.lang.Character> INSTANCE
          The singleton instance for a character converter
 
Constructor Summary
CharacterConverter()
           
 
Method Summary
 java.lang.Character convertToObject(java.lang.String value, java.util.Locale locale)
          Converts the given String value
protected  java.lang.Class<java.lang.Character> 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.Character> INSTANCE
The singleton instance for a character converter

Constructor Detail

CharacterConverter

public CharacterConverter()
Method Detail

convertToObject

public java.lang.Character 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.Character> getTargetType()
Specified by:
getTargetType in class AbstractConverter<java.lang.Character>
Returns:
The target type of this type converter
See Also:
AbstractConverter.getTargetType()


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