Package org.apache.axis2.jaxws.utility
Class PropertyDescriptorPlus
java.lang.Object
org.apache.axis2.jaxws.utility.PropertyDescriptorPlus
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
-
Method Details
-
getXmlName
- Returns:
- xmlname
-
getXmlQName
-
getPropertyType
- Returns:
- property type
-
getPropertyName
- Returns:
- property name
-
get
Get the object- Parameters:
targetBean-- Returns:
- Object for this property or null
- Throws:
InvocationTargetExceptionIllegalAccessException
-
set
public void set(Object targetBean, Object propValue, Class dclClass) throws InvocationTargetException, IllegalAccessException, JAXBWrapperException Set the object- Parameters:
targetBean-propValue-- Throws:
InvocationTargetExceptionIllegalAccessExceptionJAXBWrapperException
-
toString
-