VLab Common 1.2

pl.psnc.vlab.eventlog.value
Class EventLogValue

java.lang.Object
  extended by pl.psnc.vlab.eventlog.value.EventLogValue
All Implemented Interfaces:
java.lang.Comparable<EventLogValue>

public class EventLogValue
extends java.lang.Object
implements java.lang.Comparable<EventLogValue>

EventLogValue class - value object for a single log event.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Constructor Summary
EventLogValue()
          Creates a new instance of EventLogValue with empty content
EventLogValue(java.lang.String message, java.util.Date occurenceDate, EventLogType type)
          Creates a new instance of EventLogValue with the its content defined
EventLogValue(java.lang.String message, java.util.Date occurenceDate, EventLogType type, java.lang.Object details)
          Creates a new instance of EventLogValue with the its content defined
EventLogValue(java.lang.String message, EventLogType type)
          Creates a new instance of EventLogValue with the its content defined
 
Method Summary
 int compareTo(EventLogValue event)
           
 java.util.Date getDate()
          Get the occurrence time
 java.lang.String getDetails()
          Get detailed information about this event message
 java.lang.String getMessage()
          Getter for property message.
 java.util.Date getOccurenceDate()
          Get value of field: occurenceDate
 EventLogType getType()
          Get type of this event message
 void setDetails(java.lang.Object details)
          Set value of field: details
 void setMessage(java.lang.String message)
          Setter for property message.
 void setOccurenceDate(java.util.Date occurenceDate)
          Set value of field: occurenceDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLogValue

public EventLogValue()
Creates a new instance of EventLogValue with empty content


EventLogValue

public EventLogValue(java.lang.String message,
                     java.util.Date occurenceDate,
                     EventLogType type,
                     java.lang.Object details)
Creates a new instance of EventLogValue with the its content defined

Parameters:
details - the message details (it may be an exception in case of ErrorEvent)
occurenceDate - date of the event
type - the type of the log message (Information, Error, etc.)
message - the event message

EventLogValue

public EventLogValue(java.lang.String message,
                     java.util.Date occurenceDate,
                     EventLogType type)
Creates a new instance of EventLogValue with the its content defined

Parameters:
occurenceDate - date of the event
type - the type of the log message (Information, Error, etc.)
message - the event message

EventLogValue

public EventLogValue(java.lang.String message,
                     EventLogType type)
Creates a new instance of EventLogValue with the its content defined

Parameters:
type - the type of the log message (Information, Error, etc.)
message - the event message
Method Detail

compareTo

public int compareTo(EventLogValue event)
Specified by:
compareTo in interface java.lang.Comparable<EventLogValue>

getType

public EventLogType getType()
Get type of this event message

Returns:
type

getMessage

public java.lang.String getMessage()
Getter for property message.

Returns:
Value of property message.

setMessage

public void setMessage(java.lang.String message)
Setter for property message.

Parameters:
message - New value of property message.

getDate

public java.util.Date getDate()
Get the occurrence time

Returns:
occurrence time

getDetails

public java.lang.String getDetails()
Get detailed information about this event message


getOccurenceDate

public java.util.Date getOccurenceDate()
Get value of field: occurenceDate

Returns:
the occurenceDate

setOccurenceDate

public void setOccurenceDate(java.util.Date occurenceDate)
Set value of field: occurenceDate

Parameters:
occurenceDate - the occurenceDate to set

setDetails

public void setDetails(java.lang.Object details)
Set value of field: details

Parameters:
details - the details to set

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.