public class BeanPropertyDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
protected java.beans.PropertyDescriptor |
myPD |
protected static java.lang.Object[] |
noArgs |
Modifier | Constructor and Description |
---|---|
protected |
BeanPropertyDescriptor()
Protected constructor for use by our children
|
|
BeanPropertyDescriptor(java.beans.PropertyDescriptor pd)
Constructor (takes a PropertyDescriptor)
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object obj)
Get the property value
|
java.lang.Object |
get(java.lang.Object obj,
int i)
Get an indexed property
|
java.lang.Class |
getActualType() |
java.lang.String |
getName()
Get our property name.
|
java.lang.Class |
getType()
Get the type of a property
|
protected void |
growArrayToSize(java.lang.Object obj,
java.lang.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(java.lang.Object obj,
int i,
java.lang.Object newValue)
Set an indexed property value
|
void |
set(java.lang.Object obj,
java.lang.Object newValue)
Set the property value
|
protected static org.apache.commons.logging.Log log
protected java.beans.PropertyDescriptor myPD
protected static final java.lang.Object[] noArgs
public BeanPropertyDescriptor(java.beans.PropertyDescriptor pd)
pd
- protected BeanPropertyDescriptor()
public java.lang.String getName()
public boolean isReadable()
public boolean isWriteable()
public boolean isIndexed()
public boolean isIndexedOrArray()
public boolean isArray()
public java.lang.Object get(java.lang.Object obj) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
obj
- is the objectjava.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public void set(java.lang.Object obj, java.lang.Object newValue) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
obj
- is the objectnewValue
- is the new valuejava.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public java.lang.Object get(java.lang.Object obj, int i) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
obj
- is the objecti
- the indexjava.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public void set(java.lang.Object obj, int i, java.lang.Object newValue) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
obj
- is the objecti
- the indexnewValue
- is the new valuejava.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected void growArrayToSize(java.lang.Object obj, java.lang.Class componentType, int i) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
obj
- componentType
- i
- java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public java.lang.Class getType()
public java.lang.Class getActualType()
Copyright © 2005 Apache Web Services Project. All Rights Reserved.