org.apache.axis.utils

Class FieldPropertyDescriptor

public class FieldPropertyDescriptor extends BeanPropertyDescriptor

Author: Glen Daniels (gdaniels@apache.org)

Constructor Summary
FieldPropertyDescriptor(String _name, Field _field)
Construct a BPD with a field Both must be set
Method Summary
Objectget(Object obj)
Get the property value
Objectget(Object obj, int i)
Get an indexed property
ClassgetActualType()
FieldgetField()
StringgetName()
ClassgetType()
Get the type of a property
booleanisIndexed()
Query if property is indexed.
booleanisReadable()
Query if property is readable
booleanisWriteable()
Query if property is writeable
voidset(Object obj, Object newValue)
Set the property value
voidset(Object obj, int i, Object newValue)
Set an indexed property value

Constructor Detail

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 Detail

get

public Object get(Object obj)
Get the property value

Parameters: obj is the object

Returns: the entire propery value

get

public Object get(Object obj, int i)
Get an indexed property

Parameters: obj is the object i the index

Returns: the object at the indicated index

getActualType

public Class getActualType()

getField

public Field getField()

getName

public String getName()

getType

public Class getType()
Get the type of a property

Returns: the type of the property

isIndexed

public boolean isIndexed()
Query if property is indexed. Indexed properties require valid setters/getters

Returns: true if indexed methods exist

isReadable

public boolean isReadable()
Query if property is readable

Returns: true if readable

isWriteable

public boolean isWriteable()
Query if property is writeable

Returns: true if writeable

set

public void set(Object obj, Object newValue)
Set the property value

Parameters: obj is the object newValue is the new value

set

public void set(Object obj, int i, Object newValue)
Set an indexed property value

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

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