XMT-O Reference Software

xmto2xmta
Class ErrorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--xmto2xmta.ErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ErrorEvent
extends java.util.EventObject

Events used to signal what has errors in the XMT-O to XMT-A converter.

History:

See Also:
Serialized Form

Field Summary
private static boolean debug_
          Whether debug information is to be printed to the console.
static int ERROR
           
private  int errorId_
          Unique identifier for error messsage.
private  int errorLevel_
          Error level value.
static int FATAL_ERROR
           
private  java.lang.String message_
          User string.
static int OK
           
static int TRACE
           
static int UNDEFINED
           
static int WARNING
           
private  java.lang.String xmtoAttribute_
          User string.
private  org.w3c.dom.Element xmtoElement_
          User string.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ErrorEvent(Xmto2Xmta source, int errorLevel, int errorId, java.lang.String message)
          ConnectionModelEvent constructor comment.
ErrorEvent(Xmto2Xmta source, int errorLevel, int errorId, java.lang.String message, org.w3c.dom.Element xmtoElement)
          ConnectionModelEvent constructor comment.
ErrorEvent(Xmto2Xmta source, int errorLevel, int errorId, java.lang.String message, org.w3c.dom.Element xmtoElement, java.lang.String xmtoAttribute)
          ConnectionModelEvent constructor comment.
 
Method Summary
 int getErrorId()
           
 int getErrorLevel()
           
 java.lang.String getMessage()
           
 java.lang.String getProblemAttribute()
           
 org.w3c.dom.Element getProblemElement()
           
static void setDebug(boolean debug)
          Enable debugging information to be printed to the console.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

debug_

private static boolean debug_
Whether debug information is to be printed to the console. default is not have debug information printed (false).

errorLevel_

private int errorLevel_
Error level value. 0 = OK. 1 = Warning. 2 = Error. 3 = Fatal Error.

OK

public static final int OK

TRACE

public static final int TRACE

WARNING

public static final int WARNING

ERROR

public static final int ERROR

FATAL_ERROR

public static final int FATAL_ERROR

errorId_

private int errorId_
Unique identifier for error messsage.

UNDEFINED

public static final int UNDEFINED

message_

private java.lang.String message_
User string. String which can be displayed to the user. This should be a NLS translated string.

xmtoElement_

private org.w3c.dom.Element xmtoElement_
User string. String which can be displayed to the user. This should be a NLS translated string.

xmtoAttribute_

private java.lang.String xmtoAttribute_
User string. String which can be displayed to the user. This should be a NLS translated string.
Constructor Detail

ErrorEvent

public ErrorEvent(Xmto2Xmta source,
                  int errorLevel,
                  int errorId,
                  java.lang.String message)
ConnectionModelEvent constructor comment.
Parameters:
source - ConnectionModel

ErrorEvent

public ErrorEvent(Xmto2Xmta source,
                  int errorLevel,
                  int errorId,
                  java.lang.String message,
                  org.w3c.dom.Element xmtoElement)
ConnectionModelEvent constructor comment.
Parameters:
source - ConnectionModel

ErrorEvent

public ErrorEvent(Xmto2Xmta source,
                  int errorLevel,
                  int errorId,
                  java.lang.String message,
                  org.w3c.dom.Element xmtoElement,
                  java.lang.String xmtoAttribute)
ConnectionModelEvent constructor comment.
Parameters:
source - ConnectionModel
Method Detail

getErrorId

public int getErrorId()

getErrorLevel

public int getErrorLevel()

getMessage

public java.lang.String getMessage()

getProblemAttribute

public java.lang.String getProblemAttribute()

getProblemElement

public org.w3c.dom.Element getProblemElement()

setDebug

public static void setDebug(boolean debug)
Enable debugging information to be printed to the console.
Parameters:
debug - sets debug information is printed

XMT-O Reference Software