Literal Attribute
Quick Facts
| Property | Value |
|---|---|
| Class | OlpCorePythonLiteralAttribute |
| Module | cenpyolpcore.OlpCorePythonLiteralAttribute |
| Package | cenpyolpcore |
| Release | R2025.2.4 |
| Methods | 3 |
| Inherits from | OlpCorePythonAttribute |
| Subclasses | Set Literal Attribute |
Inheritance
Quick Start
# Boilerplate Example
literalAttribute = ... # obtained from the runtime context
result = literalAttribute.GetValues()Method Index
| Method | Returns | Summary |
|---|---|---|
GetValues | list[str] | — |
GetValue | str | Gets the current literal value |
GetIndex | int | Gets 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() -> strGets the current literal value
Returns: str
GetIndex
def GetIndex() -> intGets 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?