Robot Framework
robot.model.modelobject.ModelObject Class Reference
Inheritance diagram for robot.model.modelobject.ModelObject:
metaclass robot.model.body.BodyItem robot.model.testcase.TestCase robot.model.testsuite.TestSuite robot.model.control.Break robot.model.control.Continue robot.model.control.For robot.model.control.If robot.model.control.IfBranch robot.model.control.Return robot.model.control.Try robot.model.control.TryBranch robot.model.control.While robot.model.keyword.Keyword robot.model.message.Message robot.result.model.ForIteration robot.result.model.WhileIteration robot.result.model.TestCase robot.running.model.TestCase robot.result.model.TestSuite robot.running.model.TestSuite

Public Member Functions

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...
 

Static Public Attributes

tuple repr_args = ()
 

Private Member Functions

def _repr (self, repr_args)
 

Static Private Attributes

list __slots__ = []
 

Detailed Description

Definition at line 21 of file modelobject.py.

Member Function Documentation

◆ __repr__()

def robot.model.modelobject.ModelObject.__repr__ (   self)

Reimplemented in robot.model.control.TryBranch.

Definition at line 67 of file modelobject.py.

◆ _repr()

def robot.model.modelobject.ModelObject._repr (   self,
  repr_args 
)
private

Definition at line 70 of file modelobject.py.

◆ 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.

Member Data Documentation

◆ __slots__

list robot.model.modelobject.ModelObject.__slots__ = []
staticprivate

Definition at line 23 of file modelobject.py.

◆ repr_args

tuple robot.model.modelobject.ModelObject.repr_args = ()
static

Definition at line 22 of file modelobject.py.


The documentation for this class was generated from the following file: