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

Checks a key in a Map More...

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

Public Attributes

SimpleTerm key
 The key, by which the value in a map can be accessed. More...
 
MapTerm map
 Reference to a map. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Checks a key in a Map

MapContainsKey is a term which returns true,if the specified key in the Map is found, otherwise false.

Checker rules
CheckerRule.Core_Chk040 - type-safe MapContainsKey

Syntax
BooleanTerm = MapContainsKey(MapTerm, Term)
Examples
// Local Declarations
Map<Integer, String> map = {{1:"text1"}, {2:"text2"}};
Boolean result;
// Flow
//Returns the result = true
result = MapContainsKey(map, 1);
MapTerm map
Reference to a map.
Definition: Core.cs:9579

Member Data Documentation

◆ key

SimpleTerm OpenTestSystem.Otx.Core.Terms.MapContainsKey.key

The key, by which the value in a map can be accessed.

◆ map

MapTerm OpenTestSystem.Otx.Core.Terms.MapContainsKey.map

Reference to a map.