6.2.5.36. Architecture-TaggedValuesMapping

Create a tagged-value based mapping

Required inputs: RFG

This rule creates a mapping based on tagged values imported from an Enterprise Architect® XMI file. The names of the tagged values used for maps to annotation are specified using the input parameter tagged_values, which takes a list of strings. For example, a tagged value Compiler: src/compiler.*; src/compiler_tools.c corresponds to mapping all files having the path prefix src/compiler. as well as the file src/compiler_tools.c to the architectural entity named Compiler.

Possible Messages

This rule has no predefined messages.

Options

architecture_view_name

architecture_view_name : str = 'Architecture'

Name of the architecture view to use.
 

export_warnings

export_warnings : bool = True

Export output messages to the analysis database.
 

hierarchy_view_name

hierarchy_view_name : str = 'File'

Name of the hierarchy view to use
 

loglevel

loglevel : LogLevel = 'WARNING'

Logging mode. WARNING only outputs errors and warnings, INFO additionally prints info messages, DEBUG additionally outputs info and debug messages.
 

mapping_view_name

mapping_view_name : str = 'Mapping'

Name of the mapping view to be created.
 

path_entry_transformer

path_entry_transformer : typing.Callable[[str], str] | None = None

Transformer function (string -> string) to pre-process path entries (before replace pairs are processed); be aware that as a normalization all path comparisons are transformed to lower case, so this function always gets a string in lower-case as input.
 

replace_pairs

replace_pairs : list[typing.Tuple[str, str]] = [('%WORKSPACE%', '')]

For each pair (X, Y) of strings given: replace all occurrences of X in the tagged value by Y.
 

tagged_values

tagged_values : list[str] = ['MapsTo', 'AxivionMapping', 'AxivionMapsTo']

Tagged values to be processed.
 

Option Types

These types are used by options listed above:

LogLevel

An enumeration.
 
  • WARNING

  • INFO

  • DEBUG