public class TaggedValueTransformer extends Object implements Transformer, MessageSource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TV_INHERITANCE_APPEND_SEPARATOR |
static String |
PARAM_TV_COPYFROMVALUETYPE_TVSTOCOPY
Comma-separated list of names of tagged values to copy in
"rule-trf-taggedValue-copyFromValueType".
|
static String |
PARAM_TV_COPYFROMVALUETYPE_TYPENAMEREGEX
Regular expression to match the name of value types from which to copy
tagged values in "rule-trf-taggedValue-copyFromValueType".
|
static String |
PARAM_TV_INHERITANCE_APPEND_LIST
Comma-separated list of names of tagged values.
|
static String |
PARAM_TV_INHERITANCE_APPEND_SEPARATOR
Define the separator to use when a tagged value inherited from a
supertype under "rule-trf-taggedValue-inheritance" shall be appended to the
tagged value of the subtype.
|
static String |
PARAM_TV_INHERITANCE_GENERAL_LIST
Comma-separated list of names of tagged values for which
"rule-trf-taggedValue-inheritance" shall be applied.
|
static String |
PARAM_TV_INHERITANCE_OVERWRITE_LIST
Comma-separated list of names of tagged values.
|
static String |
RULE_TV_COPY_FROM_VALUE_TYPE
Copy specific set of tagged values (specified via parameter
"taggedValuesToCopy") from types (specified via
parameter "valueTypeNameRegex") to
properties that have one of these types as value type.
|
static String |
RULE_TV_INHERITANCE
Copies the tagged values specified via configuration parameter
"taggedValueInheritanceGeneralList" from supertypes of the whole
model down to their subtypes, starting at the top of inheritance trees.
|
Constructor and Description |
---|
TaggedValueTransformer() |
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_TV_INHERITANCE_GENERAL_LIST
public static final String PARAM_TV_INHERITANCE_OVERWRITE_LIST
NOTE: Overwriting a tagged value has higher priority than appending (see "taggedValueInheritanceAppendList"). If a tagged value is listed for both parameters "taggedValueInheritanceOverwriteList" and "taggedValueInheritanceAppendList" then it will be ignored in the latter.
public static final String PARAM_TV_INHERITANCE_APPEND_LIST
NOTE: Appending a tagged value has lower priority than overwriting (see "taggedValueInheritanceOverwriteList"). If a tagged value is listed for both parameters "taggedValueInheritanceOverwriteList" and "taggedValueInheritanceAppendList" then it will be ignored in the latter.
public static final String PARAM_TV_INHERITANCE_APPEND_SEPARATOR
public static final String DEFAULT_TV_INHERITANCE_APPEND_SEPARATOR
public static final String PARAM_TV_COPYFROMVALUETYPE_TVSTOCOPY
public static final String PARAM_TV_COPYFROMVALUETYPE_TYPENAMEREGEX
public static final String RULE_TV_INHERITANCE
NOTE: Care should be taken in case that the model contains classes with multiple supertypes.
NOTE: The implementation currently does not support tagged values with multiple values.
public static final String RULE_TV_COPY_FROM_VALUE_TYPE
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 String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2018. All rights reserved.