java.lang.Object | |
↳ | org.apache.commons.beanutils.locale.BaseLocaleConverter |
Known Direct Subclasses |
Known Indirect Subclasses |
The base class for all standart type locale-sensitive converters.
It has LocaleConverter
and Converter
implementations,
that convert an incoming locale-sensitive Object into an object of correspond type,
optionally using a default value or throwing a ConversionException
if a conversion error occurs.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
locPattern | The flag indicating whether the given pattern string is localized or not. | ||||||||||
locale | The locale specified to our Constructor, by default - system locale. | ||||||||||
pattern | The default pattern specified to our Constructor, if any. | ||||||||||
useDefault | Should we return the default value on conversion errors? |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a
LocaleConverter that will throw a ConversionException
if a conversion error occurs. | |||||||||||
Create a
LocaleConverter that will throw a ConversionException
if a conversion error occurs. | |||||||||||
Create a
LocaleConverter that will return the specified default value
if a conversion error occurs. | |||||||||||
Create a
LocaleConverter that will return the specified default value
if a conversion error occurs. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert the specified locale-sensitive input object into an output object.
| |||||||||||
Convert the specified locale-sensitive input object into an output object.
| |||||||||||
Convert the specified locale-sensitive input object into an output object of the
specified type.
| |||||||||||
Convert the specified locale-sensitive input object into an output object of the
specified type.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert the specified locale-sensitive input object into an output object of the
specified type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.beanutils.Converter
| |||||||||||
From interface
org.apache.commons.beanutils.locale.LocaleConverter
|
The flag indicating whether the given pattern string is localized or not.
Should we return the default value on conversion errors?
Create a LocaleConverter
that will throw a ConversionException
if a conversion error occurs.
An unlocalized pattern is used for the convertion.
locale | The locale |
---|---|
pattern | The convertion pattern |
Create a LocaleConverter
that will throw a ConversionException
if a conversion error occurs.
locale | The locale |
---|---|
pattern | The convertion pattern |
locPattern | Indicate whether the pattern is localized or not |
Create a LocaleConverter
that will return the specified default value
if a conversion error occurs.
An unlocalized pattern is used for the convertion.
defaultValue | The default value to be returned |
---|---|
locale | The locale |
pattern | The convertion pattern |
Create a LocaleConverter
that will return the specified default value
if a conversion error occurs.
defaultValue | The default value to be returned |
---|---|
locale | The locale |
pattern | The convertion pattern |
locPattern | Indicate whether the pattern is localized or not |
Convert the specified locale-sensitive input object into an output object.
value | The input object to be converted |
---|---|
pattern | The pattern is used for the convertion |
ConversionException | if conversion cannot be performed successfully |
---|
Convert the specified locale-sensitive input object into an output object. The default pattern is used for the convertion.
value | The input object to be converted |
---|
ConversionException | if conversion cannot be performed successfully |
---|
Convert the specified locale-sensitive input object into an output object of the specified type. The default pattern is used for the convertion.
type | Data type to which this value should be converted |
---|---|
value | The input object to be converted |
ConversionException | if conversion cannot be performed successfully |
---|
Convert the specified locale-sensitive input object into an output object of the specified type.
type | Data is type to which this value should be converted |
---|---|
value | is the input object to be converted |
pattern | is the pattern is used for the conversion; if null is passed then the default pattern associated with the converter object will be used. |
ConversionException | if conversion cannot be performed successfully |
---|
Convert the specified locale-sensitive input object into an output object of the specified type.
value | The input object to be converted |
---|---|
pattern | The pattern is used for the convertion |
ParseException | if conversion cannot be performed successfully |
---|