org.openxma.dsl.common
Enum OsEnum
java.lang.Object
java.lang.Enum<OsEnum>
org.openxma.dsl.common.OsEnum
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<OsEnum>
public enum OsEnum
- extends java.lang.Enum<OsEnum>
|
Method Summary |
static OsEnum |
getOs()
|
static OsEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OsEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
WINDOWS
public static final OsEnum WINDOWS
MAC
public static final OsEnum MAC
LINUX
public static final OsEnum LINUX
values
public static final OsEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(OsEnum c : OsEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static OsEnum 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
getOs
public static OsEnum getOs()
Copyright © 2012. All Rights Reserved.