Enum Constant and Description |
---|
ALL
used to specify: not platform-specific
|
MAC_OS |
UNIX_HP |
UNIX_IRIX |
UNIX_LINUX |
UNIX_SOLARIS |
UNKNOWN
used to specify: i do not know (and not support) this OS
|
WINDOWS_7 |
WINDOWS_VISTA |
WINDOWS_XP |
Modifier and Type | Method and Description |
---|---|
static OsType |
fromString(java.lang.String osName) |
OsFamily |
getOsFamily() |
java.lang.String |
getOsName() |
boolean |
isIrix() |
boolean |
isLinux() |
boolean |
isMac() |
boolean |
isSolaris() |
boolean |
isSupported() |
boolean |
isUnix() |
boolean |
isWindows() |
static OsType |
valueOf(java.lang.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.
|
public static final OsType ALL
public static final OsType UNKNOWN
public static final OsType WINDOWS_XP
public static final OsType WINDOWS_VISTA
public static final OsType WINDOWS_7
public static final OsType UNIX_LINUX
public static final OsType UNIX_IRIX
public static final OsType UNIX_SOLARIS
public static final OsType MAC_OS
public static final OsType UNIX_HP
public static OsType[] values()
for (OsType c : OsType.values()) System.out.println(c);
public static OsType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getOsName()
public OsFamily getOsFamily()
public boolean isLinux()
public boolean isWindows()
public boolean isUnix()
public boolean isSolaris()
public boolean isIrix()
public boolean isMac()
public boolean isSupported()
public static OsType fromString(java.lang.String osName)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.