org.springframework.binding.convert.converters
Class StringToLocale

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

public class StringToLocale
extends StringToObject

Converts a String to a Locale using StringUtils.parseLocaleString(String).

Author:
Keith Donald

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

StringToLocale

public StringToLocale()
Method Detail

toObject

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

toString

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