com.webhiker.dreambox.api
Enum DreamboxAPI.Command

java.lang.Object
  extended by java.lang.Enum<DreamboxAPI.Command>
      extended by com.webhiker.dreambox.api.DreamboxAPI.Command
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DreamboxAPI.Command>
Enclosing class:
DreamboxAPI

public static enum DreamboxAPI.Command
extends java.lang.Enum<DreamboxAPI.Command>

The set of available Dreambox commands.


Enum Constant Summary
REBOOT
          REBOOT the Dreambox.
RESTART
          RESTART the Dreambox.
SHUTDOWN
          SHUTDOWN the Dreambox.
STANDBY
          Put the Dreambox into STANDBY mode.
WAKEUP
          Put the Dreambox into WAKEUP.
 
Method Summary
static DreamboxAPI.Command valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DreamboxAPI.Command[] 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

STANDBY

public static final DreamboxAPI.Command STANDBY
Put the Dreambox into STANDBY mode.


WAKEUP

public static final DreamboxAPI.Command WAKEUP
Put the Dreambox into WAKEUP.


REBOOT

public static final DreamboxAPI.Command REBOOT
REBOOT the Dreambox.


RESTART

public static final DreamboxAPI.Command RESTART
RESTART the Dreambox.


SHUTDOWN

public static final DreamboxAPI.Command SHUTDOWN
SHUTDOWN the Dreambox.

Method Detail

values

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

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

valueOf

public static DreamboxAPI.Command 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