gr.uoa.di.madgik.commons.channel.events
Enum ChannelState.EventName

java.lang.Object
  extended by java.lang.Enum<ChannelState.EventName>
      extended by gr.uoa.di.madgik.commons.channel.events.ChannelState.EventName
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ChannelState.EventName>
Enclosing class:
ChannelState

public static enum ChannelState.EventName
extends java.lang.Enum<ChannelState.EventName>

The Events that can be registered for, exposed and send. This enumeration is used so that someone that wants to throw a specific event can request for it by name. This is a needed simplification because of the pattern mechanics of Observer-Observable used instead of the Event-Listener one.


Enum Constant Summary
BytePayload
          Typed name for the BytePayloadChannelEvent
DisposeChannel
          Typed name for the DisposeChannelEvent
ObjectPayload
          Typed name for the ObjectPayloadChannelEvent
StringPayload
          Typed name for the StringPayloadChannelEvent
 
Method Summary
static ChannelState.EventName valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ChannelState.EventName[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DisposeChannel

public static final ChannelState.EventName DisposeChannel
Typed name for the DisposeChannelEvent


BytePayload

public static final ChannelState.EventName BytePayload
Typed name for the BytePayloadChannelEvent


StringPayload

public static final ChannelState.EventName StringPayload
Typed name for the StringPayloadChannelEvent


ObjectPayload

public static final ChannelState.EventName ObjectPayload
Typed name for the ObjectPayloadChannelEvent

Method Detail

values

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

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

valueOf

public static ChannelState.EventName 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