public class FieldPropertyDescriptor extends BeanPropertyDescriptor
log, myPD, noArgs
Constructor and Description |
---|
FieldPropertyDescriptor(java.lang.String _name,
java.lang.reflect.Field _field)
Construct a BPD with a field
Both must be set
|
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.reflect.Field |
getField() |
java.lang.String |
getName()
Get our property name.
|
java.lang.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(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
|
growArrayToSize, isArray, isIndexedOrArray
public FieldPropertyDescriptor(java.lang.String _name, java.lang.reflect.Field _field)
_name
- is the name of the property_field
- is the name of the public instance fieldpublic java.lang.String getName()
BeanPropertyDescriptor
getName
in class BeanPropertyDescriptor
public boolean isReadable()
isReadable
in class BeanPropertyDescriptor
public boolean isWriteable()
isWriteable
in class BeanPropertyDescriptor
public boolean isIndexed()
isIndexed
in class BeanPropertyDescriptor
public java.lang.Object get(java.lang.Object obj) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
get
in class BeanPropertyDescriptor
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
set
in class BeanPropertyDescriptor
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
get
in class BeanPropertyDescriptor
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
set
in class BeanPropertyDescriptor
obj
- is the objecti
- the indexnewValue
- is the new valuejava.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public java.lang.Class getType()
getType
in class BeanPropertyDescriptor
public java.lang.Class getActualType()
getActualType
in class BeanPropertyDescriptor
public java.lang.reflect.Field getField()
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.