|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.utils.BeanPropertyDescriptor
This class represents a field/property in a value type (a class with either bean-style getters/setters or public fields). It is essentially a thin wrapper around the PropertyDescriptor from the JavaBean utilities. We wrap it with this class so that we can create the subclass FieldPropertyDescriptor and access public fields (who wouldn't have PropertyDescriptors normally) via the same interface. There are also some interesting tricks where indexed properties are concerned, mostly involving the fact that we manage the arrays here rather than relying on the value type class to do it itself.
Constructor Summary | |
BeanPropertyDescriptor(java.beans.PropertyDescriptor pd)
Constructor (takes a PropertyDescriptor) |
Method Summary | |
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 |
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 |
void |
setName(java.lang.String realName)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BeanPropertyDescriptor(java.beans.PropertyDescriptor pd)
pd
- Method Detail |
public java.lang.String getName()
public void setName(java.lang.String realName)
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 object
java.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 value
java.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 index
java.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 value
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public java.lang.Class getType()
public java.lang.Class getActualType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |