public class MappingModeUtility
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static IMappingMode |
getMappingMode(ITransformContext context)
Retrieves the mapping mode specified in the given context.
|
static IMappingMode |
getMappingModeWithId(int modeId)
Retrieves the
MappingMode corresponding to the given id. |
static boolean |
isAMappingModelWritingMode(ITransformContext context)
Determines if the selected mapping mode will result in a mapping model
bring written to.
|
static boolean |
isCreateMappingMode(ITransformContext context)
Determines if the selected mapping mode is "Create Mapping."
|
static boolean |
isNoMappingMode(ITransformContext context)
Determines if the selected mapping mode is "No Mapping."
|
static boolean |
isUpdateMappingMode(ITransformContext context)
Determines if the selected mapping mode is "Update Mapping."
|
static boolean |
isUsesMappingMode(ITransformContext context)
Determines if the selected mapping mode is "Uses Mapping."
|
public static IMappingMode getMappingMode(ITransformContext context)
context
- The ITransformationContext
to retrieve
the mapping mode from.public static boolean isNoMappingMode(ITransformContext context)
context
- The ITransformationContext
to check for
a mapping mode.public static boolean isUsesMappingMode(ITransformContext context)
context
- The ITransformationContext
to check for
a mapping mode.public static boolean isCreateMappingMode(ITransformContext context)
context
- The ITransformationContext
to check for
a mapping mode.public static boolean isUpdateMappingMode(ITransformContext context)
context
- The ITransformationContext
to check for
a mapping mode.public static IMappingMode getMappingModeWithId(int modeId)
MappingMode
corresponding to the given id.modeId
- - The id to lookup.IMappingMode
with the given id.Nothing.
public static boolean isAMappingModelWritingMode(ITransformContext context)
context
- The ITransformationContext
containing the
mapping mode.