public class NamingModifier extends Object implements Transformer, MessageSource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SUFFIX
Default suffix used for adding a suffix to model element names, in case
that the configuration parameter "suffix" is not used.
|
static String |
PARAM_CAMEL_CASE_TO_UPPER_CASE_TAGGED_VALUES
Comma-separated list of names of tagged values to modify by
"rule-trf-camelcase-to-uppercase-include-taggedTalues".
|
static String |
PARAM_SUFFIX
Identifier of the parameter that provides the suffix to add.
|
static String |
PARAM_SUFFIX_REGEX
Identifier of the parameter that defines the regular expression for
matching model element names to add a suffix.
|
static String |
PARAM_SUFFIXES_TO_IGNORE
Identifier of the parameter that contains a (comma-separated) list of
strings that shall be ignored by
"rule-trf-camelcase-to-uppercase" when they occur as suffix in
the name of a model element.
|
static String |
RULE_TRF_ADD_SUFFIX
Identifies the rule used for adding a suffix to the name of specific
model elements.
|
static String |
RULE_TRF_CAMEL_CASE_TO_UPPER_CASE
Updates the names of application schema classes, their properties, and
their tagged values as follows:
All lower case letters are replaced with upper case letters.
|
static String |
RULE_TRF_CAMEL_CASE_TO_UPPER_CASE_INCLUDE_CODES
Extends the behavior of "rule-trf-camelcase-to-uppercase" so
that the names of codes (i.e. properties of codelists) are modified as
well.
|
static String |
RULE_TRF_CAMEL_CASE_TO_UPPER_CASE_INCLUDE_ENUMS
Extends the behavior of "rule-trf-camelcase-to-uppercase" so
that the names of enums (i.e. properties of enumerations) are modified as
well.
|
static String |
RULE_TRF_CAMEL_CASE_TO_UPPER_CASE_INCLUDE_TAGGED_VALUES
Extends the behavior of "rule-trf-camelcase-to-uppercase" so
that tagged values (identified via parameter
"camelCaseToUpperCase_taggedValues") of included
classes and properties are modified as well.
|
Constructor and Description |
---|
NamingModifier() |
Modifier and Type | Method and Description |
---|---|
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 String PARAM_SUFFIX
public static final String PARAM_SUFFIX_REGEX
public static final String PARAM_SUFFIXES_TO_IGNORE
public static final String PARAM_CAMEL_CASE_TO_UPPER_CASE_TAGGED_VALUES
public static final String RULE_TRF_ADD_SUFFIX
public static final String RULE_TRF_CAMEL_CASE_TO_UPPER_CASE
public static final String RULE_TRF_CAMEL_CASE_TO_UPPER_CASE_INCLUDE_ENUMS
public static final String RULE_TRF_CAMEL_CASE_TO_UPPER_CASE_INCLUDE_CODES
public static final String RULE_TRF_CAMEL_CASE_TO_UPPER_CASE_INCLUDE_TAGGED_VALUES
public static final String DEFAULT_SUFFIX
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
Transformer.process(de.interactive_instruments.ShapeChange.Model.Generic.GenericModel,
de.interactive_instruments.ShapeChange.Options,
de.interactive_instruments.ShapeChange.TransformerConfiguration,
de.interactive_instruments.ShapeChange.ShapeChangeResult)
public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2017. All rights reserved.