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
obj
- is the object
- the entire propery value
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()
getType
public Class getType()
Get the type of a property
- getType in interface BeanPropertyDescriptor
- the type of the property
isIndexed
public boolean isIndexed()
Query if property is indexed.
Indexed properties require valid setters/getters
- isIndexed in interface BeanPropertyDescriptor
- true if indexed methods exist
isReadable
public boolean isReadable()
Query if property is readable
- isReadable in interface BeanPropertyDescriptor
- true if readable
isWriteable
public boolean isWriteable()
Query if property is writeable
- isWriteable in interface BeanPropertyDescriptor
- true if writeable
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 B) 2005 Apache Web Services Project. All Rights Reserved.