Package org.apache.axis.utils
Class FieldPropertyDescriptor
java.lang.Object
org.apache.axis.utils.BeanPropertyDescriptor
org.apache.axis.utils.FieldPropertyDescriptor
- Author:
- Glen Daniels (gdaniels@apache.org)
-
Field Summary
Fields inherited from class org.apache.axis.utils.BeanPropertyDescriptor
log, myPD, noArgs -
Constructor Summary
ConstructorsConstructorDescriptionFieldPropertyDescriptor(String _name, Field _field) Construct a BPD with a field Both must be set -
Method Summary
Modifier and TypeMethodDescriptionGet the property valueGet an indexed propertygetField()getName()Get our property name.getType()Get the type of a propertybooleanQuery if property is indexed.booleanQuery if property is readablebooleanQuery if property is writeablevoidSet an indexed property valuevoidSet the property valueMethods inherited from class org.apache.axis.utils.BeanPropertyDescriptor
growArrayToSize, isArray, isIndexedOrArray
-
Constructor Details
-
FieldPropertyDescriptor
Construct a BPD with a field Both must be set- Parameters:
_name- is the name of the property_field- is the name of the public instance field
-
-
Method Details
-
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
Get the property value- Overrides:
getin classBeanPropertyDescriptor- Parameters:
obj- is the object- Returns:
- the entire propery value
- Throws:
InvocationTargetExceptionIllegalAccessException
-
set
public void set(Object obj, Object newValue) throws InvocationTargetException, IllegalAccessException Set the property value- Overrides:
setin classBeanPropertyDescriptor- Parameters:
obj- is the objectnewValue- is the new value- Throws:
InvocationTargetExceptionIllegalAccessException
-
get
Get an indexed property- Overrides:
getin classBeanPropertyDescriptor- Parameters:
obj- is the objecti- the index- Returns:
- the object at the indicated index
- Throws:
InvocationTargetExceptionIllegalAccessException
-
set
public void set(Object obj, int i, Object newValue) throws InvocationTargetException, IllegalAccessException Set an indexed property value- Overrides:
setin classBeanPropertyDescriptor- Parameters:
obj- is the objecti- the indexnewValue- is the new value- Throws:
InvocationTargetExceptionIllegalAccessException
-
getType
Get the type of a property- Overrides:
getTypein classBeanPropertyDescriptor- Returns:
- the type of the property
-
getActualType
- Overrides:
getActualTypein classBeanPropertyDescriptor
-
getField
-