Difference between revisions of "Core.Actions.ListInsertItems"

From emotive
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Core]]
+
{{DISPLAYTITLE:OTX '''ListInsertItems'''}}[[Category:Core]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | ListInsertItems | Adds one or more elements in a list at a specific position | [[Action]] | [[Core|OTX Core library]] | [[ListModifiers related actions]] | [[OutOfBoundsException]] | [[CoreChk033|Core_Chk033]] }}
+
{{ClassificationActivity | ListInsertItems | Adds one or more elements in a list at a specific position | [[Action]] | [[Core|OTX Core library]] | [[ListModifiers related actions]] | [[Core.Actions.Throw.Exception.OutOfBoundsException|OutOfBoundsException]] | [[Core.Validation.CoreChk033|Core_Chk033]] }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 14: Line 14:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| List | [[List]] | [[Variable]] | - | [1] | List of elements, in which the elements are inserted}}
+
{{TableRowPropertie1| List | [[Core.DataTypes.ComplexDataType.ContainerDataType.List|List]] | [[Variable]] | - | [1] | List of elements, in which the elements are inserted}}
 
{{TableRowPropertie2| Item | - | [[Term]] | - | [1] | List of one or more elements of type of the list, which will be added at the end of the list}}
 
{{TableRowPropertie2| Item | - | [[Term]] | - | [1] | List of one or more elements of type of the list, which will be added at the end of the list}}
{{TableRowPropertie1| Index| [[Integer]] | [[Term]] | - | [1] | Position in the list (zero based) which the elements are inserted before}}
+
{{TableRowPropertie1| Index| [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Term]] | - | [1] | Position in the list (zero based) which the elements are inserted before}}
 
|}
 
|}
  
Line 27: Line 27:
  
 
== See also ==
 
== See also ==
[[Assignment]] <br/>
+
[[Core.Actions.Assignment|Assignment]] <br/>
[[ProcedureCall]] <br/>
+
[[Core.Actions.ProcedureCall|ProcedureCall]] <br/>
[[ShiftRight]] <br/>
+
[[Core.Actions.ShiftRight|ShiftRight]] <br/>
[[ShiftLeft]] <br/>
+
[[Core.Actions.ShiftLeft|ShiftLeft]] <br/>
[[SetBit]] <br/>
+
[[Core.Actions.SetBit|SetBit]] <br/>
[[ReplaceSubByteField]] <br/>
+
[[Core.Actions.ReplaceSubByteField|ReplaceSubByteField]] <br/>
[[AppendByteField]] <br/>
+
[[Core.Actions.AppendByteField|AppendByteField]] <br/>
[[ListConcatenate]] <br/>
+
[[Core.Actions.ListConcatenate|ListConcatenate]] <br/>
[[ListAppendItems]] <br/>
+
[[Core.Actions.ListAppendItems|ListAppendItems]] <br/>
[[ListRemoveItems]] <br/>
+
[[Core.Actions.ListRemoveItems|ListRemoveItems]] <br/>
[[ListClear]] <br/>
+
[[Core.Actions.ListClear|ListClear]] <br/>
[[MapUnion]] <br/>
+
[[Core.Actions.MapUnion|MapUnion]] <br/>
[[MapPutItems]] <br/>
+
[[Core.Actions.MapPutItems|MapPutItems]] <br/>
[[MapRemoveItems]] <br/>
+
[[Core.Actions.MapRemoveItems|MapRemoveItems]] <br/>
[[MapClear]]
+
[[Core.Actions.MapClear|MapClear]]

Latest revision as of 08:56, 16 February 2016

Classification

Name ListInsertItems
Short Description Adds one or more elements in a list at a specific position
Class Action
Extension OTX Core library
Group ListModifiers related actions
Exceptions OutOfBoundsException
Checker Rules Core_Chk033
Standard Compliant Yes

OTL Syntax

ListInsertItems(ListVariable, IntegerTerm, {Item1, Item2, Item3, ...});

Description

The OTX ListInsertItems activity adds one or more items in a list at a specific location.

Properties

Name Data Type Class Default Cardinality Description
List List Variable - [1] List of elements, in which the elements are inserted
Item - Term - [1] List of one or more elements of type of the list, which will be added at the end of the list
Index Integer Term - [1] Position in the list (zero based) which the elements are inserted before

OTL Examples

List<Integer> List1 = {3};

ListInsertItems(List1, 0, {1, 2});

See also

Assignment
ProcedureCall
ShiftRight
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListRemoveItems
ListClear
MapUnion
MapPutItems
MapRemoveItems
MapClear