org.springframework.binding.convert.converters
Class StringToShort

java.lang.Object
  extended by org.springframework.binding.convert.converters.StringToObject
      extended by org.springframework.binding.convert.converters.StringToShort
All Implemented Interfaces:
Converter, TwoWayConverter

public class StringToShort
extends StringToObject

Converts a String to an Short using Short.valueOf(String).

Author:
Keith Donald

Constructor Summary
StringToShort()
           
 
Method Summary
 Object toObject(String string, Class objectClass)
           
 String toString(Object object)
           
 
Methods inherited from class org.springframework.binding.convert.converters.StringToObject
convertSourceToTargetClass, convertTargetToSourceClass, getSourceClass, getTargetClass
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToShort

public StringToShort()
Method Detail

toObject

public Object toObject(String string,
                       Class objectClass)
                throws Exception
Throws:
Exception

toString

public String toString(Object object)
                throws Exception
Throws:
Exception