OTX Reference  
OpenTestSystem.Otx.Core.Terms.ListCreate Class Reference

Create a List. More...

Inheritance diagram for OpenTestSystem.Otx.Core.Terms.ListCreate:
Inheritance graph

Public Attributes

ListItems items
 Cardinality [0..1]
Describes one or more items for the List operation. More...
 
DataType itemType
 Cardinality [1]
Data type of the items of a list. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Create a List.

ListCreate is a term to create a new list at run time. It is generated by passing a set of items.

Checker rules
CheckerRule.Core_Chk034 – no use of init in list item type definition
CheckerRule.Core_Chk036ListLiteral and ListCreate item types follow item type definition

Syntax
ListTerm = ListCreate(DataType, {Term1, Term2, ...});
Examples
// Local Declarations
List<String> result;
// Flow
//Returns the result = {"text1", "text2"}
result = ListCreate(String, { "text1", "text2"});

Member Data Documentation

◆ items

ListItems OpenTestSystem.Otx.Core.Terms.ListCreate.items

Cardinality [0..1]
Describes one or more items for the List operation.

◆ itemType

DataType OpenTestSystem.Otx.Core.Terms.ListCreate.itemType

Cardinality [1]
Data type of the items of a list.