org.inria.myriads.snoozeclient.parser.commands
Enum ClientCommand

java.lang.Object
  extended by java.lang.Enum<ClientCommand>
      extended by org.inria.myriads.snoozeclient.parser.commands.ClientCommand
All Implemented Interfaces:
Serializable, Comparable<ClientCommand>

public enum ClientCommand
extends Enum<ClientCommand>

Client commands.

Author:
Eugen Feller

Enum Constant Summary
ADD
          Add.
DEFINE
          Define.
DESTROY
          Destroy.
DUMP
          Dump.
INFO
          Info.
LIST
          List.
REMOVE
          Remove.
RESUME
          Resume.
SHUTDOWN
          Shutdown.
START
          Start.
SUSPEND
          Suspend.
UNDEFINE
          Undefine.
VISUALIZE
          Visualize.
 
Method Summary
 String getCommandName()
          Returns the command name.
static ClientCommand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ClientCommand[] 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

DEFINE

public static final ClientCommand DEFINE
Define.


UNDEFINE

public static final ClientCommand UNDEFINE
Undefine.


ADD

public static final ClientCommand ADD
Add.


REMOVE

public static final ClientCommand REMOVE
Remove.


START

public static final ClientCommand START
Start.


SUSPEND

public static final ClientCommand SUSPEND
Suspend.


RESUME

public static final ClientCommand RESUME
Resume.


SHUTDOWN

public static final ClientCommand SHUTDOWN
Shutdown.


DESTROY

public static final ClientCommand DESTROY
Destroy.


INFO

public static final ClientCommand INFO
Info.


LIST

public static final ClientCommand LIST
List.


VISUALIZE

public static final ClientCommand VISUALIZE
Visualize.


DUMP

public static final ClientCommand DUMP
Dump.

Method Detail

values

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

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

valueOf

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

getCommandName

public String getCommandName()
Returns the command name.

Returns:
The command name


Copyright © 2012. All Rights Reserved.