org.apache.axis.utils
Class BeanUtils

java.lang.Object
  |
  +--org.apache.axis.utils.BeanUtils

public class BeanUtils
extends java.lang.Object


Field Summary
static java.lang.Object[] noArgs
           
 
Constructor Summary
BeanUtils()
           
 
Method Summary
static java.util.Vector getBeanAttributes(java.lang.Class javaType, TypeDesc typeDesc)
          Return a list of properties in the bean which should be attributes
static BeanPropertyDescriptor[] getPd(java.lang.Class javaType)
          Create a BeanPropertyDescriptor array for the indicated class.
static BeanPropertyDescriptor[] processPropertyDescriptors(java.beans.PropertyDescriptor[] rawPd, java.lang.Class cls)
          This method attempts to sort the property descriptors to match the order defined in the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noArgs

public static final java.lang.Object[] noArgs
Constructor Detail

BeanUtils

public BeanUtils()
Method Detail

getPd

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

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 to match the order defined in the class. This is necessary to support xsd:sequence processing, which means that the serialized order of properties must match the xml element order. (This method assumes that the order of the set methods matches the xml element order...the emitter will always order the set methods according to the xml order.) 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.


Copyright © 2001 Apache XML Project. All Rights Reserved.