TEMERITY

us.temerity.pipeline
Enum OsType

java.lang.Object
  extended by java.lang.Enum<OsType>
      extended by us.temerity.pipeline.OsType
All Implemented Interfaces:
Serializable, Comparable<OsType>

public enum OsType
extends Enum<OsType>

The operating system type.


Enum Constant Summary
MacOS
          Apple's Macintosh OS.
Unix
          Linux and other UNIX flavors.
Windows
          Microsoft Windows.
 
Method Summary
static ArrayList<OsType> all()
          Get the list of all possible values.
static List<ArchType> getValidArchTypes(OsType os)
          Gets a list of the architecture types that Pipeline considers valid for each operating system.
 boolean isValidArchType(ArchType arch)
          Is the given ArchType valid for this OsType.
static ArrayList<String> titles()
          Get the list of human friendly string representation for all possible values.
 String toTitle()
          Convert to a more human friendly string representation.
static OsType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OsType[] 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

Unix

public static final OsType Unix
Linux and other UNIX flavors.


Windows

public static final OsType Windows
Microsoft Windows.


MacOS

public static final OsType MacOS
Apple's Macintosh OS.

Method Detail

values

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

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

valueOf

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

all

public static ArrayList<OsType> all()
Get the list of all possible values.


titles

public static ArrayList<String> titles()
Get the list of human friendly string representation for all possible values.


getValidArchTypes

public static List<ArchType> getValidArchTypes(OsType os)
Gets a list of the architecture types that Pipeline considers valid for each operating system.

Parameters:
os - The OS type.

isValidArchType

public boolean isValidArchType(ArchType arch)
Is the given ArchType valid for this OsType.

Parameters:
arch - The architecture being validated

toTitle

public String toTitle()
Convert to a more human friendly string representation.


TEMERITY