| org.apache.commons.beanutils.locale.converters.DecimalLocaleConverter org.apache.commons.beanutils.locale.converters.ShortLocaleConverter
Constructor Summary | |
public | ShortLocaleConverter() Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | ShortLocaleConverter(boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | ShortLocaleConverter(Locale locale) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | ShortLocaleConverter(Locale locale, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | ShortLocaleConverter(Locale locale, String pattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | ShortLocaleConverter(Locale locale, String pattern, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | ShortLocaleConverter(Object defaultValue) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | ShortLocaleConverter(Object defaultValue, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | ShortLocaleConverter(Object defaultValue, Locale locale) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | ShortLocaleConverter(Object defaultValue, Locale locale, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | ShortLocaleConverter(Object defaultValue, Locale locale, String pattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | ShortLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. |
Method Summary | |
protected Object | parse(Object value, String pattern) Convert the specified locale-sensitive input object into an output object of the
specified type. |
ShortLocaleConverter | public ShortLocaleConverter(Object defaultValue)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. The locale is the default locale for
this instance of the Java Virtual Machine and an unlocalized pattern is used
for the convertion.
Parameters: defaultValue - The default value to be returned |
ShortLocaleConverter | public ShortLocaleConverter(Object defaultValue, boolean locPattern)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. The locale is the default locale for
this instance of the Java Virtual Machine.
Parameters: defaultValue - The default value to be returned Parameters: locPattern - Indicate whether the pattern is localized or not |
ShortLocaleConverter | public ShortLocaleConverter(Object defaultValue, Locale locale)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. An unlocalized pattern is used for the convertion.
Parameters: defaultValue - The default value to be returned Parameters: locale - The locale |
ShortLocaleConverter | public ShortLocaleConverter(Object defaultValue, Locale locale, boolean locPattern)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs.
Parameters: defaultValue - The default value to be returned Parameters: locale - The locale Parameters: locPattern - Indicate whether the pattern is localized or not |
ShortLocaleConverter | public ShortLocaleConverter(Object defaultValue, Locale locale, String pattern)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. An unlocalized pattern is used for the convertion.
Parameters: defaultValue - The default value to be returned Parameters: locale - The locale Parameters: pattern - The convertion pattern |
ShortLocaleConverter | public ShortLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean locPattern)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs.
Parameters: defaultValue - The default value to be returned Parameters: locale - The locale Parameters: pattern - The convertion pattern Parameters: locPattern - Indicate whether the pattern is localized or not |
parse | protected Object parse(Object value, String pattern) throws ParseException(Code) | | Convert the specified locale-sensitive input object into an output object of the
specified type. This method will return values of type Short.
Parameters: value - The input object to be converted Parameters: pattern - The pattern is used for the convertion The converted value exception: org.apache.commons.beanutils.ConversionException - if conversion cannot be performedsuccessfully throws: ParseException - if an error occurs parsing a String to a Number |
|
|