Type Converter

Introduction

(since v2.3.0)

This transformation converts the types of the model. For example, it can convert enumerations to code lists.

Configuration

The following sections specifiy the configuration options for this transformation.

Class

The class for this transformer implementation is de.interactive_instruments.ShapeChange.Transformation.TypeConversion.TypeConverter

Parameters

None at present

Rules

rule-trf-enumeration-to-codelist

Behavior

All enumerations are converted to code lists. The category of value of properties with an enumeration as value type is updated accordingly.

NOTE: This rule converts all enumerations within the model to code lists. If a restriction is desired, for example to enumerations that belong to the schemas selected for processing, or to specifically identified application schemas (e.g. identified by name or target namespace regex), the implementation would need to be enhanced (for example through new parameters).

Likewise, no specific tagged values are set. Rules and parameters to control the tagged values of relevant classes can be added in the future.

Constraints are not updated.

Parameters

none

Map Entries

None at present

Advanced Process Configuration

None at present

Sample Configuration

<Transformer
 class="de.interactive_instruments.ShapeChange.Transformation.TypeConversion.TypeConverter"
 input="INPUT" id="trf" mode="enabled">
 <rules>
  <ProcessRuleSet name="convert">
   <rule name="rule-trf-enumeration-to-codelist"/>
  </ProcessRuleSet>
 </rules>
</Transformer>