public class Profiler extends Object implements Transformer, MessageSource
Modifier and Type | Class and Description |
---|---|
static class |
Profiler.ConstraintHandling
Enumeration of the different behaviors for handling constraints during
profiling.
|
Modifier and Type | Field and Description |
---|---|
static String |
CONSTRAINTHANDLING_PARAMETER
Name of the configuration parameter that contains information on how to
handle constraints during profiling.
|
static String |
PROFILE_PARAMETER_GEOMETRY |
static String |
PROFILE_PARAMETER_ISNAVIGABLE |
static String |
PROFILE_PARAMETER_MULTIPLICITY |
static String |
PROFILES_PARAMETER
Name of the configuration parameter that contains information about the
profile(s) to restrict the model to.
|
static String |
PROFILING_CFG_PARAM_RESIDUALTYPEREMOVAL_INCLUDESUBTYPESFOR
Regular expression to identify the name of the classes for which subtypes
shall be included.
|
static String |
RULE_TRF_PROFILING_POSTPROCESSING_REMOVE_PROFILE_INFOS
If this rule is enabled, all profile information (including the
'profiles' tagged value) will be removed in the processed model.
|
static String |
RULE_TRF_PROFILING_POSTPROCESSING_REMOVEEMPTYPACKAGES |
static String |
RULE_TRF_PROFILING_POSTPROCESSING_REMOVERESIDUALTYPES |
static String |
RULE_TRF_PROFILING_PREPROCESSING_MODELCONSISTENCYCHECK |
static String |
RULE_TRF_PROFILING_PROCESSING_CLASS_REMOVAL_INCLUDES_ALL_SUBTYPES
If this rule is enabled, then the profiler does not only remove
individual classes if their profiles do not match, but also all their
(direct and indirect) subclasses.
|
static String |
RULE_TRF_PROFILING_PROCESSING_EXPLICITPROFILESETTINGS
If this rule is enabled, model elements without profile information are
treated as if they belonged to no profile (which overrides the default
behavior that classes belong to all profiles and properties inherit
profiles from their class).
|
static String |
RULE_TRF_PROFILING_PROCESSING_KEEP_ASSOCIATION_AS_IS
If this rule is enabled, the profiler ignores properties that belong to
associations while profiling individual properties.
|
static int |
STATUS_POSTPROCESSING_REMOVEEMPTYPACKAGES |
static int |
STATUS_POSTPROCESSING_REMOVERESIDUALTYPES |
static int |
STATUS_PREPROCESSING_MODELCONSISTENCYCHECK |
static int |
STATUS_PREPROCESSING_PROFILESVALUECONSISTENCYCHECK |
static int |
STATUS_PROCESSING_PROFILING |
Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
Set<GenericClassInfo> |
getAllSubtypes(GenericClassInfo genCi) |
String |
message(int mnr)
Return a message for a message number.
|
void |
process(GenericModel genModel,
Options options,
TransformerConfiguration trfConfig,
ShapeChangeResult result)
Processes the model.
|
public static final int STATUS_PREPROCESSING_PROFILESVALUECONSISTENCYCHECK
public static final int STATUS_PREPROCESSING_MODELCONSISTENCYCHECK
public static final int STATUS_PROCESSING_PROFILING
public static final int STATUS_POSTPROCESSING_REMOVERESIDUALTYPES
public static final int STATUS_POSTPROCESSING_REMOVEEMPTYPACKAGES
public static final String RULE_TRF_PROFILING_PREPROCESSING_MODELCONSISTENCYCHECK
public static final String RULE_TRF_PROFILING_POSTPROCESSING_REMOVERESIDUALTYPES
public static final String RULE_TRF_PROFILING_POSTPROCESSING_REMOVEEMPTYPACKAGES
public static final String RULE_TRF_PROFILING_PROCESSING_EXPLICITPROFILESETTINGS
public static final String RULE_TRF_PROFILING_PROCESSING_CLASS_REMOVAL_INCLUDES_ALL_SUBTYPES
public static final String RULE_TRF_PROFILING_PROCESSING_KEEP_ASSOCIATION_AS_IS
public static final String RULE_TRF_PROFILING_POSTPROCESSING_REMOVE_PROFILE_INFOS
public static final String PROFILING_CFG_PARAM_RESIDUALTYPEREMOVAL_INCLUDESUBTYPESFOR
public static final String PROFILES_PARAMETER
public static final String CONSTRAINTHANDLING_PARAMETER
public static final String PROFILE_PARAMETER_MULTIPLICITY
public static final String PROFILE_PARAMETER_ISNAVIGABLE
public static final String PROFILE_PARAMETER_GEOMETRY
public void process(GenericModel genModel, Options options, TransformerConfiguration trfConfig, ShapeChangeResult result) throws ShapeChangeAbortException
Transformer
process
in interface Transformer
genModel
- The model to process.options
- Options to control the process execution.result
- Logging target.ShapeChangeAbortException
public Set<GenericClassInfo> getAllSubtypes(GenericClassInfo genCi)
public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2017. All rights reserved.