(since v2.4.0)

1. Introduction

This transformation processes the descriptors of model elements. A descriptor represents a specific piece of descriptive information of a model element, for example its definition, description, alias, or primary code. A list of well-known descriptors, together with instructions to identify their sources in the model, is available here.

2. Configuration

The following sections specifiy the configuration options for this transformation.

2.1. Class

The class for this transformer implementation is de.interactive_instruments.ShapeChange.Transformation.Descriptors.DescriptorTransformer

2.2. Rules

2.2.1. rule-trf-all-updateDescriptors

(available since v2.4.0)

Updates descriptors of specific model elements. The <DescriptorValue> elements contained in the advanced process configuration of the transformation define which descriptors of which model elements are updated.

Each <DescriptorValue> element contains the name of a specific descriptor. The element also contains attributes to select the model elements for which the descriptor shall be updated. If the element has values, they will be set for the descriptor of the selected model elements (replacing any previously stored values). If no values are defined, the descriptor will be removed on selected model elements.

2.3. Parameters

At the moment no parameters are defined for this transformation.

2.4. Map Entries

At the moment no map entries are defined for this transformation.

2.5. Advanced Process Configuration

The <advancedProcessConfigurations> element inside of the <Transformer> element is used to define descriptor values for specific model elements. The information items defined by a <DescriptorValue> element are documented in the following sections.

2.5.1. Descriptor Name

Explanation: Name of a desciptor. The list of well-known descriptors is available here.

Type: string

Multiplicity: 1 (required)

Default value: none

2.5.2. Value(s)

Explanation: A <DescriptorValue> element can contain zero or more string values. For each string, a language tag can be set.

Type: structured type (for further details, see the ShapeChange configuration XML Schema and the sample configuration)

Multiplicity: 0..* (optional)

Default value: none

2.5.3. Model Element Selection

A number of attributes are used to select relevant model elements. They are the same as described here.

3. Sample Configuration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<Transformer id="TRF_REMOVE_VALUE_OR_REASON_DESCRIPTORS" input="TRF_REMOVE_MD_INHERITANCE"
  class="de.interactive_instruments.ShapeChange.Transformation.Descriptors.DescriptorTransformer">
  <advancedProcessConfigurations>
   <DescriptorValue descriptorName="alias" modelElementType="Property"
    modelElementName="value(s)?OrReason"/>
   <DescriptorValue descriptorName="definition" modelElementType="Property"
    modelElementName="value(s)?OrReason"/>
   <DescriptorValue descriptorName="description" modelElementType="Property"
    modelElementName="value(s)?OrReason"/>
   <DescriptorValue descriptorName="description" modelElementType="Class" modelElementName="Building">
    <values>
     <LangString>This building ...</LangString>
     <LangString lang="de">Dieses Gebäude ...</LangString>
    </values>
   </DescriptorValue>
  </advancedProcessConfigurations>
  <rules>
   <ProcessRuleSet name="trf">
    <rule name="rule-trf-all-updateDescriptors"/>
   </ProcessRuleSet>
  </rules>
 </Transformer>