JML

org.multijava.util
Class Message

java.lang.Object
  extended byorg.multijava.util.Message

public class Message
extends Object

This class represents the root class for all kopic errors


Field Summary
private  MessageDescription description
           
private  Object[] parameters
           
 
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 parameter1, Object parameter2)
          Constructs a message with two parameters
Message(MessageDescription description, Object[] parameters)
          Constructs a message with an arbitrary number of parameters
 
Method Summary
 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
 

Field Detail

description

private MessageDescription description

parameters

private Object[] parameters
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


JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.