cz.cuni.utils.errorlog
Class ErrorLog

java.lang.Object
  extended by cz.cuni.utils.errorlog.ErrorLog

public class ErrorLog
extends java.lang.Object

Just used for utils.math


Field Summary
protected static boolean containsErrors
           
protected static java.util.Queue errors
           
static boolean logging
          Change to FALSE if you wish to disable ErrorLog.
static boolean logToScreen
          If true ... all messages are also printed to System.out
protected static ErrorLog thisClass
           
 
Constructor Summary
protected ErrorLog()
           
 
Method Summary
static boolean add(ErrorMessage em)
          Main method which is used to add ErrorMessages into property 'errors'.
static boolean add(java.lang.Object o)
           
static boolean add(java.lang.String message, int severity)
           
static boolean addAll(java.util.Collection c)
           
static void clear()
           
static boolean contains(java.lang.Object o)
           
static boolean containsAll(java.util.Collection c)
           
static ErrorLog getInstance()
           
protected static void checkError(ErrorMessage em)
           
static boolean isEmpty()
           
static java.util.Iterator iterator()
           
static ErrorMessage peek()
           
static ErrorMessage poll()
          Returns first (front) error message or null if empty.
static boolean remove(java.lang.Object o)
           
static boolean removeAll(java.util.Collection c)
           
static boolean retainAll(java.util.Collection c)
           
static void showAllErrors(java.awt.Frame owner)
           
static int size()
           
static java.lang.Object[] toArray()
           
static java.lang.Object[] toArray(java.lang.Object[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logging

public static boolean logging
Change to FALSE if you wish to disable ErrorLog.


logToScreen

public static boolean logToScreen
If true ... all messages are also printed to System.out


thisClass

protected static ErrorLog thisClass

errors

protected static java.util.Queue errors

containsErrors

protected static boolean containsErrors
Constructor Detail

ErrorLog

protected ErrorLog()
Method Detail

getInstance

public static ErrorLog getInstance()

showAllErrors

public static void showAllErrors(java.awt.Frame owner)

size

public static int size()

peek

public static ErrorMessage peek()

poll

public static ErrorMessage poll()
Returns first (front) error message or null if empty.

Returns:

add

public static boolean add(java.lang.String message,
                          int severity)

checkError

protected static void checkError(ErrorMessage em)

add

public static boolean add(ErrorMessage em)
Main method which is used to add ErrorMessages into property 'errors'.

Parameters:
em -
Returns:

add

public static boolean add(java.lang.Object o)

addAll

public static boolean addAll(java.util.Collection c)

clear

public static void clear()

contains

public static boolean contains(java.lang.Object o)

containsAll

public static boolean containsAll(java.util.Collection c)

isEmpty

public static boolean isEmpty()

iterator

public static java.util.Iterator iterator()

remove

public static boolean remove(java.lang.Object o)

removeAll

public static boolean removeAll(java.util.Collection c)

retainAll

public static boolean retainAll(java.util.Collection c)

toArray

public static java.lang.Object[] toArray()

toArray

public static java.lang.Object[] toArray(java.lang.Object[] a)