org.springframework.binding.convert.converters
Class StringToInteger

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

public class StringToInteger
extends StringToObject

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

Author:
Keith Donald

Constructor Summary
StringToInteger()
           
 
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

StringToInteger

public StringToInteger()
Method Detail

toObject

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

toString

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