public class FieldPropertyDescriptor extends BeanPropertyDescriptor
log, myPD, noArgs| Constructor and Description |
|---|
FieldPropertyDescriptor(String _name,
Field _field)
Construct a BPD with a field
Both must be set
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object obj)
Get the property value
|
Object |
get(Object obj,
int i)
Get an indexed property
|
Class |
getActualType() |
Field |
getField() |
String |
getName()
Get our property name.
|
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,
int i,
Object newValue)
Set an indexed property value
|
void |
set(Object obj,
Object newValue)
Set the property value
|
growArrayToSize, isArray, isIndexedOrArraypublic String getName()
BeanPropertyDescriptorgetName in class BeanPropertyDescriptorpublic boolean isReadable()
isReadable in class BeanPropertyDescriptorpublic boolean isWriteable()
isWriteable in class BeanPropertyDescriptorpublic boolean isIndexed()
isIndexed in class BeanPropertyDescriptorpublic Object get(Object obj) throws InvocationTargetException, IllegalAccessException
get in class BeanPropertyDescriptorobj - is the objectInvocationTargetExceptionIllegalAccessExceptionpublic void set(Object obj, Object newValue) throws InvocationTargetException, IllegalAccessException
set in class BeanPropertyDescriptorobj - is the objectnewValue - is the new valueInvocationTargetExceptionIllegalAccessExceptionpublic Object get(Object obj, int i) throws InvocationTargetException, IllegalAccessException
get in class BeanPropertyDescriptorobj - is the objecti - the indexInvocationTargetExceptionIllegalAccessExceptionpublic void set(Object obj, int i, Object newValue) throws InvocationTargetException, IllegalAccessException
set in class BeanPropertyDescriptorobj - is the objecti - the indexnewValue - is the new valueInvocationTargetExceptionIllegalAccessExceptionpublic Class getType()
getType in class BeanPropertyDescriptorpublic Class getActualType()
getActualType in class BeanPropertyDescriptorpublic Field getField()
Copyright © The Apache Software Foundation. All Rights Reserved.