|
| def | __repr__ (self) |
| |
| def | config (self, **attributes) |
| | Configure model object with given attributes. More...
|
| |
| def | copy (self, **attributes) |
| | Return shallow copy of this object. More...
|
| |
| def | deepcopy (self, **attributes) |
| | Return deep copy of this object. More...
|
| |
Definition at line 21 of file modelobject.py.
◆ __repr__()
| def robot.model.modelobject.ModelObject.__repr__ |
( |
|
self | ) |
|
◆ _repr()
| def robot.model.modelobject.ModelObject._repr |
( |
|
self, |
|
|
|
repr_args |
|
) |
| |
|
private |
◆ config()
| def robot.model.modelobject.ModelObject.config |
( |
|
self, |
|
|
** |
attributes |
|
) |
| |
Configure model object with given attributes.
``obj.config(name='Example', doc='Something')`` is equivalent to setting
``obj.name = 'Example'`` and ``obj.doc = 'Something'``.
New in Robot Framework 4.0.
Definition at line 32 of file modelobject.py.
◆ copy()
| def robot.model.modelobject.ModelObject.copy |
( |
|
self, |
|
|
** |
attributes |
|
) |
| |
Return shallow copy of this object.
:param attributes: Attributes to be set for the returned copy
automatically. For example, ``test.copy(name='New name')``.
See also :meth:`deepcopy`. The difference between these two is the same
as with the standard ``copy.copy`` and ``copy.deepcopy`` functions
that these methods also use internally.
Definition at line 46 of file modelobject.py.
◆ deepcopy()
| def robot.model.modelobject.ModelObject.deepcopy |
( |
|
self, |
|
|
** |
attributes |
|
) |
| |
Return deep copy of this object.
:param attributes: Attributes to be set for the returned copy
automatically. For example, ``test.deepcopy(name='New name')``.
See also :meth:`copy`. The difference between these two is the same
as with the standard ``copy.copy`` and ``copy.deepcopy`` functions
that these methods also use internally.
Definition at line 61 of file modelobject.py.
◆ __slots__
| list robot.model.modelobject.ModelObject.__slots__ = [] |
|
staticprivate |
◆ repr_args
| tuple robot.model.modelobject.ModelObject.repr_args = () |
|
static |
The documentation for this class was generated from the following file: