站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

FieldPropertyDescriptor (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.utils
Class FieldPropertyDescriptor

java.lang.Object
  extended byorg.apache.axis.utils.BeanPropertyDescriptor
      extended byorg.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
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
 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
 
Methods inherited from class org.apache.axis.utils.BeanPropertyDescriptor
growArrayToSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getName

public String getName()
Description copied from class: BeanPropertyDescriptor
Get our property name.

Overrides:
getName in class BeanPropertyDescriptor

isReadable

public boolean isReadable()
Query if property is readable

Overrides:
isReadable in class BeanPropertyDescriptor
Returns:
true if readable

isWriteable

public boolean isWriteable()
Query if property is writeable

Overrides:
isWriteable in class BeanPropertyDescriptor
Returns:
true if writeable

isIndexed

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

Overrides:
isIndexed in class BeanPropertyDescriptor
Returns:
true if indexed methods exist

get

public Object get(Object obj)
           throws InvocationTargetException,
                  IllegalAccessException
Get the property value

Overrides:
get in class BeanPropertyDescriptor
Parameters:
obj - is the object
Returns:
the entire propery value
Throws:
InvocationTargetException
IllegalAccessException

set

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

Overrides:
set in class BeanPropertyDescriptor
Parameters:
obj - is the object
newValue - is the new value
Throws:
InvocationTargetException
IllegalAccessException

get

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

Overrides:
get in class BeanPropertyDescriptor
Parameters:
obj - is the object
i - the index
Returns:
the object at the indicated index
Throws:
InvocationTargetException
IllegalAccessException

set

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

Overrides:
set in class BeanPropertyDescriptor
Parameters:
obj - is the object
i - the index
newValue - is the new value
Throws:
InvocationTargetException
IllegalAccessException

getType

public Class getType()
Get the type of a property

Overrides:
getType in class BeanPropertyDescriptor
Returns:
the type of the property


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.