org.flexunit.ant.launcher
Enum OperatingSystem

java.lang.Object
  extended by java.lang.Enum<OperatingSystem>
      extended by org.flexunit.ant.launcher.OperatingSystem
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OperatingSystem>

public enum OperatingSystem
extends java.lang.Enum<OperatingSystem>


Enum Constant Summary
LINUX
           
MACOSX
           
WINDOWS
           
 
Field Summary
private static java.lang.String OPENJDK_MACOSX
           
private static java.lang.String SUN_MACOSX
           
private static java.lang.String SUN_WINDOWS
           
 
Method Summary
static OperatingSystem identify()
          Searches for Windows and Mac specificially and if not found defaults to Linux.
static OperatingSystem valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OperatingSystem[] 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

WINDOWS

public static final OperatingSystem WINDOWS

MACOSX

public static final OperatingSystem MACOSX

LINUX

public static final OperatingSystem LINUX
Field Detail

SUN_WINDOWS

private static final java.lang.String SUN_WINDOWS
See Also:
Constant Field Values

SUN_MACOSX

private static final java.lang.String SUN_MACOSX
See Also:
Constant Field Values

OPENJDK_MACOSX

private static final java.lang.String OPENJDK_MACOSX
See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

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

identify

public static OperatingSystem identify()
Searches for Windows and Mac specificially and if not found defaults to Linux.