public enum OperatingSystemType extends Enum<OperatingSystemType>
| Enum Constant and Description |
|---|
AIX |
HP_UX |
LINUX |
SOLARIS |
UNKNOWN |
WINDOWS |
| Modifier and Type | Method and Description |
|---|---|
static OperatingSystemType |
getCurrentOsType()
Get the operating system on which the current JVM runs
|
static OperatingSystemType |
getOsType(String osName)
Extract the operating system type from the name
|
boolean |
isUnix()
Check if this
OperatingSystemType instance is a Unix-type
system |
boolean |
isWindows()
Check if this
OperatingSystemType instance is a Windows system |
static OperatingSystemType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperatingSystemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperatingSystemType WINDOWS
public static final OperatingSystemType LINUX
public static final OperatingSystemType SOLARIS
public static final OperatingSystemType AIX
public static final OperatingSystemType HP_UX
public static final OperatingSystemType UNKNOWN
public static OperatingSystemType[] values()
for (OperatingSystemType c : OperatingSystemType.values()) System.out.println(c);
public static OperatingSystemType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isUnix()
OperatingSystemType instance is a Unix-type
systempublic boolean isWindows()
OperatingSystemType instance is a Windows systempublic static OperatingSystemType getCurrentOsType()
public static OperatingSystemType getOsType(String osName)
osName - the name of the operating systemCopyright © 2017 Axway Software. All rights reserved.