cfa.vo.sed.io
Class SEDMessager

java.lang.Object
  extended by cfa.vo.sed.io.SEDMessager

public class SEDMessager
extends java.lang.Object


Field Summary
static int ALL
           
static int FINE
           
static int FINEST
           
static int INFO
           
static int OFF
           
static int SEVERE
           
static int WARNING
           
 
Constructor Summary
SEDMessager()
           
 
Method Summary
static void addMessage(java.lang.String msg)
          Add a message to the collection of messages.
static void addMessage(java.lang.String msg, int level)
          Add a message to the collection of messages at the specified level.
static void clear()
          Clears the message queue
static java.util.Vector getMessages()
          Returns all existing messages, no matter what level
static java.util.Vector getMessages(int level)
          Returns all messages with requested importance level and higher
static boolean isEmpty()
          Tells whether or not there are messages to be retrieved
static boolean isEmpty(int level)
          Tells whether or not there are messages of the given level to be retrieved
static int numMessages()
           
static void printMessages()
          Prints all messages to standard out.
static void printMessages(int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFF

public static final int OFF
See Also:
Constant Field Values

SEVERE

public static final int SEVERE
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

FINE

public static final int FINE
See Also:
Constant Field Values

FINEST

public static final int FINEST
See Also:
Constant Field Values

ALL

public static final int ALL
See Also:
Constant Field Values
Constructor Detail

SEDMessager

public SEDMessager()
Method Detail

isEmpty

public static boolean isEmpty()
Tells whether or not there are messages to be retrieved

Returns:
boolean

isEmpty

public static boolean isEmpty(int level)
Tells whether or not there are messages of the given level to be retrieved

Returns:
boolean

numMessages

public static int numMessages()

getMessages

public static java.util.Vector getMessages()
Returns all existing messages, no matter what level

Returns:
Vector

getMessages

public static java.util.Vector getMessages(int level)
Returns all messages with requested importance level and higher

Returns:
Vector

printMessages

public static void printMessages()
Prints all messages to standard out.


printMessages

public static void printMessages(int level)

clear

public static void clear()
Clears the message queue


addMessage

public static void addMessage(java.lang.String msg)
Add a message to the collection of messages. Default level of INFO.

Parameters:
msg - String

addMessage

public static void addMessage(java.lang.String msg,
                              int level)
Add a message to the collection of messages at the specified level.

Parameters:
msg - String
level - int