OTX Reference  
OpenTestSystem.Otx.Core.UniversalTypes.Path Class Reference

Addresses parts of complex structures More...

Public Attributes

NumericTerm stepByIndex
 Locations addressed by index More...
 
StringTerm stepByName
 Locations addressed by name More...
 

Detailed Description

Addresses parts of complex structures

The element addresses parts of complex structures like List or Map. It is built out of a series of index and name steps which allow navigate into the structure.

Checker rules
CheckerRule.Core_Chk053 – No dangling OtxLink associations
CheckerRule.Core_Chk050 – Type-safe variable and constant usage
CheckerRule.Core_Chk051 – Immutability of constants, input parameters and context variables
Exceptions
Core.Exceptions.OutOfBoundsExceptionOnly if there is a path: If the path points to a location which has not been allocated (like a list index exceeding list length, or a map key which is not part of the map).

Member Data Documentation

◆ stepByIndex

NumericTerm OpenTestSystem.Otx.Core.UniversalTypes.Path.stepByIndex

Locations addressed by index

This step of a path is used for locations addressed by index, e.g. items in a List or items in a Map with Integer keys. Float values will be truncated.

◆ stepByName

StringTerm OpenTestSystem.Otx.Core.UniversalTypes.Path.stepByName

Locations addressed by name

This step of a path is used for locations addressed by name, e.g. items in a Map with String keys.