Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jboss.net.axis.server
Class EntityBeanDeserializer.BeanPropertyDescriptor  view EntityBeanDeserializer.BeanPropertyDescriptor download EntityBeanDeserializer.BeanPropertyDescriptor.java

java.lang.Object
  extended byorg.jboss.net.axis.server.EntityBeanDeserializer.BeanPropertyDescriptor
Enclosing class:
EntityBeanDeserializer

static class EntityBeanDeserializer.BeanPropertyDescriptor
extends java.lang.Object


Field Summary
private  java.lang.reflect.Method getter
           
private  java.lang.String name
           
private  java.lang.reflect.Method setter
           
 
Constructor Summary
EntityBeanDeserializer.BeanPropertyDescriptor(java.lang.String _name, java.lang.reflect.Method _getter, java.lang.reflect.Method _setter)
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.reflect.Method getReadMethod()
           
 java.lang.Class getType()
           
 java.lang.reflect.Method getWriteMethod()
           
(package private) static EntityBeanDeserializer.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

name

private java.lang.String name

getter

private java.lang.reflect.Method getter

setter

private java.lang.reflect.Method setter
Constructor Detail

EntityBeanDeserializer.BeanPropertyDescriptor

public EntityBeanDeserializer.BeanPropertyDescriptor(java.lang.String _name,
                                                     java.lang.reflect.Method _getter,
                                                     java.lang.reflect.Method _setter)
Method Detail

getReadMethod

public java.lang.reflect.Method getReadMethod()

getWriteMethod

public java.lang.reflect.Method getWriteMethod()

getName

public java.lang.String getName()

getType

public java.lang.Class getType()

processPropertyDescriptors

static EntityBeanDeserializer.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.