org.apache.axis.utils

Class BeanUtils


public class BeanUtils
extends java.lang.Object

Field Summary

protected static Log
log
static Object[]
noArgs

Method Summary

static BeanPropertyDescriptor
getAnyContentPD(Class javaType)
static Vector
getBeanAttributes(Class javaType, TypeDesc typeDesc)
Return a list of properties in the bean which should be attributes
static BeanPropertyDescriptor[]
getPd(Class javaType)
Create a BeanPropertyDescriptor array for the indicated class.
static BeanPropertyDescriptor[]
getPd(Class javaType, TypeDesc typeDesc)
Create a BeanPropertyDescriptor array for the indicated class.
static BeanPropertyDescriptor
getSpecificPD(PropertyDescriptor[] pds, String name)
static BeanPropertyDescriptor
getSpecificPD(BeanPropertyDescriptor[] pds, String name)
static BeanPropertyDescriptor[]
processPropertyDescriptors(PropertyDescriptor[] rawPd, Class cls)
This method attempts to sort the property descriptors using the typeDesc and order defined in the class.
static BeanPropertyDescriptor[]
processPropertyDescriptors(PropertyDescriptor[] rawPd, Class cls, TypeDesc typeDesc)

Field Details

log

protected static Log log


noArgs

public static final Object[] noArgs

Method Details

getAnyContentPD

public static BeanPropertyDescriptor getAnyContentPD(Class javaType)


getBeanAttributes

public static Vector getBeanAttributes(Class javaType,
                                       TypeDesc typeDesc)
Return a list of properties in the bean which should be attributes


getPd

public static BeanPropertyDescriptor[] getPd(Class javaType)
Create a BeanPropertyDescriptor array for the indicated class.

Parameters:
javaType -

Returns:
an ordered array of properties


getPd

public static BeanPropertyDescriptor[] getPd(Class javaType,
                                             TypeDesc typeDesc)
Create a BeanPropertyDescriptor array for the indicated class.

Parameters:
javaType -
typeDesc -

Returns:
an ordered array of properties


getSpecificPD

public static BeanPropertyDescriptor getSpecificPD(PropertyDescriptor[] pds,
                                                   String name)


getSpecificPD

public static BeanPropertyDescriptor getSpecificPD(BeanPropertyDescriptor[] pds,
                                                   String name)


processPropertyDescriptors

public static BeanPropertyDescriptor[] processPropertyDescriptors(PropertyDescriptor[] rawPd,
                                                                  Class cls)
This method attempts to sort the property descriptors using the typeDesc and order defined in the class. This routine also looks for set(i, type) and get(i) methods and adjusts the property to use these methods instead. These methods are generated by the emitter for "collection" of properties (i.e. maxOccurs="unbounded" on an element). JAX-RPC is silent on this issue, but web services depend on this kind of behaviour. The method signatures were chosen to match bean indexed properties.


processPropertyDescriptors

public static BeanPropertyDescriptor[] processPropertyDescriptors(PropertyDescriptor[] rawPd,
                                                                  Class cls,
                                                                  TypeDesc typeDesc)


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