Difference between revisions of "Core.Actions.MapPutItems"
Jump to navigation
Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | MapPutItems | Inserts one or more elements in a map | Action | OTX Core library | MapModifiers...") |
|||
Line 2: | Line 2: | ||
== Classification == | == Classification == | ||
{{ClassificationActivity | MapPutItems | Inserts one or more elements in a map | [[Action]] | [[Core|OTX Core library]] | [[MapModifiers related actions]] | - | [[CoreChk038|Core_Chk038]]}} | {{ClassificationActivity | MapPutItems | Inserts one or more elements in a map | [[Action]] | [[Core|OTX Core library]] | [[MapModifiers related actions]] | - | [[CoreChk038|Core_Chk038]]}} | ||
+ | |||
+ | == OTL Syntax == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | MapPutItems(MapVariable, {Key1:Value1, Key2:Value2, ...}); | ||
+ | </syntaxhighlight> | ||
== Description == | == Description == | ||
Line 13: | Line 18: | ||
{{TableRowPropertie2| Item | - | [[Term]] | - | [1] | List of one or more elements of type of the map, which will be inserted into the map}} | {{TableRowPropertie2| Item | - | [[Term]] | - | [1] | List of one or more elements of type of the map, which will be inserted into the map}} | ||
|} | |} | ||
+ | |||
+ | == OTL Examples == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | public procedure main() | ||
+ | { | ||
+ | Map<Integer,Integer> Map1; | ||
+ | |||
+ | MapPutItems(Map1, {1:2, 2:3}); | ||
+ | } | ||
+ | </syntaxhighlight> | ||
== See also == | == See also == |
Revision as of 09:44, 2 February 2015
Classification
Name | MapPutItems |
Short Description | Inserts one or more elements in a map |
Class | Action |
Extension | OTX Core library |
Group | MapModifiers related actions |
Exceptions | - |
Checker Rules | Core_Chk038 |
Standard Compliant | Yes |
OTL Syntax
MapPutItems(MapVariable, {Key1:Value1, Key2:Value2, ...});
Description
The OTX MapPutItems activity inserts one or more elements in a map.
![]()
The other map contains a key that is also present in the original map, the corresponding value in the original map is overwritten.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Map | Map | Variable | - | [1] | Map of key/value pairs, in which the elements are inserted |
Item | - | Term | - | [1] | List of one or more elements of type of the map, which will be inserted into the map |
OTL Examples
public procedure main()
{
Map<Integer,Integer> Map1;
MapPutItems(Map1, {1:2, 2:3});
}
See also
Assignment
ProcedureCall
ShiftRight
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListRemoveItems
ListClear
MapUnion
MapRemoveItems
MapClear