Skip to content

CodeMapping_config

Christoffer Fink edited this page Sep 1, 2014 · 1 revision

A code mapping configuration uses a CodeMappings root element and contains one or more Mapping elements and possibly one or more MappingType elements.

Code mappings are referenced from a design space configuration when one or more of the structured parameters are of any type other than String. The code mapping configuration contains the necessary information to allow the InPUT implementation to initialize the parameters.

The ID of a Mapping element must match the ID of the parameter for which it is providing type information. The type attribute gives a type name or other description that is compatible with the implementation. All nested parameters must be initialized one way or another. A constructor attribute allows nested parameters to be used when instantiating the outer parameter. In that case, the inner parameters are considered independent. Their values will not be synchronized with the outer parameter. It is also possible to specify getters and setters for inner parameters by creating additional mappings for those parameters. In that case, that method for accessing the inner parameter is used when setting values.

A MappingType element allows the information about one type to be specified once and then reused for other mappings. The ID then identifies the mapping, and this ID is used as the type in subsequent Mapping elements.

Relevant Tests

Clone this wiki locally