Package org.apache.axis.utils
Class BeanUtils
- java.lang.Object
-
- org.apache.axis.utils.BeanUtils
-
public class BeanUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BeanUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BeanPropertyDescriptor
getAnyContentPD(java.lang.Class javaType)
static java.util.Vector
getBeanAttributes(java.lang.Class javaType, TypeDesc typeDesc)
Return a list of properties in the bean which should be attributesstatic BeanPropertyDescriptor[]
getPd(java.lang.Class javaType)
Create a BeanPropertyDescriptor array for the indicated class.static BeanPropertyDescriptor[]
getPd(java.lang.Class javaType, TypeDesc typeDesc)
Create a BeanPropertyDescriptor array for the indicated class.static BeanPropertyDescriptor
getSpecificPD(java.beans.PropertyDescriptor[] pds, java.lang.String name)
static BeanPropertyDescriptor
getSpecificPD(BeanPropertyDescriptor[] pds, java.lang.String name)
static BeanPropertyDescriptor[]
processPropertyDescriptors(java.beans.PropertyDescriptor[] rawPd, java.lang.Class cls)
This method attempts to sort the property descriptors using the typeDesc and order defined in the class.static BeanPropertyDescriptor[]
processPropertyDescriptors(java.beans.PropertyDescriptor[] rawPd, java.lang.Class cls, TypeDesc typeDesc)
-
-
-
Method Detail
-
getPd
public static BeanPropertyDescriptor[] getPd(java.lang.Class javaType)
Create a BeanPropertyDescriptor array for the indicated class.- Parameters:
javaType
-- Returns:
- an ordered array of properties
-
getPd
public static BeanPropertyDescriptor[] getPd(java.lang.Class javaType, TypeDesc typeDesc)
Create a BeanPropertyDescriptor array for the indicated class.- Parameters:
javaType
-typeDesc
-- Returns:
- an ordered array of properties
-
getBeanAttributes
public static java.util.Vector getBeanAttributes(java.lang.Class javaType, TypeDesc typeDesc)
Return a list of properties in the bean which should be attributes
-
processPropertyDescriptors
public static BeanPropertyDescriptor[] processPropertyDescriptors(java.beans.PropertyDescriptor[] rawPd, java.lang.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(java.beans.PropertyDescriptor[] rawPd, java.lang.Class cls, TypeDesc typeDesc)
-
getAnyContentPD
public static BeanPropertyDescriptor getAnyContentPD(java.lang.Class javaType)
-
getSpecificPD
public static BeanPropertyDescriptor getSpecificPD(java.beans.PropertyDescriptor[] pds, java.lang.String name)
-
getSpecificPD
public static BeanPropertyDescriptor getSpecificPD(BeanPropertyDescriptor[] pds, java.lang.String name)
-
-