Robot Framework Integrated Development Environment (RIDE)
robotide.publish.messages.RideMessage Class Reference

Base class for all messages sent by RIDE. More...

Inheritance diagram for robotide.publish.messages.RideMessage:
robotide.publish.messages.RideBeforeSaving robotide.publish.messages.RideClosing robotide.publish.messages.RideDataChanged robotide.publish.messages.RideDataDirtyCleared robotide.publish.messages.RideExecuteSpecXmlImport robotide.publish.messages.RideInputValidationError robotide.publish.messages.RideLog robotide.publish.messages.RideModificationPrevented robotide.publish.messages.RideNewProject robotide.publish.messages.RideNotebookTabChanged robotide.publish.messages.RideNotebookTabChanging robotide.publish.messages.RideOpenResource robotide.publish.messages.RideOpenSuite robotide.publish.messages.RideOpenTagSearch robotide.publish.messages.RideOpenVariableDialog robotide.publish.messages.RideParserLogMessage robotide.publish.messages.RideSaveAll robotide.publish.messages.RideSaved robotide.publish.messages.RideSaving robotide.publish.messages.RideSelectResource robotide.publish.messages.RideSettingsChanged robotide.publish.messages.RideTestExecutionStarted robotide.publish.messages.RideTestFailed robotide.publish.messages.RideTestPassed robotide.publish.messages.RideTestPaused robotide.publish.messages.RideTestRunning robotide.publish.messages.RideTestSelectedForRunningChanged robotide.publish.messages.RideTestSkipped robotide.publish.messages.RideTestStopped robotide.publish.messages.RideTreeAwarePluginAdded robotide.publish.messages.RideTreeSelection robotide.publish.messages._RideExcludes

Public Member Functions

def __init__ (self, **kwargs)
 Initializes message based on given keyword arguments. More...
 
def publish (self)
 Publishes the message. More...
 
def topic (cls)
 

Static Public Attributes

list data = []
 

Static Private Attributes

 _topic
 

Detailed Description

Base class for all messages sent by RIDE.

:CVariables:
  topic
    Topic of this message. If not overridden, value is got from the class
    name by lowercasing it, separating words with a dot and dropping possible
    ``Message`` from the end. For example classes ``MyExample`` and
    ``AnotherExampleMessage`` get titles ``my.example`` and
    ``another.example``, respectively.
  data
    Names of attributes this message provides. These must be given as
    keyword arguments to `__init__` when an instance is created.

Definition at line 37 of file messages.py.

Constructor & Destructor Documentation

◆ __init__()

def robotide.publish.messages.RideMessage.__init__ (   self,
**  kwargs 
)

Initializes message based on given keyword arguments.

    Names of the given keyword arguments must match to names in `data`
    class attribute, otherwise the initialization fails.

    Must be called explicitly by subclass if overridden.

Definition at line 52 of file messages.py.

Member Function Documentation

◆ publish()

def robotide.publish.messages.RideMessage.publish (   self)

Publishes the message.

    All listeners that have subscribed to the topic of this message will be
    called with the this instance as an argument.

    Notifications are sent sequentially. Due to the limitations of current
    implementation, if any of the listeners raises an exception, subsequent
    listeners will not get the notification.

Definition at line 77 of file messages.py.

◆ topic()

def robotide.publish.messages.RideMessage.topic (   cls)

Definition at line 58 of file messages.py.

Member Data Documentation

◆ _topic

robotide.publish.messages.RideMessage._topic
staticprivate

Definition at line 42 of file messages.py.

◆ data

list robotide.publish.messages.RideMessage.data = []
static

Definition at line 43 of file messages.py.


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