OTX Reference  
OpenTestSystem.Otx.Core.Terms.MapLiteral Class Reference

Literal of type Map More...

Inheritance diagram for OpenTestSystem.Otx.Core.Terms.MapLiteral:
Inheritance graph

Public Attributes

MapItems items
 Wrapper element for the literal Map items More...
 
CountableType keyType
 The data type for the keys of all key/value pairs in the map More...
 
DataType valueType
 The data type for all values of the key/value pairs in the map More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Store additional More...
 

Detailed Description

Literal of type Map

It shall return a new Map created out of the given literal Map items.

A MapLiteral term contains a list of <item> elements which shall represent a literal notation of each key/value pair of the map.It is possible to describe nested item literal structures like e.g.a map of lists of integers etc.

Checker rules
CheckerRule.Core_Chk043 – unique keys in MapLiteral
CheckerRule.Core_Chk044 – no use of init in map key type definition
CheckerRule.Core_Chk045 – no use of init in map value type definition
CheckerRule.Core_Chk047MapLiteral and MapCreate key&value types follow key&value type definition
CheckerRule.Core_Chk048MapLiteral items are literal terms

Member Data Documentation

◆ items

MapItems OpenTestSystem.Otx.Core.Terms.MapLiteral.items

Wrapper element for the literal Map items

◆ keyType

CountableType OpenTestSystem.Otx.Core.Terms.MapLiteral.keyType

The data type for the keys of all key/value pairs in the map

Defines the data type for the keys of all key/value pairs in the map. The key type must be a simple, countable type.All keys in the <items> element have to be of the type stated here.

◆ valueType

DataType OpenTestSystem.Otx.Core.Terms.MapLiteral.valueType

The data type for all values of the key/value pairs in the map

Defines the data type for all values of the key/value pairs in the map, flat or recursive (map of strings, map of list of floats, map of maps of integers …). For this definition, the DataType complex type itself is reused recursively. All values in the <items> element have to be of the type stated here.