oemware.core.net
Enum CoreMessageId

java.lang.Object
  extended by java.lang.Enum<CoreMessageId>
      extended by oemware.core.net.CoreMessageId
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CoreMessageId>, NetMessageId

public enum CoreMessageId
extends java.lang.Enum<CoreMessageId>
implements NetMessageId

The core message ids. Constants used in the header of certain messages to identify it's contents.

Version:
$Id: CoreMessageId.java 13 2008-06-15 19:43:04Z oemware $

Enum Constant Summary
SHUTDOWN
           
 
Method Summary
 short id()
          Returns the message id.
static CoreMessageId valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CoreMessageId[] 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

SHUTDOWN

public static final CoreMessageId SHUTDOWN
Method Detail

values

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

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

valueOf

public static CoreMessageId 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

id

public final short id()
Description copied from interface: NetMessageId
Returns the message id.

Specified by:
id in interface NetMessageId
Returns:
The message id.


Copyright © 2008 Deft Labs - Released under LGPL, Version 3.0