org.ejen
Class EjenEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.ejen.EjenEvent
All Implemented Interfaces:
EjenConstants, Serializable

public class EjenEvent
extends EventObject
implements EjenConstants

Ejen event class.

Version:
1.0
Author:
F. Wolff
See Also:
EjenListener, Serialized Form

Field Summary
protected  int _level
           
protected  String _msg
           
 
Fields inherited from class java.util.EventObject
source
 
Fields inherited from interface org.ejen.EjenConstants
CTX_DOM_SOURCE, CTX_STYLESHEET_HANDLER, CTX_STYLESHEET_ROOT, CTX_TRANSFORMER_FACTORY_IMPL, CTX_TRANSFORMER_IMPL, DEFAULT_XML_DATA, DEFAULT_XML_DATA_ENCODING, DEFAULT_XSL_DATA, LOG_INDENT_STR1, LOG_INDENT_STR2, MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN, STATE_AFTER_PROCESS, STATE_BEFORE_PROCESS, STATE_CHECK, STATE_IDLE, STATE_PROCESS, STATES
 
Constructor Summary
EjenEvent(Object source)
          Constructs a new EjenEvent object (with message set to null and level set to EjenConstants.MSG_DEBUG).
EjenEvent(Object source, int level)
          Constructs a new EjenEvent object (with message set to null).
EjenEvent(Object source, String msg)
          Constructs a new EjenEvent object (with level set to EjenConstants.MSG_INFO).
EjenEvent(Object source, String msg, int level)
          Constructs a new EjenEvent object.
 
Method Summary
 int getLevel()
          Returns this EjenEvent level.
 String getMessage()
          Returns this EjenEvent message.
 String toString()
          Returns this EjenEvent message.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_msg

protected String _msg

_level

protected int _level
Constructor Detail

EjenEvent

public EjenEvent(Object source)
Constructs a new EjenEvent object (with message set to null and level set to EjenConstants.MSG_DEBUG).

Parameters:
source - the object on which the Event initially occurred (may not be null).

EjenEvent

public EjenEvent(Object source,
                 int level)
Constructs a new EjenEvent object (with message set to null).

Parameters:
source - the object on which the Event initially occurred (may not be null).
level - level of this EjenEvent (see EjenConstants)

EjenEvent

public EjenEvent(Object source,
                 String msg)
Constructs a new EjenEvent object (with level set to EjenConstants.MSG_INFO).

Parameters:
source - the object on which the Event initially occurred (may not be null).
msg - message associated to this EjenEvent.

EjenEvent

public EjenEvent(Object source,
                 String msg,
                 int level)
Constructs a new EjenEvent object.

Parameters:
source - the object on which the Event initially occurred (may not be null).
msg - message associated to this EjenEvent.
level - level of this EjenEvent (see EjenConstants)
Method Detail

getMessage

public String getMessage()
Returns this EjenEvent message.

Returns:
the message (may be null).

getLevel

public int getLevel()
Returns this EjenEvent level.

Returns:
the level.

toString

public String toString()
Returns this EjenEvent message.

Overrides:
toString in class EventObject
Returns:
the message (may be null).