java.lang.Object | ||
↳ | org.apache.commons.beanutils.BeanUtils | |
↳ | org.apache.commons.beanutils.locale.LocaleBeanUtils |
Utility methods for populating JavaBeans properties via reflection in a locale-dependent manner.
The implementations for these methods are provided by LocaleBeanUtilsBean
.
For more details see LocaleBeanUtilsBean
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LocaleBeanUtils.Descriptor |
This class is deprecated.
moved into LocaleBeanUtils |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets whether the pattern is localized or not. | |||||||||||
Gets the locale used when no locale is passed. | |||||||||||
Return the value of the specified locale-sensitive indexed property
of the specified bean, as a String using the default conversion pattern of
the corresponding
LocaleConverter . | |||||||||||
Return the value of the specified locale-sensetive indexed property
of the specified bean, as a String using the default conversion pattern of
the corresponding | |||||||||||
Return the value of the specified locale-sensetive indexed property of the specified bean, as a String using the specified conversion pattern. | |||||||||||
Return the value of the specified locale-sensitive indexed property of the specified bean, as a String. | |||||||||||
Return the value of the specified mapped locale-sensitive property of the specified bean, as a String using the specified conversion pattern. | |||||||||||
Return the value of the specified mapped locale-sensitive property of the specified bean, as a String The key is specified as a method parameter and must *not* be included in the property name expression. | |||||||||||
Return the value of the specified locale-sensitive mapped property
of the specified bean, as a String using the default
conversion pattern of the corresponding | |||||||||||
Return the value of the specified locale-sensitive mapped property of the specified bean, as a String using the specified pattern. | |||||||||||
Return the value of the (possibly nested) locale-sensitive property of the specified name, for the specified bean, as a String using the specified pattern. | |||||||||||
Return the value of the (possibly nested) locale-sensitive property of the specified name. | |||||||||||
Return the value of the specified locale-sensitive property of the specified bean. | |||||||||||
Return the value of the specified locale-sensitive property of the specified bean. | |||||||||||
Return the value of the specified simple locale-sensitive property of the specified bean, converted to a String using the specified conversion pattern. | |||||||||||
Return the value of the specified simple locale-sensitive property
of the specified bean, converted to a String using the default
conversion pattern of the corresponding | |||||||||||
Sets whether the pattern is localized or not. | |||||||||||
Sets the locale used when no locale is passed. | |||||||||||
Set the specified locale-sensitive property value, performing type conversions as required to conform to the type of the destination property using the specified conversion pattern. | |||||||||||
Set the specified locale-sensitive property value, performing type
conversions as required to conform to the type of the destination property
using the default conversion pattern of the corresponding |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
moved into
LocaleBeanUtilsBean | |||||||||||
Convert the specified value to the required type using the specified conversion pattern. | |||||||||||
Convert the specified value to the required type. | |||||||||||
Calculate the property type. | |||||||||||
Invoke the setter method. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.beanutils.BeanUtils
| |||||||||||
From class
java.lang.Object
|
Gets whether the pattern is localized or not.
For more details see LocaleBeanUtilsBean
true
if pattern is localized,
otherwise false
Gets the locale used when no locale is passed.
For more details see LocaleBeanUtilsBean
Return the value of the specified locale-sensitive indexed property
of the specified bean, as a String using the default conversion pattern of
the corresponding LocaleConverter
.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | propertyname[index] of the property value
to be extracted |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified locale-sensetive indexed property
of the specified bean, as a String using the default conversion pattern of
the corresponding LocaleConverter
.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Simple property name of the property value to be extracted |
index | Index of the property value to be extracted |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified locale-sensetive indexed property of the specified bean, as a String using the specified conversion pattern.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Simple property name of the property value to be extracted |
index | Index of the property value to be extracted |
pattern | The conversion pattern |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified locale-sensitive indexed property of the specified bean, as a String.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | propertyname[index] of the property value
to be extracted |
pattern | The conversion pattern |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified mapped locale-sensitive property of the specified bean, as a String using the specified conversion pattern.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Simple property name of the property value to be extracted |
key | Lookup key of the property value to be extracted |
pattern | The conversion pattern |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified mapped locale-sensitive property of the specified bean, as a String The key is specified as a method parameter and must *not* be included in the property name expression.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Simple property name of the property value to be extracted |
key | Lookup key of the property value to be extracted |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified locale-sensitive mapped property
of the specified bean, as a String using the default
conversion pattern of the corresponding LocaleConverter
.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | propertyname(index) of the property value
to be extracted |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified locale-sensitive mapped property of the specified bean, as a String using the specified pattern.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | propertyname(index) of the property value
to be extracted |
pattern | The conversion pattern |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the (possibly nested) locale-sensitive property of the specified name, for the specified bean, as a String using the specified pattern.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Possibly nested name of the property to be extracted |
pattern | The conversion pattern |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the (possibly nested) locale-sensitive property of the specified name.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Possibly nested name of the property to be extracted |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified locale-sensitive property of the specified bean.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Possibly indexed and/or nested name of the property to be extracted |
pattern | The conversion pattern |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified locale-sensitive property of the specified bean.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Possibly indexed and/or nested name of the property to be extracted |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified simple locale-sensitive property of the specified bean, converted to a String using the specified conversion pattern.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Name of the property to be extracted |
pattern | The conversion pattern |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Return the value of the specified simple locale-sensitive property
of the specified bean, converted to a String using the default
conversion pattern of the corresponding LocaleConverter
.
For more details see LocaleBeanUtilsBean
bean | Bean whose property is to be extracted |
---|---|
name | Name of the property to be extracted |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
NoSuchMethodException | if an accessor method for this propety cannot be found |
Sets whether the pattern is localized or not.
For more details see LocaleBeanUtilsBean
newApplyLocalized | true if pattern is localized,
otherwise false |
---|
Sets the locale used when no locale is passed.
For more details see LocaleBeanUtilsBean
locale | the default locale |
---|
Set the specified locale-sensitive property value, performing type conversions as required to conform to the type of the destination property using the specified conversion pattern.
For more details see LocaleBeanUtilsBean
bean | Bean on which setting is to be performed |
---|---|
name | Property name (can be nested/indexed/mapped/combo) |
value | Value to be set |
pattern | The conversion pattern |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
Set the specified locale-sensitive property value, performing type
conversions as required to conform to the type of the destination property
using the default conversion pattern of the corresponding LocaleConverter
.
For more details see LocaleBeanUtilsBean
bean | Bean on which setting is to be performed |
---|---|
name | Property name (can be nested/indexed/mapped/combo) |
value | Value to be set |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
This method is deprecated.
moved into LocaleBeanUtilsBean
Resolve any nested expression to get the actual target bean.
bean | The bean |
---|---|
name | The property name |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
Convert the specified value to the required type using the specified conversion pattern.
For more details see LocaleBeanUtilsBean
type | The Java type of target property |
---|---|
index | The indexed subscript value (if any) |
value | The value to be converted |
pattern | The conversion pattern |
Convert the specified value to the required type.
For more details see LocaleBeanUtilsBean
type | The Java type of target property |
---|---|
index | The indexed subscript value (if any) |
value | The value to be converted |
Calculate the property type.
For more details see LocaleBeanUtilsBean
target | The bean |
---|---|
name | The property name |
propName | The Simple name of target property |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |
Invoke the setter method.
For more details see LocaleBeanUtilsBean
target | The bean |
---|---|
propName | The Simple name of target property |
key | The Mapped key value (if any) |
index | The indexed subscript value (if any) |
newValue | The value to be set |
IllegalAccessException | if the caller does not have access to the property accessor method |
---|---|
InvocationTargetException | if the property accessor method throws an exception |