| java.lang.Object org.apache.commons.beanutils.BeanUtils org.apache.commons.beanutils.locale.LocaleBeanUtils
LocaleBeanUtils | public class LocaleBeanUtils extends BeanUtils (Code) | | 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 .
author: Craig R. McClanahan author: Ralph Schaer author: Chris Audley author: Rey Francois author: Gregor Rayman author: Yauheny Mikulski |
Inner Class :protected static class Descriptor | |
Method Summary | |
protected static Descriptor | calculate(Object bean, String name) Resolve any nested expression to get the actual target bean. | protected static Object | convert(Class type, int index, Object value, String pattern) | protected static Object | convert(Class type, int index, Object value) | protected static Class | definePropertyType(Object target, String name, String propName) | public static boolean | getApplyLocalized() | public static Locale | getDefaultLocale() | public static String | getIndexedProperty(Object bean, String name, String pattern) | public static String | getIndexedProperty(Object bean, String name) 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 . | public static String | getIndexedProperty(Object bean, String name, int index, String pattern) | public static String | getIndexedProperty(Object bean, String name, int index) | public static String | getMappedProperty(Object bean, String name, String key, String pattern) | public static String | getMappedProperty(Object bean, String name, String key) | public static String | getMappedProperty(Object bean, String name) | public static String | getMappedPropertyLocale(Object bean, String name, String pattern) | public static String | getNestedProperty(Object bean, String name, String pattern) | public static String | getNestedProperty(Object bean, String name) | public static String | getProperty(Object bean, String name, String pattern) | public static String | getProperty(Object bean, String name) | public static String | getSimpleProperty(Object bean, String name, String pattern) | public static String | getSimpleProperty(Object bean, String name) | protected static void | invokeSetter(Object target, String propName, String key, int index, Object newValue) | public static void | setApplyLocalized(boolean newApplyLocalized) | public static void | setDefaultLocale(Locale locale) | public static void | setProperty(Object bean, String name, Object value) | public static void | setProperty(Object bean, String name, Object value, String pattern) |
convert | protected static Object convert(Class type, int index, Object value, String pattern)(Code) | | Convert the specified value to the required type using the
specified conversion pattern.
For more details see LocaleBeanUtilsBean
Parameters: type - The Java type of target property Parameters: index - The indexed subscript value (if any) Parameters: value - The value to be converted Parameters: pattern - The conversion pattern The converted value See Also: LocaleBeanUtilsBean.convert(ClassintObjectString) |
convert | protected static Object convert(Class type, int index, Object value)(Code) | | Convert the specified value to the required type.
For more details see LocaleBeanUtilsBean
Parameters: type - The Java type of target property Parameters: index - The indexed subscript value (if any) Parameters: value - The value to be converted The converted value See Also: LocaleBeanUtilsBean.convert(ClassintObject) |
getApplyLocalized | public static boolean getApplyLocalized()(Code) | | Gets whether the pattern is localized or not.
For more details see LocaleBeanUtilsBean
true if pattern is localized,otherwise false See Also: LocaleBeanUtilsBean.getApplyLocalized |
setApplyLocalized | public static void setApplyLocalized(boolean newApplyLocalized)(Code) | | Sets whether the pattern is localized or not.
For more details see LocaleBeanUtilsBean
Parameters: newApplyLocalized - true if pattern is localized,otherwise false See Also: LocaleBeanUtilsBean.setApplyLocalized(boolean) |
Methods inherited from org.apache.commons.beanutils.BeanUtils | public static Object cloneBean(Object bean) throws IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static void copyProperties(Object dest, Object orig) throws IllegalAccessException, InvocationTargetException(Code)(Java Doc) public static void copyProperty(Object bean, String name, Object value) throws IllegalAccessException, InvocationTargetException(Code)(Java Doc) public static Map describe(Object bean) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static String[] getArrayProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static int getDebug()(Code)(Java Doc) public static String getIndexedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static String getIndexedProperty(Object bean, String name, int index) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static String getMappedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static String getMappedProperty(Object bean, String name, String key) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static String getNestedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static String getProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static String getSimpleProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)(Java Doc) public static boolean initCause(Throwable throwable, Throwable cause)(Code)(Java Doc) public static void populate(Object bean, Map properties) throws IllegalAccessException, InvocationTargetException(Code)(Java Doc) public static void setDebug(int newDebug)(Code)(Java Doc) public static void setProperty(Object bean, String name, Object value) throws IllegalAccessException, InvocationTargetException(Code)(Java Doc)
|
|
|