org.springframework.binding.convert.converters
Class StringToLong

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

public class StringToLong
extends StringToObject

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

Author:
Keith Donald

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

StringToLong

public StringToLong()
Method Detail

toObject

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

toString

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