org.apache.axis2.jaxws.utility
Class PropertyDescriptorPlus

java.lang.Object
  extended by org.apache.axis2.jaxws.utility.PropertyDescriptorPlus

public class PropertyDescriptorPlus
extends Object

A PropertyDescriptor provides acesss to a bean property. Values can be queried/changed using the read and writer methods of the PropertyDescriptor.

A PropertyDescriptorPlus object wraps a PropertyDescriptor and supplies enhanced set/get methods that match JAXB semantis.

For example, the set(..) method is smart enough to add lists, arrays and atomic values on JAXB beans.

The PropertyDescriptorPlus object also stores the xmlName of the property.


Method Summary
 Object get(Object targetBean)
          Get the object
 String getPropertyName()
           
 Class getPropertyType()
           
 String getXmlName()
           
 QName getXmlQName()
           
 void set(Object targetBean, Object propValue, Class dclClass)
          Set the object
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getXmlName

public String getXmlName()
Returns:
xmlname

getXmlQName

public QName getXmlQName()

getPropertyType

public Class getPropertyType()
Returns:
property type

getPropertyName

public String getPropertyName()
Returns:
property name

get

public Object get(Object targetBean)
           throws InvocationTargetException,
                  IllegalAccessException
Get the object

Parameters:
targetBean -
Returns:
Object for this property or null
Throws:
InvocationTargetException
IllegalAccessException

set

public void set(Object targetBean,
                Object propValue,
                Class dclClass)
         throws InvocationTargetException,
                IllegalAccessException,
                JAXBWrapperException
Set the object

Parameters:
targetBean -
propValue -
Throws:
InvocationTargetException
IllegalAccessException
JAXBWrapperException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.