Skip to Content

Literal Attribute

Quick Facts

PropertyValue
ClassOlpCorePythonLiteralAttribute
Modulecenpyolpcore.OlpCorePythonLiteralAttribute
Packagecenpyolpcore
ReleaseR2025.2.4
Methods3
Inherits fromOlpCorePythonAttribute
SubclassesSet Literal Attribute

Inheritance

Quick Start

# Boilerplate Example literalAttribute = ... # obtained from the runtime context result = literalAttribute.GetValues()

Method Index

MethodReturnsSummary
GetValueslist[str]
GetValuestrGets the current literal value
GetIndexintGets the index of the currently active value within the defining string array.

Query Methods

GetValues

def GetValues() -> list[str]

Returns: list[str]

GetValue

def GetValue() -> str

Gets the current literal value

Returns: str

GetIndex

def GetIndex() -> int

Gets the index of the currently active value within the defining string array.

Returns: int

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?