|
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.JavaBeanReqObjMapper
This class maps a java bean to a keyed collection.
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 |
GetterHead
GetterHead |
Constructor Summary | |
---|---|
JavaBeanReqObjMapper()
|
Method Summary | |
---|---|
static boolean |
isGetter(java.lang.reflect.Method aMethod)
Returns whether a method is a getter. |
DataElement |
mapRequestObject(java.lang.Object reqObj,
DataElement dataElement)
Maps the request object to the data element. |
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 GetterHead
Constructor Detail |
public JavaBeanReqObjMapper()
Method Detail |
public DataElement mapRequestObject(java.lang.Object reqObj, DataElement dataElement) throws java.lang.Exception
Exception will be thrown out if the data element is not a keyed collection.
mapRequestObject
in interface RequestObjectMapper
reqObj
- The request object.dataElement
- The data element.
java.lang.Exception
public static boolean isGetter(java.lang.reflect.Method aMethod) throws java.lang.Exception
A getter method has following characters: a getter is a public method; the method name of a getter starts with "get"; the length of a getter's method name is more than 3; a getter has no parameter.
aMethod
- The method.
java.lang.Exception
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |