formatter
Class Notification

java.lang.Object
  extended by formatter.Notification
All Implemented Interfaces:
Event

public class Notification
extends java.lang.Object
implements Event

This class represents all Events that are not messages. This includes the event that the Session has started or ended, or either SNs have been disconnected.


Nested Class Summary
static class Notification.Type
          This enum lists the types of Events that are allowed.
 
Constructor Summary
Notification(Notification.Type type, Date date, Timestamp time)
          Creates a new Notification object with the passed parameters.
 
Method Summary
 Date getDate()
          Returns the Date object corresponding to when this Event occurred.
 Timestamp getTimestamp()
          Returns the Timestamp object corresponding to when this Event occurred.
 Notification.Type getType()
          Returns the Type of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notification

public Notification(Notification.Type type,
                    Date date,
                    Timestamp time)
Creates a new Notification object with the passed parameters.

Method Detail

getType

public Notification.Type getType()
Returns the Type of this object.

Returns:
The Type of this object.

getDate

public Date getDate()
Returns the Date object corresponding to when this Event occurred.

Returns:
The Date object corresponding to when this Event occurred.

getTimestamp

public Timestamp getTimestamp()
Returns the Timestamp object corresponding to when this Event occurred.

Specified by:
getTimestamp in interface Event
Returns:
The Timestamp object corresponding to when this Event occurred.