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

Insert list items More...

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

Public Attributes

NumericTerm index
 Describes a position in a list. The first item in a list has the index value 0. More...
 
Term[] item
 Describes one or more elements for the List operation. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ListModifier
ListVariable list
 Describes the reference to a List. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Insert list items

The ListInsertItems activity inserts one ore more Items into a (List) at a defined position (Index). No list item changes its position.

Exceptions
Exceptions.OutOfBoundsExceptionIt is thrown if the index is not in the list (index < 0 or index > length-1 of list).
Checker rules
CheckerRule.Core_Chk033 - type-safe ListInsertItems

Syntax
ListInsertItems(ListVariable, IntegerTerm, {Item1, Item2, Item3, ...});
Examples
// Local Declarations
List<Integer> List1 = {3};
// Flow
ListInsertItems(List1, 0, {1, 2});

Member Data Documentation

◆ index

NumericTerm OpenTestSystem.Otx.Core.Actions.ListInsertItems.index

Describes a position in a list. The first item in a list has the index value 0.

◆ item

Term [] OpenTestSystem.Otx.Core.Actions.ListInsertItems.item

Describes one or more elements for the List operation.