com.codestreet.messageforge
Interface RFldMapInterface

All Known Implementing Classes:
RFldMap

public interface RFldMapInterface

This interface is implemented by all classes that provide a mapping of field names.

Author:
Jawaid Hakim.

Method Summary
 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.
 

Method Detail

map

public 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.

Parameters:
fldGrpName - Name of the field group.
msgName - Name of the target message.
Returns:
Name of the target field. Returns null if the target field is not found.

hasMapping

public boolean hasMapping(java.lang.String fldGrpName,
                          java.lang.String msgName)
Check if a mapping exists for a field group and a target message.

Parameters:
fldGrpName - Name of the field group.
msgName - Name of the target message.
Returns:
Returns true if the mapping exists. Otherwise, returns false.


Copyright © 2003-2006 CodeStreet. All Rights Reserved.