Package org.apache.axis.utils
Class FieldPropertyDescriptor
- java.lang.Object
-
- org.apache.axis.utils.BeanPropertyDescriptor
-
- org.apache.axis.utils.FieldPropertyDescriptor
-
public class FieldPropertyDescriptor extends BeanPropertyDescriptor
- Author:
- Glen Daniels (gdaniels@apache.org)
-
-
Field Summary
-
Fields inherited from class org.apache.axis.utils.BeanPropertyDescriptor
log, myPD, noArgs
-
-
Constructor Summary
Constructors Constructor Description FieldPropertyDescriptor(java.lang.String _name, java.lang.reflect.Field _field)Construct a BPD with a field Both must be set
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Object obj)Get the property valuejava.lang.Objectget(java.lang.Object obj, int i)Get an indexed propertyjava.lang.ClassgetActualType()java.lang.reflect.FieldgetField()java.lang.StringgetName()Get our property name.java.lang.ClassgetType()Get the type of a propertybooleanisIndexed()Query if property is indexed.booleanisReadable()Query if property is readablebooleanisWriteable()Query if property is writeablevoidset(java.lang.Object obj, int i, java.lang.Object newValue)Set an indexed property valuevoidset(java.lang.Object obj, java.lang.Object newValue)Set the property value-
Methods inherited from class org.apache.axis.utils.BeanPropertyDescriptor
growArrayToSize, isArray, isIndexedOrArray
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:BeanPropertyDescriptorGet our property name.- Overrides:
getNamein classBeanPropertyDescriptor
-
isReadable
public boolean isReadable()
Query if property is readable- Overrides:
isReadablein classBeanPropertyDescriptor- Returns:
- true if readable
-
isWriteable
public boolean isWriteable()
Query if property is writeable- Overrides:
isWriteablein classBeanPropertyDescriptor- Returns:
- true if writeable
-
isIndexed
public boolean isIndexed()
Query if property is indexed. Indexed properties require valid setters/getters- Overrides:
isIndexedin classBeanPropertyDescriptor- Returns:
- true if indexed methods exist
-
get
public java.lang.Object get(java.lang.Object obj) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessExceptionGet the property value- Overrides:
getin classBeanPropertyDescriptor- Parameters:
obj- is the object- Returns:
- the entire propery value
- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessException
-
set
public void set(java.lang.Object obj, java.lang.Object newValue) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessExceptionSet the property value- Overrides:
setin classBeanPropertyDescriptor- Parameters:
obj- is the objectnewValue- is the new value- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessException
-
get
public java.lang.Object get(java.lang.Object obj, int i) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessExceptionGet an indexed property- Overrides:
getin classBeanPropertyDescriptor- Parameters:
obj- is the objecti- the index- Returns:
- the object at the indicated index
- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessException
-
set
public void set(java.lang.Object obj, int i, java.lang.Object newValue) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessExceptionSet an indexed property value- Overrides:
setin classBeanPropertyDescriptor- Parameters:
obj- is the objecti- the indexnewValue- is the new value- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessException
-
getType
public java.lang.Class getType()
Get the type of a property- Overrides:
getTypein classBeanPropertyDescriptor- Returns:
- the type of the property
-
getActualType
public java.lang.Class getActualType()
- Overrides:
getActualTypein classBeanPropertyDescriptor
-
getField
public java.lang.reflect.Field getField()
-
-