|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OperatingSystem>
org.opends.server.types.OperatingSystem
@PublicAPI(stability=VOLATILE, mayInstantiate=false, mayExtend=false, mayInvoke=true) public enum OperatingSystem
This class defines an enumeration that may be used to identify the operating system on which the JVM is running. NOTE: to share code this class is used in SetupUtils and should not contain any dependency with other classes (not even with classes in this package). If this class is modified to depend on other classes it will break the quicksetup. If this must be done, the references to this class in SetupUtils must be removed.
Enum Constant Summary | |
---|---|
AIX
The value indicating the AIX operating system. |
|
FREEBSD
The value indicating the FreeBSD operating system. |
|
HPUX
The value indicating the HP-UX operating system. |
|
LINUX
The value indicating the Linux operating system. |
|
MACOS
The value indicating the Mac OS X operating system. |
|
SOLARIS
The value indicating the Solaris operating system. |
|
UNKNOWN
The value indicating an unknown operating system. |
|
WINDOWS
The value indicating the Windows operating system. |
|
ZOS
The value indicating the z/OS operating system. |
Method Summary | |
---|---|
static OperatingSystem |
forName(java.lang.String osName)
Retrieves the operating system for the provided name. |
static boolean |
isUNIXBased(OperatingSystem os)
Indicates whether the provided operating system is UNIX-based. |
java.lang.String |
toString()
Retrieves the human-readable name of this operating system. |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OperatingSystem AIX
public static final OperatingSystem FREEBSD
public static final OperatingSystem HPUX
public static final OperatingSystem LINUX
public static final OperatingSystem MACOS
public static final OperatingSystem SOLARIS
public static final OperatingSystem WINDOWS
public static final OperatingSystem ZOS
public static final OperatingSystem UNKNOWN
Method Detail |
---|
public static OperatingSystem[] values()
for (OperatingSystem c : OperatingSystem.values()) System.out.println(c);
public static OperatingSystem 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<OperatingSystem>
public static OperatingSystem forName(java.lang.String osName)
os.name
system
property.
osName
- The name for which to retrieve the corresponding
operating system.
public static boolean isUNIXBased(OperatingSystem os)
os
- The operating system for which to make the
determination.
true
if the provided operating system is
UNIX-based, or false
if not.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |