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, isIndexedOrArray
public 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 Object get(Object obj) throws InvocationTargetException, IllegalAccessException
get
in class BeanPropertyDescriptor
obj
- is the objectInvocationTargetException
IllegalAccessException
public void set(Object obj, Object newValue) throws InvocationTargetException, IllegalAccessException
set
in class BeanPropertyDescriptor
obj
- is the objectnewValue
- is the new valueInvocationTargetException
IllegalAccessException
public Object get(Object obj, int i) throws InvocationTargetException, IllegalAccessException
get
in class BeanPropertyDescriptor
obj
- is the objecti
- the indexInvocationTargetException
IllegalAccessException
public void set(Object obj, int i, Object newValue) throws InvocationTargetException, IllegalAccessException
set
in class BeanPropertyDescriptor
obj
- is the objecti
- the indexnewValue
- is the new valueInvocationTargetException
IllegalAccessException
public Class getType()
getType
in class BeanPropertyDescriptor
public Class getActualType()
getActualType
in class BeanPropertyDescriptor
public Field getField()
Copyright © The Apache Software Foundation. All Rights Reserved.