Package org.apache.axis2.jaxws.utility
Class PropertyDescriptorPlus
- java.lang.Object
-
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(Object targetBean)Get the objectStringgetPropertyName()ClassgetPropertyType()StringgetXmlName()QNamegetXmlQName()voidset(Object targetBean, Object propValue, Class dclClass)Set the objectStringtoString()
-
-
-
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:
InvocationTargetExceptionIllegalAccessException
-
set
public void set(Object targetBean, Object propValue, Class dclClass) throws InvocationTargetException, IllegalAccessException, JAXBWrapperException
Set the object- Parameters:
targetBean-propValue-- Throws:
InvocationTargetExceptionIllegalAccessExceptionJAXBWrapperException
-
-