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

Checks a value in a Map More...

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

Public Attributes

MapTerm map
 Reference to a map. More...
 
Term value
 Value that is assigned to a key within a map. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Store additional More...
 

Detailed Description

Checks a value in a Map

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

Checker rules
CheckerRule.Core_Chk041 - type-safe MapContainsValue

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

Member Data Documentation

◆ map

MapTerm OpenTestSystem.Otx.Core.Terms.MapContainsValue.map

Reference to a map.

◆ value

Term OpenTestSystem.Otx.Core.Terms.MapContainsValue.value

Value that is assigned to a key within a map.