Represents a set of variables. More...
Public Member Functions | |
| def | __contains__ (self, name) |
| def | __getitem__ (self, name) |
| def | __init__ (self) |
| def | __setitem__ (self, name, value) |
| def | as_dict (self, decoration=True) |
| def | clear (self) |
| def | copy (self) |
| def | replace_list (self, items, replace_until=None, ignore_errors=False) |
| def | replace_scalar (self, item, ignore_errors=False) |
| def | replace_string (self, item, custom_unescaper=None, ignore_errors=False) |
| def | resolve_delayed (self) |
| def | set_from_file (self, path_or_variables, args=None, overwrite=False) |
| def | set_from_variable_table (self, variables, overwrite=False) |
| def | update (self, variables) |
Public Attributes | |
| store | |
Private Attributes | |
| _replacer | |
Represents a set of variables.
Contains methods for replacing variables from list, scalars, and strings.
On top of ${scalar}, @{list} and &{dict} variables, these methods handle
also %{environment} variables.
Definition at line 30 of file variables.py.
| def robot.variables.variables.Variables.__init__ | ( | self | ) |
Definition at line 32 of file variables.py.
| def robot.variables.variables.Variables.__contains__ | ( | self, | |
| name | |||
| ) |
Definition at line 42 of file variables.py.
| def robot.variables.variables.Variables.__getitem__ | ( | self, | |
| name | |||
| ) |
Definition at line 39 of file variables.py.
| def robot.variables.variables.Variables.__setitem__ | ( | self, | |
| name, | |||
| value | |||
| ) |
Definition at line 36 of file variables.py.
| def robot.variables.variables.Variables.as_dict | ( | self, | |
decoration = True |
|||
| ) |
Definition at line 79 of file variables.py.
| def robot.variables.variables.Variables.clear | ( | self | ) |
Definition at line 68 of file variables.py.
| def robot.variables.variables.Variables.copy | ( | self | ) |
Definition at line 71 of file variables.py.
| def robot.variables.variables.Variables.replace_list | ( | self, | |
| items, | |||
replace_until = None, |
|||
ignore_errors = False |
|||
| ) |
Definition at line 48 of file variables.py.
| def robot.variables.variables.Variables.replace_scalar | ( | self, | |
| item, | |||
ignore_errors = False |
|||
| ) |
Definition at line 54 of file variables.py.
| def robot.variables.variables.Variables.replace_string | ( | self, | |
| item, | |||
custom_unescaper = None, |
|||
ignore_errors = False |
|||
| ) |
Definition at line 57 of file variables.py.
| def robot.variables.variables.Variables.resolve_delayed | ( | self | ) |
Definition at line 45 of file variables.py.
| def robot.variables.variables.Variables.set_from_file | ( | self, | |
| path_or_variables, | |||
args = None, |
|||
overwrite = False |
|||
| ) |
Definition at line 60 of file variables.py.
| def robot.variables.variables.Variables.set_from_variable_table | ( | self, | |
| variables, | |||
overwrite = False |
|||
| ) |
Definition at line 64 of file variables.py.
| def robot.variables.variables.Variables.update | ( | self, | |
| variables | |||
| ) |
Definition at line 76 of file variables.py.
|
private |
Definition at line 34 of file variables.py.
| robot.variables.variables.Variables.store |
Definition at line 33 of file variables.py.