tom.platform
Class RuntimeAlert

java.lang.Object
  extended by tom.platform.RuntimeAlert

public class RuntimeAlert
extends Object


Constructor Summary
RuntimeAlert()
           
 
Method Summary
 void add(PlatformLogRecord record)
           
 void addError(String message, String file, int line)
          Add the error only if it is not already in the list
 void addWarning(String message, String file, int line)
          Add the warning only if it is not already in the list
 void concat(RuntimeAlert newErrors)
           
 tom.platform.adt.platformalert.types.AlertList getErrors()
           
 int getNbErrors()
           
 int getNbWarnings()
           
 tom.platform.adt.platformalert.types.AlertList getWarnings()
           
 boolean hasErrors()
           
 boolean hasWarnings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeAlert

public RuntimeAlert()
Method Detail

addWarning

public void addWarning(String message,
                       String file,
                       int line)
Add the warning only if it is not already in the list


addError

public void addError(String message,
                     String file,
                     int line)
Add the error only if it is not already in the list


getNbErrors

public int getNbErrors()

getNbWarnings

public int getNbWarnings()

hasErrors

public boolean hasErrors()

hasWarnings

public boolean hasWarnings()

getErrors

public tom.platform.adt.platformalert.types.AlertList getErrors()

getWarnings

public tom.platform.adt.platformalert.types.AlertList getWarnings()

concat

public void concat(RuntimeAlert newErrors)

add

public void add(PlatformLogRecord record)
Parameters:
record -