@Deprecated public class PojoPropertyUtilsBean extends org.apache.commons.beanutils.PropertyUtilsBean
Modifier and Type | Class and Description |
---|---|
static interface |
PojoPropertyUtilsBean.CollectionItemClassProvider
Deprecated.
Thin interface for determining the appropriate item class for a collection property
|
static class |
PojoPropertyUtilsBean.LegacyDataAdapterProvider
Deprecated.
CollectionItemClassProvider backed by the legacy data adapter
|
static class |
PojoPropertyUtilsBean.PersistenceStructureServiceProvider
Deprecated.
CollectionItemClassProvider backed by OJB metadata
|
Modifier and Type | Field and Description |
---|---|
protected static PojoPropertyUtilsBean.CollectionItemClassProvider |
collectionItemClassProvider
Deprecated.
|
static org.apache.log4j.Logger |
LOG
Deprecated.
|
Constructor and Description |
---|
PojoPropertyUtilsBean()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
fastGetNestedProperty(Object obj,
String propertyName)
Deprecated.
|
protected Object |
generateIndexedProperty(Object nestedBean,
String property,
int index,
IndexOutOfBoundsException ioobe)
Deprecated.
|
Object |
getIndexedProperty(Object bean,
String name,
int index)
Deprecated.
Customization of superclass getNestedProperty which transparently creates indexed property items
|
Object |
getNestedProperty(Object arg0,
String arg1)
Deprecated.
begin Kuali Foundation modification
removed comments and @
|
Object |
getProperty(Object bean,
String key)
Deprecated.
|
PropertyDescriptor |
getPropertyDescriptor(Object bean,
String name)
Deprecated.
Retrieve the property descriptor for the specified property of the specified bean, or return
null if there is
no such descriptor. |
Class |
getPropertyType(Object bean,
String name)
Deprecated.
|
boolean |
isWriteable(Object bean,
String name)
Deprecated.
|
void |
setNestedProperty(Object bean,
String name,
Object value)
Deprecated.
begin Kuali Foundation modification
Set the value of the (possibly nested) property of the specified name, for the specified bean, with no type conversions.
|
void |
setSimpleProperty(Object bean,
String name,
Object value)
Deprecated.
Set the value of the specified simple property of the specified bean,
with no type conversions.
|
clearDescriptors, copyProperties, describe, getIndexedProperty, getInstance, getMappedProperty, getMappedProperty, getMappedPropertyDescriptors, getMappedPropertyDescriptors, getPropertyDescriptors, getPropertyDescriptors, getPropertyEditorClass, getPropertyOfMapBean, getReadMethod, getResolver, getSimpleProperty, getWriteMethod, isReadable, setIndexedProperty, setIndexedProperty, setMappedProperty, setMappedProperty, setProperty, setPropertyOfMapBean, setResolver
public static final org.apache.log4j.Logger LOG
protected static PojoPropertyUtilsBean.CollectionItemClassProvider collectionItemClassProvider
public PojoPropertyUtilsBean()
public Object getProperty(Object bean, String key) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getProperty
in class org.apache.commons.beanutils.PropertyUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public Object fastGetNestedProperty(Object obj, String propertyName) throws IntrospectionException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
public boolean isWriteable(Object bean, String name)
isWriteable
in class org.apache.commons.beanutils.PropertyUtilsBean
public Object getNestedProperty(Object arg0, String arg1) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getNestedProperty
in class org.apache.commons.beanutils.PropertyUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
PropertyUtilsBean.getNestedProperty(java.lang.Object, java.lang.String)
public Object getIndexedProperty(Object bean, String name, int index) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getIndexedProperty
in class org.apache.commons.beanutils.PropertyUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
protected Object generateIndexedProperty(Object nestedBean, String property, int index, IndexOutOfBoundsException ioobe) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
public void setNestedProperty(Object bean, String name, Object value) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
setNestedProperty
in class org.apache.commons.beanutils.PropertyUtilsBean
bean
- Bean whose property is to be modifiedname
- Possibly nested name of the property to be modifiedvalue
- Value to which the property is to be setIllegalAccessException
- if the caller does not have access to the property accessor methodIllegalArgumentException
- if bean
or name
is nullIllegalArgumentException
- if a nested reference to a property returns nullInvocationTargetException
- if the property accessor method throws an exceptionNoSuchMethodException
- if an accessor method for this propety cannot be found
end Kuali Foundation modificationpublic PropertyDescriptor getPropertyDescriptor(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
Retrieve the property descriptor for the specified property of the specified bean, or return null
if there is
no such descriptor. This method resolves indexed and nested property references in the same manner as other methods in this
class, except that if the last (or only) name element is indexed, the descriptor for the last resolved property itself is
returned.
FIXME - Does not work with DynaBeans.
getPropertyDescriptor
in class org.apache.commons.beanutils.PropertyUtilsBean
bean
- Bean for which a property descriptor is requestedname
- Possibly indexed and/or nested name of the property for which a property descriptor is requestedIllegalAccessException
- if the caller does not have access to the property accessor methodIllegalArgumentException
- if bean
or name
is nullIllegalArgumentException
- if a nested reference to a property returns nullInvocationTargetException
- if the property accessor method throws an exceptionNoSuchMethodException
- if an accessor method for this propety cannot be foundpublic void setSimpleProperty(Object bean, String name, Object value) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
setSimpleProperty
in class org.apache.commons.beanutils.PropertyUtilsBean
bean
- Bean whose property is to be modifiedname
- Name of the property to be modifiedvalue
- Value to which the property should be setIllegalAccessException
- if the caller does not have
access to the property accessor methodIllegalArgumentException
- if bean
or
name
is nullIllegalArgumentException
- if the property name is
nested or indexedInvocationTargetException
- if the property accessor method
throws an exceptionNoSuchMethodException
- if an accessor method for this
propety cannot be foundpublic Class getPropertyType(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getPropertyType
in class org.apache.commons.beanutils.PropertyUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.