org.glassfish.cafe.api.presence
Enum WatcherInfo.Event

java.lang.Object
  extended by java.lang.Enum<WatcherInfo.Event>
      extended by org.glassfish.cafe.api.presence.WatcherInfo.Event
All Implemented Interfaces:
Serializable, Comparable<WatcherInfo.Event>
Enclosing interface:
WatcherInfo

public static enum WatcherInfo.Event
extends Enum<WatcherInfo.Event>


Enum Constant Summary
APPROVED
          Identifier for the event approved.
DEACTIVATED
          Identifier for the event deactivated.
GIVEUP
          Identifier for the event giveup.
PROBATION
          Identifier for the event probation
REJECTED
          Identifier for the event rejected
SUBSCRIBED
          Identifier for the event subscribe.
TIMEPUT
          Identifier for the event timeout.
 
Method Summary
static WatcherInfo.Event valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WatcherInfo.Event[] 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

SUBSCRIBED

public static final WatcherInfo.Event SUBSCRIBED
Identifier for the event subscribe.


APPROVED

public static final WatcherInfo.Event APPROVED
Identifier for the event approved.


DEACTIVATED

public static final WatcherInfo.Event DEACTIVATED
Identifier for the event deactivated.


PROBATION

public static final WatcherInfo.Event PROBATION
Identifier for the event probation


REJECTED

public static final WatcherInfo.Event REJECTED
Identifier for the event rejected


TIMEPUT

public static final WatcherInfo.Event TIMEPUT
Identifier for the event timeout.


GIVEUP

public static final WatcherInfo.Event GIVEUP
Identifier for the event giveup.

Method Detail

values

public static WatcherInfo.Event[] 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 (WatcherInfo.Event c : WatcherInfo.Event.values())
    System.out.println(c);

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

valueOf

public static WatcherInfo.Event valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010. All Rights Reserved.