|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.codestreet.messageforge.RFldMap
This class is used to implement the field name mapping within the framework. Fields in a messages can be associated with named groups. Each named group is a collection of field names from one or more messages. The idea is that each field in a named group has the same business semantics.
Method Summary | |
void |
add(java.lang.String fldGrpName,
java.lang.String msgName,
java.lang.String fldName)
Add a mapping of a message/field to a field group. |
static RFldMap |
getInstance()
Get singleton instance. |
boolean |
hasMapping(java.lang.String fldGrpName,
java.lang.String msgName)
Check if a mapping exists for a field group and a target message. |
java.lang.String |
map(java.lang.String fldGrpName,
java.lang.String msgName)
Map a field group and a target message to the corresponding field name in that message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static RFldMap getInstance()
public void add(java.lang.String fldGrpName, java.lang.String msgName, java.lang.String fldName)
fldGrpName
- Field group name.msgName
- Message name.fldName
- Field name.public java.lang.String map(java.lang.String fldGrpName, java.lang.String msgName)
map
in interface RFldMapInterface
fldGrpName
- Name of the field group.msgName
- Name of the target message.
public boolean hasMapping(java.lang.String fldGrpName, java.lang.String msgName)
hasMapping
in interface RFldMapInterface
fldGrpName
- Name of the field group.msgName
- Name of the target message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |