org.apache.wicket.util.convert.converters
Class ShortConverter

java.lang.Object
  extended by org.apache.wicket.util.convert.converters.AbstractConverter
      extended by org.apache.wicket.util.convert.converters.AbstractNumberConverter
          extended by org.apache.wicket.util.convert.converters.AbstractIntegerConverter
              extended by org.apache.wicket.util.convert.converters.ShortConverter
All Implemented Interfaces:
Serializable, IClusterable, IConverter

public class ShortConverter
extends AbstractIntegerConverter

Converts from Object to Short.

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

Field Summary
static IConverter INSTANCE
          The singleton instance for a short converter
 
Constructor Summary
ShortConverter()
           
 
Method Summary
 Short convertToObject(String value, Locale locale)
          Converts the given String value
protected  Class<Short> getTargetType()
           
 
Methods inherited from class org.apache.wicket.util.convert.converters.AbstractIntegerConverter
getNumberFormat
 
Methods inherited from class org.apache.wicket.util.convert.converters.AbstractNumberConverter
convertToString, parse
 
Methods inherited from class org.apache.wicket.util.convert.converters.AbstractConverter
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 INSTANCE
The singleton instance for a short converter

Constructor Detail

ShortConverter

public ShortConverter()
Method Detail

convertToObject

public Short convertToObject(String value,
                             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 Class<Short> getTargetType()
Specified by:
getTargetType in class AbstractConverter
Returns:
The target type of this type converter
See Also:
AbstractConverter.getTargetType()


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