java.lang.Object | |
↳ | org.apache.commons.beanutils.locale.LocaleConvertUtils |
Utility methods for converting locale-sensitive String scalar values to objects of the specified Class, String arrays to arrays of the specified Class and object to locale-sensitive String scalar value.
The implementations for these method are provided by LocaleConvertUtilsBean
.
These static utility method use the default instance. More sophisticated can be provided
by using a LocaleConvertUtilsBean
instance.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert the specified value to an object of the specified class (if possible) using the convertion pattern. | |||||||||||
Convert an array of specified values to an array of objects of the specified class (if possible) using the convertion pattern. | |||||||||||
Convert the specified value to an object of the specified class (if possible) using the convertion pattern. | |||||||||||
Convert the specified locale-sensitive value into a String using the conversion pattern. | |||||||||||
Convert the specified locale-sensitive value into a String. | |||||||||||
Convert the specified value to an object of the specified class (if possible). | |||||||||||
Convert an array of specified values to an array of objects of the specified class (if possible). | |||||||||||
Convert an array of specified values to an array of objects of the specified class (if possible) using the convertion pattern. | |||||||||||
Convert the specified locale-sensitive value into a String using the paticular convertion pattern. | |||||||||||
Remove any registered | |||||||||||
Remove any registered | |||||||||||
Remove any registered | |||||||||||
Gets applyLocalized. | |||||||||||
Gets the | |||||||||||
Look up and return any registered | |||||||||||
Register a custom | |||||||||||
Sets applyLocalized. | |||||||||||
Sets the |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
This method will be modified to return a Map in the next release.
| |||||||||||
This method is deprecated.
This method will be modified to return a Map in the next release.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Convert the specified value to an object of the specified class (if possible) using the convertion pattern. Otherwise, return a String representation of the value.
For more details see LocaleConvertUtilsBean
value | The String scalar value to be converted |
---|---|
clazz | The Data type to which this value should be converted. |
pattern | The convertion pattern |
Convert an array of specified values to an array of objects of the specified class (if possible) using the convertion pattern.
For more details see LocaleConvertUtilsBean
values | Value to be converted (may be null) |
---|---|
clazz | Java array or element class to be converted to |
locale | The locale |
pattern | The convertion pattern |
Convert the specified value to an object of the specified class (if possible) using the convertion pattern. Otherwise, return a String representation of the value.
For more details see LocaleConvertUtilsBean
value | The String scalar value to be converted |
---|---|
clazz | The Data type to which this value should be converted. |
locale | The locale |
pattern | The convertion pattern |
Convert the specified locale-sensitive value into a String using the conversion pattern.
For more details see LocaleConvertUtilsBean
value | The Value to be converted |
---|---|
pattern | The convertion pattern |
Convert the specified locale-sensitive value into a String.
For more details see LocaleConvertUtilsBean
value | The Value to be converted |
---|
Convert the specified value to an object of the specified class (if possible). Otherwise, return a String representation of the value.
For more details see LocaleConvertUtilsBean
value | The String scalar value to be converted |
---|---|
clazz | The Data type to which this value should be converted. |
Convert an array of specified values to an array of objects of the specified class (if possible).
For more details see LocaleConvertUtilsBean
values | Value to be converted (may be null) |
---|---|
clazz | Java array or element class to be converted to |
Convert an array of specified values to an array of objects of the specified class (if possible) using the convertion pattern.
For more details see LocaleConvertUtilsBean
values | Value to be converted (may be null) |
---|---|
clazz | Java array or element class to be converted to |
pattern | The convertion pattern |
Convert the specified locale-sensitive value into a String using the paticular convertion pattern.
For more details see LocaleConvertUtilsBean
value | The Value to be converted |
---|---|
locale | The locale |
pattern | The convertion pattern |
Remove any registered LocaleConverter
for the specified locale and Class.
For more details see LocaleConvertUtilsBean
clazz | Class for which to remove a registered Converter |
---|---|
locale | The locale |
Remove any registered LocaleConverter
for the specified locale.
For more details see LocaleConvertUtilsBean
locale | The locale |
---|
Remove any registered LocaleConverter
.
For more details see LocaleConvertUtilsBean
Gets applyLocalized.
For more details see LocaleConvertUtilsBean
true
if pattern is localized,
otherwise false
Gets the Locale
which will be used when
no Locale
is passed to a method.
For more details see LocaleConvertUtilsBean
Look up and return any registered LocaleConverter
for the specified
destination class and locale; if there is no registered Converter, return
null
.
For more details see LocaleConvertUtilsBean
clazz | Class for which to return a registered Converter |
---|---|
locale | The Locale |
Register a custom LocaleConverter
for the specified destination
Class
, replacing any previously registered converter.
For more details see LocaleConvertUtilsBean
converter | The LocaleConverter to be registered |
---|---|
clazz | The Destination class for conversions performed by this Converter |
locale | The locale |
Sets applyLocalized.
For more details see LocaleConvertUtilsBean
newApplyLocalized | true if pattern is localized,
otherwise false |
---|
Sets the Locale
which will be used when
no Locale
is passed to a method.
For more details see LocaleConvertUtilsBean
locale | the default locale |
---|
This method is deprecated.
This method will be modified to return a Map in the next release.
Create all LocaleConverter
types for specified locale.
For more details see LocaleConvertUtilsBean
locale | The Locale |
---|
LocaleConverter
types
for the specified locale.
This method is deprecated.
This method will be modified to return a Map in the next release.
Look up and return any registered FastHashMap instance for the specified locale.
For more details see LocaleConvertUtilsBean
locale | The Locale |
---|
LocaleConverter
types for
the specified locale.