org.glassfish.cafe.api.bean
Enum ParticipantEvent.Type

java.lang.Object
  extended by java.lang.Enum<ParticipantEvent.Type>
      extended by org.glassfish.cafe.api.bean.ParticipantEvent.Type
All Implemented Interfaces:
Serializable, Comparable<ParticipantEvent.Type>
Enclosing class:
ParticipantEvent

public static enum ParticipantEvent.Type
extends Enum<ParticipantEvent.Type>

Type or classification of a ParticipantEvent.

Author:
binod

Enum Constant Summary
ERROR
          An unexpected error happened pertaining to the Participant.
JOINED
          The Participant has joined the communication.
JOINING
          Participant is about to join the communication.
LEFT
          The Participant has left the communication.
REJECTED
          The participant has refused to join the communication.
 
Method Summary
static ParticipantEvent.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ParticipantEvent.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

ERROR

public static final ParticipantEvent.Type ERROR
An unexpected error happened pertaining to the Participant.


JOINING

public static final ParticipantEvent.Type JOINING
Participant is about to join the communication.


JOINED

public static final ParticipantEvent.Type JOINED
The Participant has joined the communication.


LEFT

public static final ParticipantEvent.Type LEFT
The Participant has left the communication.


REJECTED

public static final ParticipantEvent.Type REJECTED
The participant has refused to join the communication.

Method Detail

values

public static ParticipantEvent.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 (ParticipantEvent.Type c : ParticipantEvent.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 ParticipantEvent.Type 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.