at.dms.util
Class Message

java.lang.Object
  extended by at.dms.util.Message
All Implemented Interfaces:
DeepCloneable

public class Message
extends Object
implements DeepCloneable

This class represents the root class for all kopic errors


Constructor Summary
Message(MessageDescription description)
          Constructs a message without parameters
Message(MessageDescription description, Object parameter)
          Constructs a message with one parameter
Message(MessageDescription description, Object[] parameters)
          Constructs a message with an arbitrary number of parameters
Message(MessageDescription description, Object parameter1, Object parameter2)
          Constructs a message with two parameters
 
Method Summary
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(Message other)
          Clones all fields of this into
 MessageDescription getDescription()
          Returns the message description.
 String getMessage()
          Returns the string explaining the error
 Object[] getParams()
          Returns the message description.
 int getSeverityLevel()
          Returns the severity level
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(MessageDescription description,
               Object[] parameters)
Constructs a message with an arbitrary number of parameters

Parameters:
description - the message description
parameters - the array of parameters

Message

public Message(MessageDescription description,
               Object parameter1,
               Object parameter2)
Constructs a message with two parameters

Parameters:
description - the message description
parameter1 - the first parameter
parameter2 - the second parameter

Message

public Message(MessageDescription description,
               Object parameter)
Constructs a message with one parameter

Parameters:
description - the message description
parameter - the parameter

Message

public Message(MessageDescription description)
Constructs a message without parameters

Parameters:
description - the message description
Method Detail

getDescription

public MessageDescription getDescription()
Returns the message description.


getParams

public Object[] getParams()
Returns the message description.


getSeverityLevel

public int getSeverityLevel()
Returns the severity level


getMessage

public String getMessage()
Returns the string explaining the error


deepClone

public Object deepClone()
Returns a deep clone of this object.

Specified by:
deepClone in interface DeepCloneable

deepCloneInto

protected void deepCloneInto(Message other)
Clones all fields of this into
other