org.apache.axis.utils
Class FieldPropertyDescriptor
public class FieldPropertyDescriptor
- Glen Daniels (gdaniels@apache.org)
Object | get(Object obj)- Get the property value
|
Object | get(Object obj, int i)- Get an indexed property
|
Class | getActualType()
|
Field | getField()
|
String | getName()
|
Class | getType()- Get the type of a property
|
boolean | isIndexed()- Query if property is indexed.
|
boolean | isReadable()- Query if property is readable
|
boolean | isWriteable()- Query if property is writeable
|
void | set(Object obj, Object newValue)- Set the property value
|
void | set(Object obj, int i, Object newValue)- Set an indexed property value
|
get, get, getActualType, getName, getType, growArrayToSize, isArray, isIndexed, isIndexedOrArray, isReadable, isWriteable, set, set |
FieldPropertyDescriptor
public FieldPropertyDescriptor(String _name,
Field _field) Construct a BPD with a field
Both must be set
_name - is the name of the property_field - is the name of the public instance field
get
public Object get(Object obj)
throws InvocationTargetException,
IllegalAccessException Get the property value
- get in interface BeanPropertyDescriptor
get
public Object get(Object obj,
int i)
throws InvocationTargetException,
IllegalAccessException Get an indexed property
- get in interface BeanPropertyDescriptor
obj - is the objecti - the index
- the object at the indicated index
getField
public Field getField()
isIndexed
public boolean isIndexed()
Query if property is indexed.
Indexed properties require valid setters/getters
- isIndexed in interface BeanPropertyDescriptor
- true if indexed methods exist
set
public void set(Object obj,
Object newValue)
throws InvocationTargetException,
IllegalAccessException Set the property value
- set in interface BeanPropertyDescriptor
obj - is the objectnewValue - is the new value
set
public void set(Object obj,
int i,
Object newValue)
throws InvocationTargetException,
IllegalAccessException Set an indexed property value
- set in interface BeanPropertyDescriptor
obj - is the objecti - the indexnewValue - is the new value
Copyright © 2005 Apache Web Services Project. All Rights Reserved.