OTX Reference  
OpenTestSystem.Otx.Core.Actions.MapRemoveItems Class Reference

Deletes elements in a map More...

Inheritance diagram for OpenTestSystem.Otx.Core.Actions.MapRemoveItems:
Inheritance graph

Public Attributes

Term[] key
 The key, by which the value in a map can be accessed. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.MapModifier
MapVariable map
 Reference to a map. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Deletes elements in a map

The MapRemoveItems-activity deletes one or more elements from the Map. If an item does not exist, a OutOfBoundsException is thrown.

Exceptions
Exceptions.OutOfBoundsExceptionIt is thrown if a key does not exist in the map.
Checker rules
CheckerRule.Core_Chk039 - type-safe MapRemoveItems

Syntax
MapRemoveItems(MapVariable, {Key1, Key2, ...});
Examples
// Local Declarations
Map<Integer,Integer> Map1 = {1:2, 2:3};
// Flow
MapRemoveItems(Map1, {1, 2});

Member Data Documentation

◆ key

Term [] OpenTestSystem.Otx.Core.Actions.MapRemoveItems.key

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