formatter
Enum Notification.Type

java.lang.Object
  extended by java.lang.Enum<Notification.Type>
      extended by formatter.Notification.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Notification.Type>
Enclosing class:
Notification

public static enum Notification.Type
extends java.lang.Enum<Notification.Type>

This enum lists the types of Events that are allowed. All Events must be made with one of these.


Enum Constant Summary
BUDDY_LOG_OFF
          Your buddy has logged off.
BUDDY_LOG_ON
          Your buddy has logged on.
DISCONNECT
          You were disconnected without wanting to be signed off.
END_SESSION
          The Session has ended.
START_SESSION
          The Session has started.
 
Method Summary
static Notification.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Notification.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

START_SESSION

public static final Notification.Type START_SESSION
The Session has started.


END_SESSION

public static final Notification.Type END_SESSION
The Session has ended.


BUDDY_LOG_ON

public static final Notification.Type BUDDY_LOG_ON
Your buddy has logged on.


BUDDY_LOG_OFF

public static final Notification.Type BUDDY_LOG_OFF
Your buddy has logged off.


DISCONNECT

public static final Notification.Type DISCONNECT
You were disconnected without wanting to be signed off.

Method Detail

values

public static Notification.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Notification.Type c : Notification.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Notification.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null