OTX-Runtime for Java  
OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedString Class Reference

A RangedString is a RangedObject and represents a String value which can have one or more intervals. More...

Inheritance diagram for OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedString:
Inheritance graph

Public Member Functions

 RangedString (String value, List< StringInterval > interval, boolean isValueWritten)
 Initializes a new instance of the RangedString class. More...
 
List< StringIntervalGetInterval ()
 Gets List of StringIntervalLiteral of the RangedString. More...
 
String GetValue ()
 Gets the String value of the RangedString. More...
 
boolean IsInRange ()
 Checks if the value is in range. More...
 
- Public Member Functions inherited from OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedObject
boolean IsValueWritten ()
 A value is considered written if one of the set value actions is called. More...
 

Detailed Description

A RangedString is a RangedObject and represents a String value which can have one or more intervals.

Constructor & Destructor Documentation

◆ RangedString()

OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedString.RangedString ( String  value,
List< StringInterval interval,
boolean  isValueWritten 
)
inline

Initializes a new instance of the RangedString class.

Parameters
valueThe value
intervalThe List of StringInterval
isValueWrittenA value is considered written if one of the set value actions is called. Overwriting with the same value as the current value counts as written. The initialization of the ranged object with a value does not count as written.

Member Function Documentation

◆ GetInterval()

List<StringInterval> OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedString.GetInterval ( )
inline

Gets List of StringIntervalLiteral of the RangedString.

Returns
List of StringInterval

◆ GetValue()

String OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedString.GetValue ( )
inline

Gets the String value of the RangedString.

Returns
The value

◆ IsInRange()

boolean OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedString.IsInRange ( )
inline

Checks if the value is in range.

Returns
True if the value of the ranged object is inside one of the intervals or if the ranged object has no intervals.

Reimplemented from OpenTestSystem.Otx.Runtime.Api.DataTypes.RangedObject.


The documentation for this class was generated from the following file: