|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.server.flow.mapper.JavaBeanRespObjMapper
This class maps a keyed collection to a java bean.
The java bean object need to meet the JavaBean specification and corresponding fields are required to be defined in the keyed collection.
Field Summary | |
---|---|
static java.lang.String |
SetterHead
SetterHead |
Constructor Summary | |
---|---|
JavaBeanRespObjMapper()
|
Method Summary | |
---|---|
static java.lang.reflect.Method |
findGetterFromSetter(java.beans.MethodDescriptor[] allMethod,
java.lang.reflect.Method setter)
Finds the corresponding getter from a setter. |
static boolean |
isSetter(java.lang.reflect.Method aMethod)
Returns whether a method is a setter. |
java.lang.Object |
mapResponseObject(DataElement dataElement,
java.lang.Object respObj)
Maps the data element to the response object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SetterHead
Constructor Detail |
public JavaBeanRespObjMapper()
Method Detail |
public java.lang.Object mapResponseObject(DataElement dataElement, java.lang.Object respObj) throws java.lang.Exception
Exception will be thrown out if the data element is not a keyed collection.
mapResponseObject
in interface ResponseObjectMapper
dataElement
- The data element.respObj
- The response object.
java.lang.Exception
public static boolean isSetter(java.lang.reflect.Method aMethod) throws java.lang.Exception
A setter method has following characters: a setter is a public method; the method name of a setter starts with "get"; the length of a setter's method name is more than 3; a setter has one parameter.
aMethod
- The method.
java.lang.Exception
public static java.lang.reflect.Method findGetterFromSetter(java.beans.MethodDescriptor[] allMethod, java.lang.reflect.Method setter) throws java.lang.Exception
allMethod
- All the methods.setter
- The setter.
java.lang.Exception
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |