org.apache.commons.beanutils.locale.converters
public class StringLocaleConverter extends BaseLocaleConverter
Standard {@link org.apache.commons.beanutils.locale.LocaleConverter}
implementation that converts an incoming
locale-sensitive object into a java.lang.String
object,
optionally using a default value or throwing a
{@link org.apache.commons.beanutils.ConversionException}
if a conversion error occurs.
Field Summary | |
---|---|
static Log | log All logging goes through this logger |
Constructor Summary | |
---|---|
StringLocaleConverter()
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will throw a {@link org.apache.commons.beanutils.ConversionException}
if a conversion error occurs. | |
StringLocaleConverter(boolean locPattern)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will throw a {@link org.apache.commons.beanutils.ConversionException}
if a conversion error occurs. | |
StringLocaleConverter(Locale locale)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will throw a {@link org.apache.commons.beanutils.ConversionException}
if a conversion error occurs. | |
StringLocaleConverter(Locale locale, boolean locPattern)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will throw a {@link org.apache.commons.beanutils.ConversionException}
if a conversion error occurs.
| |
StringLocaleConverter(Locale locale, String pattern)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will throw a {@link org.apache.commons.beanutils.ConversionException}
if a conversion error occurs. | |
StringLocaleConverter(Locale locale, String pattern, boolean locPattern)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will throw a {@link org.apache.commons.beanutils.ConversionException}
if a conversion error occurs.
| |
StringLocaleConverter(Object defaultValue)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will return the specified default value
if a conversion error occurs. | |
StringLocaleConverter(Object defaultValue, boolean locPattern)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will return the specified default value
if a conversion error occurs. | |
StringLocaleConverter(Object defaultValue, Locale locale)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will return the specified default value
if a conversion error occurs. | |
StringLocaleConverter(Object defaultValue, Locale locale, boolean locPattern)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will return the specified default value
if a conversion error occurs.
| |
StringLocaleConverter(Object defaultValue, Locale locale, String pattern)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will return the specified default value
if a conversion error occurs. | |
StringLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean locPattern)
Create a {@link org.apache.commons.beanutils.locale.LocaleConverter}
that will return the specified default value
if a conversion error occurs.
|
Method Summary | |
---|---|
DecimalFormat | getDecimalFormat(Locale locale, String pattern)
Make an instance of DecimalFormat.
|
protected Object | parse(Object value, String pattern)
Convert the specified locale-sensitive input object into an output object of the
specified type.
|
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
Parameters: locale The locale pattern The pattern is used for the convertion
Throws: ConversionException if conversion cannot be performed successfully
Parameters: value The input object to be converted pattern The pattern is used for the convertion
Throws: ConversionException if conversion cannot be performed successfully