cz.vity.freerapid.utilities.os
Enum OSCommand

java.lang.Object
  extended by java.lang.Enum<OSCommand>
      extended by cz.vity.freerapid.utilities.os.OSCommand
All Implemented Interfaces:
Serializable, Comparable<OSCommand>

public enum OSCommand
extends Enum<OSCommand>

Author:
Ladislav Vitasek

Enum Constant Summary
CREATE_DESKTOP_SHORTCUT
           
CREATE_QUICKLAUNCH_SHORTCUT
           
CREATE_STARTMENU_SHORTCUT
           
CREATE_STARTUP_SHORTCUT
           
HIBERNATE
           
REBOOT
           
RESTART_APPLICATION
           
SHUTDOWN
           
STANDBY
           
 
Field Summary
static EnumSet<OSCommand> shortCutCommands
           
static EnumSet<OSCommand> shutDownCommands
           
 
Method Summary
static OSCommand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OSCommand[] 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

CREATE_DESKTOP_SHORTCUT

public static final OSCommand CREATE_DESKTOP_SHORTCUT

CREATE_STARTMENU_SHORTCUT

public static final OSCommand CREATE_STARTMENU_SHORTCUT

CREATE_STARTUP_SHORTCUT

public static final OSCommand CREATE_STARTUP_SHORTCUT

CREATE_QUICKLAUNCH_SHORTCUT

public static final OSCommand CREATE_QUICKLAUNCH_SHORTCUT

HIBERNATE

public static final OSCommand HIBERNATE

SHUTDOWN

public static final OSCommand SHUTDOWN

REBOOT

public static final OSCommand REBOOT

STANDBY

public static final OSCommand STANDBY

RESTART_APPLICATION

public static final OSCommand RESTART_APPLICATION
Field Detail

shutDownCommands

public static EnumSet<OSCommand> shutDownCommands

shortCutCommands

public static EnumSet<OSCommand> shortCutCommands
Method Detail

values

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

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

valueOf

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