Difference between revisions of "Core.Terms.MapGetValueList"
Jump to navigation
Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | MapGetValueList | List of the values in a map | Term | OTX Core library | Map related terms...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | MapGetValueList | List of the values in a map | [[Term]] | [[Core|OTX Core library]] | [[Map related terms]] | - | - }} | {{ClassificationActivity | MapGetValueList | List of the values in a map | [[Term]] | [[Core|OTX Core library]] | [[Map related terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | ListTerm = MapGetValueList(MapTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 21: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Map<Integer, String> map = {{1 | + | Map<Integer, String> map = {{1:"text1"}, {2:"text2"}}; |
− | List<String> result = MapGetValueList(map) | + | List<String> result; |
− | //Returns result = {text1 | + | result = MapGetValueList(map); |
+ | //Returns result = {"text1", "text2"} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 07:12, 4 February 2015
Contents
Classification
Name | MapGetValueList |
Short Description | List of the values in a map |
Class | Term |
Extension | OTX Core library |
Group | Map related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ListTerm = MapGetValueList(MapTerm);
Description
MapGetValueList is a term, which returns a list of the values of a map as a result.
![]() |
Important: Please keep in mind that this TermActivity in the form of an activity exists and no text can be entered. According to the respective ActionNode can further properties are added. |
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
List | Return of a list of the values of the map as items |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
MapTerm | Map | Term | - | [1] | Map which to be calculated |
OTL Examples
Map<Integer, String> map = {{1:"text1"}, {2:"text2"}};
List<String> result;
result = MapGetValueList(map);
//Returns result = {"text1", "text2"}
See also
MapContainsKey
MapContainsValue
MapGetSize
MapGetKeyList
MapCopy