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

java.lang.Object
  extended by org.apache.wicket.util.convert.converter.AbstractConverter<N>
      extended by org.apache.wicket.util.convert.converter.AbstractNumberConverter<I>
          extended by org.apache.wicket.util.convert.converter.AbstractIntegerConverter<java.lang.Short>
              extended by org.apache.wicket.util.convert.converter.ShortConverter
All Implemented Interfaces:
java.io.Serializable, IClusterable, IConverter<java.lang.Short>

public class ShortConverter
extends AbstractIntegerConverter<java.lang.Short>

Converts from Object to Short.

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

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

Constructor Detail

ShortConverter

public ShortConverter()
Method Detail

convertToObject

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


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