org.codehaus.ivory.serialize
Class MetaBeanUtils
java.lang.Object
|
+--org.apache.axis.utils.BeanUtils
|
+--org.codehaus.ivory.serialize.MetaBeanUtils
- public class MetaBeanUtils
- extends org.apache.axis.utils.BeanUtils
- Since:
- May 21, 2003
- Author:
- Dan Diephouse
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
static java.lang.Object[] |
noArgs
|
Method Summary |
static java.util.Vector |
getBeanAttributes(java.lang.Class javaType,
org.apache.axis.description.TypeDesc typeDesc)
Return a list of properties in the bean which should be attributes |
static org.apache.axis.utils.BeanPropertyDescriptor[] |
getPd(java.lang.Class javaType)
Create a BeanPropertyDescriptor array for the indicated class. |
static org.apache.axis.utils.BeanPropertyDescriptor[] |
getPd(java.lang.Class javaType,
org.apache.axis.description.TypeDesc typeDesc)
Create a BeanPropertyDescriptor array for the indicated class. |
static org.apache.axis.utils.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 org.apache.axis.utils.BeanPropertyDescriptor[] |
processPropertyDescriptors(java.beans.PropertyDescriptor[] rawPd,
java.lang.Class cls,
org.apache.axis.description.TypeDesc typeDesc)
|
Methods inherited from class org.apache.axis.utils.BeanUtils |
getAnyContentPD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
noArgs
public static final java.lang.Object[] noArgs
log
protected static org.apache.commons.logging.Log log
MetaBeanUtils
public MetaBeanUtils()
getPd
public static org.apache.axis.utils.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 org.apache.axis.utils.BeanPropertyDescriptor[] getPd(java.lang.Class javaType,
org.apache.axis.description.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,
org.apache.axis.description.TypeDesc typeDesc)
- Return a list of properties in the bean which should be attributes
processPropertyDescriptors
public static org.apache.axis.utils.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 org.apache.axis.utils.BeanPropertyDescriptor[] processPropertyDescriptors(java.beans.PropertyDescriptor[] rawPd,
java.lang.Class cls,
org.apache.axis.description.TypeDesc typeDesc)
Copyright © -2003 Codehaus. All Rights Reserved.