MetaDone
metadone.metabusiness.events.Notification Class Reference
Collaboration diagram for metadone.metabusiness.events.Notification:

List of all members.

Public Member Functions

 Notification (Level level, boolean synchronous, String message)
 Notification (Level level, boolean synchronous, String message, Throwable cause)
Level getLevel ()
String getMessage ()
Throwable getCause ()
boolean isSynchronous ()
void log (Logger logger)
String toString ()

Static Public Member Functions

static Notification inform (boolean sync, String message)
static Notification warn (boolean sync, String message, Throwable cause)
static Notification error (boolean sync, String message, Throwable cause)

Private Attributes

final Level level
final String message
final Throwable cause
boolean synchronous

Detailed Description

A notification for the user or for logging.

Author:
kma

Constructor & Destructor Documentation

metadone.metabusiness.events.Notification.Notification ( Level  level,
boolean  synchronous,
String  message 
)

Initializes this notification.

Parameters:
levelThe level
synchronousWhether the notification is shown to the user
messageThe message
Exceptions:
NullPointerExceptionwhen level or message is null

References metadone.metabusiness.events.Notification.level, metadone.metabusiness.events.Notification.message, and metadone.metabusiness.events.Notification.synchronous.

Referenced by metadone.metabusiness.events.Notification.error(), metadone.metabusiness.events.Notification.inform(), and metadone.metabusiness.events.Notification.warn().

metadone.metabusiness.events.Notification.Notification ( Level  level,
boolean  synchronous,
String  message,
Throwable  cause 
)

Initializes this notification.

Parameters:
levelThe level
synchronousWhether the notification is shown to the user
messageThe message
causeThe cause of the message or null
Exceptions:
NullPointerExceptionwhen level or message is null

References metadone.metabusiness.events.Notification.cause, metadone.metabusiness.events.Notification.level, metadone.metabusiness.events.Notification.message, and metadone.metabusiness.events.Notification.synchronous.


Member Function Documentation

static Notification metadone.metabusiness.events.Notification.error ( boolean  sync,
String  message,
Throwable  cause 
) [static]

Creates an error notification.

Parameters:
syncWhether the message is synchronous
messageThe message
causeThe cause or null
Returns:
The notification

References metadone.metabusiness.events.Notification.Notification().

Referenced by metadone.client.actions.SelectAsRangeAction.actionPerformed(), metadone.client.actions.RetroDocAction.actionPerformed(), metadone.client.actions.OpenProjectAction.actionPerformed(), metadone.client.actions.OpenGrasylaScriptAction.actionPerformed(), metadone.client.actions.ConnectAction.actionPerformed(), metadone.client.actions.ConcreteObjectDeleteAction.actionPerformed(), metadone.client.actions.ConcreteObjectCreateAction.actionPerformed(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.add(), metadone.client.actions.ConnectAction.configureJPA2(), metadone.plugin.grasyla.generator.GrasylaGenerator.createMenu(), metadone.client.MainClientMetadone.error(), metadone.client.grasyla2.actions.GAction.execute(), metadone.client.dialog.swing.helperBrowserMetal2.NodeRoot.getChildren(), metadone.client.actions.Test_ECORE_Action.importMetaModel(), metadone.client.dialog.swing.visualizeModel.MyVisualizeModel.MyVisualizeModel(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.remove(), metadone.client.dialog.swing.concreteobjecteditor.SingleRoleEditor.RoleListModel.RoleListModel(), metadone.client.MetadoneDesktopPane.EngineObserver.start(), metadone.client.dialog.swing.helperBrowserMetal1.NodeValue.toString(), metadone.client.MetadoneDesktopPane.EngineObserver.trigger(), and metadone.client.MetadoneDesktopPane.updatePopupMenuItems().

Throwable metadone.metabusiness.events.Notification.getCause ( )

Gets the cause.

Returns:
The cause

References metadone.metabusiness.events.Notification.cause.

Level metadone.metabusiness.events.Notification.getLevel ( )
String metadone.metabusiness.events.Notification.getMessage ( )
boolean metadone.metabusiness.events.Notification.isSynchronous ( )

Indicates whether the notification should be shown explicitly to the user.

Returns:
Whether the notification is synchronous

References metadone.metabusiness.events.Notification.synchronous.

Referenced by metadone.client.MainClientMetadone.NotificationSubscriber.trigger().

void metadone.metabusiness.events.Notification.log ( Logger  logger)

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations