com.elasticpath.web.ajax.dwrconverter
Class EpLocaleConverter
java.lang.Object
uk.ltd.getahead.dwr.compat.BaseV10Converter
uk.ltd.getahead.dwr.convert.BeanConverter
com.elasticpath.web.ajax.dwrconverter.EpLocaleConverter
- All Implemented Interfaces:
- uk.ltd.getahead.dwr.Converter
public class EpLocaleConverter
- extends uk.ltd.getahead.dwr.convert.BeanConverter
- implements uk.ltd.getahead.dwr.Converter
EpLocaleConverter
is a customized converter to convert java.util.Locale object to/from java.lang.String.
Method Summary |
java.lang.Object |
convertInbound(java.lang.Class paramType,
uk.ltd.getahead.dwr.InboundVariable inboundVariable,
uk.ltd.getahead.dwr.InboundContext inctx)
Attempt to coerce the data from a string to an Object. |
java.lang.String |
convertOutbound(java.lang.Object object,
java.lang.String varname,
uk.ltd.getahead.dwr.OutboundContext outctx)
Customized method for Locale object outbound conversion. |
Methods inherited from class uk.ltd.getahead.dwr.convert.BeanConverter |
getConverterManager, getInstanceType, isAvailable, setConverterManager, setExclude, setImplementation, setInclude, setInstanceType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.ltd.getahead.dwr.Converter |
setConverterManager |
EpLocaleConverter
public EpLocaleConverter()
convertInbound
public java.lang.Object convertInbound(java.lang.Class paramType,
uk.ltd.getahead.dwr.InboundVariable inboundVariable,
uk.ltd.getahead.dwr.InboundContext inctx)
throws uk.ltd.getahead.dwr.ConversionException
- Attempt to coerce the data from a string to an Object.
- Specified by:
convertInbound
in interface uk.ltd.getahead.dwr.Converter
- Overrides:
convertInbound
in class uk.ltd.getahead.dwr.convert.BeanConverter
- Parameters:
paramType
- - The type to convert to.inboundVariable
- - The inbound varaiable.inctx
- - The inbound context.
- Returns:
- the object
- Throws:
uk.ltd.getahead.dwr.ConversionException
- if fails to do the conversion
convertOutbound
public java.lang.String convertOutbound(java.lang.Object object,
java.lang.String varname,
uk.ltd.getahead.dwr.OutboundContext outctx)
- Customized method for Locale object outbound conversion.
- Specified by:
convertOutbound
in interface uk.ltd.getahead.dwr.Converter
- Overrides:
convertOutbound
in class uk.ltd.getahead.dwr.convert.BeanConverter
- Parameters:
object
- - The object to convert outbound (to js).varname
- - The var name.outctx
- - The outbound context.
- Returns:
- js string.