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 Object
get(Object targetBean)
Get the objectString
getPropertyName()
Class
getPropertyType()
String
getXmlName()
QName
getXmlQName()
void
set(Object targetBean, Object propValue, Class dclClass)
Set the objectString
toString()
-
-
-
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
-
-