|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.databinding.jaxb.JAXBPropertyDescriptor
public class JAXBPropertyDescriptor
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 | |
---|---|
int |
compareTo(JAXBPropertyDescriptor o)
|
java.lang.Object |
get(java.lang.Object targetBean)
Get the object |
java.lang.String |
getPropertyName()
|
java.lang.Class<?> |
getPropertyType()
|
java.lang.String |
getXmlName()
|
javax.xml.namespace.QName |
getXmlQName()
|
void |
set(java.lang.Object targetBean,
java.lang.Object propValue)
Set the object |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int compareTo(JAXBPropertyDescriptor o)
compareTo
in interface java.lang.Comparable<JAXBPropertyDescriptor>
public java.lang.String getXmlName()
public javax.xml.namespace.QName getXmlQName()
public java.lang.Class<?> getPropertyType()
public java.lang.String getPropertyName()
public java.lang.Object get(java.lang.Object targetBean) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
targetBean
-
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public void set(java.lang.Object targetBean, java.lang.Object propValue) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException, JAXBWrapperException
targetBean
- propValue
-
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
JAXBWrapperException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |