public class OCLinEcoreGenModelGeneratorAdapter
extends GenBaseGeneratorAdapter
Modifier and Type | Field and Description |
---|---|
static String |
INVARIANT_PREFIX_KEY |
static String |
OCL_GENMODEL_URI |
static String |
TABLES_POSTAMBLE_KEY |
static String |
USE_DELEGATES_KEY |
static String |
USE_NULL_ANNOTATIONS_KEY |
Constructor and Description |
---|
OCLinEcoreGenModelGeneratorAdapter(OCLinEcoreGeneratorAdapterFactory generatorAdapterFactory) |
Modifier and Type | Method and Description |
---|---|
static String |
getInvariantPrefix(GenModel genModel)
If the genModel has a
OCL_GENMODEL_URI GenAnnotation with a
INVARIANT_PREFIX_KEY detail returns its value otherwise return null. |
static String |
tablesPostamble(GenModel genModel)
Return some non-null text to append before the final brace of the generated Tables file.
|
static boolean |
useDelegates(GenModel genModel)
Return true if the genModel has a
OCL_GENMODEL_URI GenAnnotation with a
USE_DELEGATES_KEY detail set to true, or if there is no such GenAnnotation and the
global preference CommonOptions.CODE_GENERATION_MODE
has been set to CodeGenerationMode.DELEGATED |
static boolean |
useNullAnnotations(GenModel genModel)
Return true if the genModel has a
OCL_GENMODEL_URI GenAnnotation with a
USE_NULL_ANNOTATIONS_KEY detail set to true. |
public static final String OCL_GENMODEL_URI
public static final String TABLES_POSTAMBLE_KEY
public static final String USE_DELEGATES_KEY
public static final String USE_NULL_ANNOTATIONS_KEY
public static final String INVARIANT_PREFIX_KEY
public OCLinEcoreGenModelGeneratorAdapter(OCLinEcoreGeneratorAdapterFactory generatorAdapterFactory)
public static String getInvariantPrefix(GenModel genModel)
OCL_GENMODEL_URI
GenAnnotation with a
INVARIANT_PREFIX_KEY
detail returns its value otherwise return null.public static String tablesPostamble(GenModel genModel)
public static boolean useDelegates(GenModel genModel)
OCL_GENMODEL_URI
GenAnnotation with a
USE_DELEGATES_KEY
detail set to true, or if there is no such GenAnnotation and the
global preference CommonOptions.CODE_GENERATION_MODE
has been set to CodeGenerationMode.DELEGATED
public static boolean useNullAnnotations(GenModel genModel)
OCL_GENMODEL_URI
GenAnnotation with a
USE_NULL_ANNOTATIONS_KEY
detail set to true.Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.