com.bea.tuxedo.control
Class TypeMap

java.lang.Object
  extended by com.bea.tuxedo.control.TypeMap

public class TypeMap
extends Object

This class implements the Functional Spec map of behavior for different combinations of Java types and Tuxedo FML/FML32 field types. It telss clients what to do for different combinations of types and mapping strictnesses. The possible actions are: ALLOW - silently allow the type conversion. ISSUE - create a mapping issue or warning, but allow the conversion. ERROR - create an error diagnostic or throw an exception - do not allow the conversion.


Field Summary
static int ACTION_ALLOW
           
static int ACTION_ERROR
           
static int ACTION_ISSUE
           
 
Constructor Summary
TypeMap()
           
 
Method Summary
static int compareTypes(int fromType, int toType, TuxedoControl.MappingStrictness strictness)
          Return the action to be performed when mapping from one type to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_ALLOW

public static final int ACTION_ALLOW
See Also:
Constant Field Values

ACTION_ISSUE

public static final int ACTION_ISSUE
See Also:
Constant Field Values

ACTION_ERROR

public static final int ACTION_ERROR
See Also:
Constant Field Values
Constructor Detail

TypeMap

public TypeMap()
Method Detail

compareTypes

public static int compareTypes(int fromType,
                               int toType,
                               TuxedoControl.MappingStrictness strictness)
Return the action to be performed when mapping from one type to another.

Parameters:
fromType - The type code for the object we are converting from.
toType - The type code for the type we want to convert the object to.
strictness - The mapping-strictness setting for this control method.
Returns:
The action to take: one of ACTION_ALLOW, ACTION_ISSUE or ACTION_ERROR.