[ CLASS ] - Flag class used by sStash.stashLib.Request class.
More...
[ CLASS ] - Flag class used by sStash.stashLib.Request class.
◆ __init__()
def sStash.stashLib.Flag.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
value = None , |
|
|
|
dataType = DataType.kStr , |
|
|
|
defaultValue = None , |
|
|
|
acceptedValues = None |
|
) |
| |
Constructor.
- Parameters
-
name | [ str | None | in ] - Name of the flag, actual name. |
value | [ variant | None | in ] - Value of the flag, Python object. |
dataType | [ sStash.stashLib.Flag.DataType | None | in ] - Data type from sStash.stashLib.Flag.DataType enum class. |
defaultValue | [ variant | None | in ] - Default value of the flag, Python object. |
acceptedValues | [ list | None | in ] - Accepted values of the flag. |
- Exceptions
-
- Returns
- None - None.
◆ name()
def sStash.stashLib.Flag.name |
( |
|
self | ) |
|
Name.
- Exceptions
-
- Returns
- str - Name of the flag, actual name.
◆ value()
def sStash.stashLib.Flag.value |
( |
|
self | ) |
|
Value.
- Exceptions
-
- Returns
- variant - Value of the flag, Python object.
◆ setValue()
def sStash.stashLib.Flag.setValue |
( |
|
self, |
|
|
|
value |
|
) |
| |
Sets value.
- Parameters
-
value | [ variant | None | in ] - Value to be set. |
- Exceptions
-
- Returns
- None - None.
◆ dataType()
def sStash.stashLib.Flag.dataType |
( |
|
self | ) |
|
◆ defaultValue()
def sStash.stashLib.Flag.defaultValue |
( |
|
self | ) |
|
Default value of the flag, Python object.
- Exceptions
-
- Returns
- variant - Default value.
◆ acceptedValues()
def sStash.stashLib.Flag.acceptedValues |
( |
|
self | ) |
|
Accepted values of the flag.
- Exceptions
-
- Returns
- list of variant - Accepted values.
◆ flagName()
def sStash.stashLib.Flag.flagName |
( |
|
self | ) |
|
Flag name with –, as it would appear in command line.
- Exceptions
-
- Returns
- str - Flag name.
◆ flagValue()
def sStash.stashLib.Flag.flagValue |
( |
|
self | ) |
|
Flag value, as it would appear in command line.
- Exceptions
-
- Returns
- variant - Flag value.
◆ resetValue()
def sStash.stashLib.Flag.resetValue |
( |
|
self | ) |
|
Sets value to flag's default value.
- Exceptions
-
- Returns
- None - None.
The documentation for this class was generated from the following file: