public class BeanPropertyDescriptor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
protected PropertyDescriptor |
myPD |
protected static Object[] |
noArgs |
| Modifier | Constructor and Description |
|---|---|
protected |
BeanPropertyDescriptor()
Protected constructor for use by our children
|
|
BeanPropertyDescriptor(PropertyDescriptor pd)
Constructor (takes a PropertyDescriptor)
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object obj)
Get the property value
|
Object |
get(Object obj,
int i)
Get an indexed property
|
Class |
getActualType() |
String |
getName()
Get our property name.
|
Class |
getType()
Get the type of a property
|
protected void |
growArrayToSize(Object obj,
Class componentType,
int i)
Grow the array
|
boolean |
isArray()
Query if property is an array (excluded byte[]).
|
boolean |
isIndexed()
Query if property is indexed
|
boolean |
isIndexedOrArray()
Query if property is indexed or if it' an array.
|
boolean |
isReadable()
Query if property is readable
|
boolean |
isWriteable()
Query if property is writeable
|
void |
set(Object obj,
int i,
Object newValue)
Set an indexed property value
|
void |
set(Object obj,
Object newValue)
Set the property value
|
protected static org.apache.commons.logging.Log log
protected PropertyDescriptor myPD
protected static final Object[] noArgs
public BeanPropertyDescriptor(PropertyDescriptor pd)
pd - protected BeanPropertyDescriptor()
public String getName()
public boolean isReadable()
public boolean isWriteable()
public boolean isIndexed()
public boolean isIndexedOrArray()
public boolean isArray()
public Object get(Object obj) throws InvocationTargetException, IllegalAccessException
obj - is the objectInvocationTargetExceptionIllegalAccessExceptionpublic void set(Object obj, Object newValue) throws InvocationTargetException, IllegalAccessException
obj - is the objectnewValue - is the new valueInvocationTargetExceptionIllegalAccessExceptionpublic Object get(Object obj, int i) throws InvocationTargetException, IllegalAccessException
obj - is the objecti - the indexInvocationTargetExceptionIllegalAccessExceptionpublic void set(Object obj, int i, Object newValue) throws InvocationTargetException, IllegalAccessException
obj - is the objecti - the indexnewValue - is the new valueInvocationTargetExceptionIllegalAccessExceptionprotected void growArrayToSize(Object obj, Class componentType, int i) throws InvocationTargetException, IllegalAccessException
obj - componentType - i - InvocationTargetExceptionIllegalAccessExceptionpublic Class getType()
public Class getActualType()
Copyright © The Apache Software Foundation. All Rights Reserved.