org.apache.commons.beanutils.locale.converters
public class DoubleLocaleConverter extends DecimalLocaleConverter
Standard LocaleConverter
implementation that converts an incoming
locale-sensitive String into a java.lang.Double
object,
optionally using a default value or throwing a
ConversionException
if a conversion error occurs.
Constructor Summary | |
---|---|
DoubleLocaleConverter()
Create a LocaleConverter
that will throw a ConversionException
if a conversion error occurs. | |
DoubleLocaleConverter(boolean locPattern)
Create a LocaleConverter
that will throw a ConversionException
if a conversion error occurs. | |
DoubleLocaleConverter(Locale locale)
Create a LocaleConverter
that will throw a ConversionException
if a conversion error occurs. | |
DoubleLocaleConverter(Locale locale, boolean locPattern)
Create a LocaleConverter
that will throw a ConversionException
if a conversion error occurs.
| |
DoubleLocaleConverter(Locale locale, String pattern)
Create a LocaleConverter
that will throw a ConversionException
if a conversion error occurs. | |
DoubleLocaleConverter(Locale locale, String pattern, boolean locPattern)
Create a LocaleConverter
that will throw a ConversionException
if a conversion error occurs.
| |
DoubleLocaleConverter(Object defaultValue)
Create a LocaleConverter
that will return the specified default value
if a conversion error occurs. | |
DoubleLocaleConverter(Object defaultValue, boolean locPattern)
Create a LocaleConverter
that will return the specified default value
if a conversion error occurs. | |
DoubleLocaleConverter(Object defaultValue, Locale locale)
Create a LocaleConverter
that will return the specified default value
if a conversion error occurs. | |
DoubleLocaleConverter(Object defaultValue, Locale locale, boolean locPattern)
Create a LocaleConverter
that will return the specified default value
if a conversion error occurs.
| |
DoubleLocaleConverter(Object defaultValue, Locale locale, String pattern)
Create a LocaleConverter
that will return the specified default value
if a conversion error occurs. | |
DoubleLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean locPattern)
Create a LocaleConverter
that will return the specified default value
if a conversion error occurs.
|
Method Summary | |
---|---|
protected Object | parse(Object value, String pattern) |
Parameters: locPattern Indicate whether the pattern is localized or not
Parameters: locale The locale
Parameters: locale The locale locPattern Indicate whether the pattern is localized or not
Parameters: locale The locale pattern The convertion pattern
Parameters: locale The locale pattern The convertion pattern locPattern Indicate whether the pattern is localized or not
Parameters: defaultValue The default value to be returned
Parameters: defaultValue The default value to be returned locPattern Indicate whether the pattern is localized or not
Parameters: defaultValue The default value to be returned locale The locale
Parameters: defaultValue The default value to be returned locale The locale locPattern Indicate whether the pattern is localized or not
Parameters: defaultValue The default value to be returned locale The locale pattern The convertion pattern
Parameters: defaultValue The default value to be returned locale The locale pattern The convertion pattern locPattern Indicate whether the pattern is localized or not