org.apache.axis.utils

Class 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

FieldPropertyDescriptor(String _name, Field _field)
Construct a BPD with a field Both must be set

Method Summary

Object
get(Object obj)
Get the property value
Object
get(Object obj, int i)
Get an indexed property
Class
getActualType()
Field
getField()
String
getName()
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, Object newValue)
Set the property value
void
set(Object obj, int i, Object newValue)
Set an indexed property value

Methods inherited from class org.apache.axis.utils.BeanPropertyDescriptor

get, get, getActualType, getName, getType, growArrayToSize, isArray, isIndexed, isIndexedOrArray, isReadable, isWriteable, set, set

Constructor Details

FieldPropertyDescriptor

public FieldPropertyDescriptor(String _name,
                               Field _field)
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

get

public Object get(Object obj)
            throws InvocationTargetException,
                   IllegalAccessException
Get the property value
Overrides:
get in interface BeanPropertyDescriptor

Parameters:
obj - is the object

Returns:
the entire propery value


get

public Object get(Object obj,
                  int i)
            throws InvocationTargetException,
                   IllegalAccessException
Get an indexed property
Overrides:
get in interface BeanPropertyDescriptor

Parameters:
obj - is the object
i - the index

Returns:
the object at the indicated index


getActualType

public Class getActualType()
Overrides:
getActualType in interface BeanPropertyDescriptor


getField

public Field getField()


getName

public String getName()
Overrides:
getName in interface BeanPropertyDescriptor


getType

public Class getType()
Get the type of a property
Overrides:
getType in interface BeanPropertyDescriptor

Returns:
the type of the property


isIndexed

public boolean isIndexed()
Query if property is indexed. Indexed properties require valid setters/getters
Overrides:
isIndexed in interface BeanPropertyDescriptor

Returns:
true if indexed methods exist


isReadable

public boolean isReadable()
Query if property is readable
Overrides:
isReadable in interface BeanPropertyDescriptor

Returns:
true if readable


isWriteable

public boolean isWriteable()
Query if property is writeable
Overrides:
isWriteable in interface BeanPropertyDescriptor

Returns:
true if writeable


set

public void set(Object obj,
                Object newValue)
            throws InvocationTargetException,
                   IllegalAccessException
Set the property value
Overrides:
set in interface BeanPropertyDescriptor

Parameters:
obj - is the object
newValue - is the new value


set

public void set(Object obj,
                int i,
                Object newValue)
            throws InvocationTargetException,
                   IllegalAccessException
Set an indexed property value
Overrides:
set in interface BeanPropertyDescriptor

Parameters:
obj - is the object
i - the index
newValue - is the new value


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.