sk.uniba.euromath.gene.messages
Class Message

java.lang.Object
  extended by sk.uniba.euromath.gene.messages.Message

public final class Message
extends Object

A single message. Immutable.

Author:
Martin Vysny

Field Summary
 Throwable cause
          Exception that caused the message, may be null.
 String message
          A short informative message, displayed to the user.
 MessageSeverityEnum severity
          Message severity.
 
Constructor Summary
Message(MessageSeverityEnum severity, String message, Throwable cause)
          Constructor.
 
Method Summary
 void log()
          Logs this message into the Eclipse's log.
static Message valueOf(DOMError err)
          Converts the DOMError instance to a message.
static Message valueOf(IStatus status)
          Converts the Eclipse status instance to a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

severity

public final MessageSeverityEnum severity
Message severity.


message

public final String message
A short informative message, displayed to the user.


cause

public final Throwable cause
Exception that caused the message, may be null.

Constructor Detail

Message

public Message(MessageSeverityEnum severity,
               String message,
               Throwable cause)
Constructor.

Parameters:
severity - message severity.
message - a short informative message, displayed to the user.
cause - exception that caused the message, may be null.
Method Detail

log

public void log()
Logs this message into the Eclipse's log.


valueOf

public static Message valueOf(DOMError err)
Converts the DOMError instance to a message.

Parameters:
err - the error.
Returns:
message instance.

valueOf

public static Message valueOf(IStatus status)
Converts the Eclipse status instance to a message.

Parameters:
status - the status.
Returns:
message instance.


Copyright 2003-2003-2006 null. All Rights Reserved.