JDeveloper SCM API

oracle.ide.scm.util
Class SCMOperatingSystem

java.lang.Object
  |
  +--oracle.ide.scm.util.SCMOperatingSystem

public class SCMOperatingSystem
extends java.lang.Object

Holder for object OS constants. These values are used by the shell runner (SCMShellRunner) and derivatives in performing platform-specific operations, and are exposed in order that client code can be similarly exclusive.


Field Summary
static SCMOperatingSystem OTHER
          This constant indicates another indeterminable OS.
static SCMOperatingSystem UNIX
          This constant indicates a Unix-compliant OS.
static SCMOperatingSystem WINDOWS_9X
          This constant indicates Windows 95 or 98, ME editions.
static SCMOperatingSystem WINDOWS_NT_2000
          This constant indicates Windows NT or 2000 editions.
 
Method Summary
static SCMOperatingSystem getOS()
          Gets a value for the determined current operating system.
static boolean isUnix()
          Asks whether the current operating system is compliant with UNIX.
static boolean isWindows()
          Asks whether the current operating system is a Microsoft Windows product (95, 98, ME, NT, 2000 etc).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WINDOWS_9X

public static final SCMOperatingSystem WINDOWS_9X
This constant indicates Windows 95 or 98, ME editions.

WINDOWS_NT_2000

public static final SCMOperatingSystem WINDOWS_NT_2000
This constant indicates Windows NT or 2000 editions.

UNIX

public static final SCMOperatingSystem UNIX
This constant indicates a Unix-compliant OS.

OTHER

public static final SCMOperatingSystem OTHER
This constant indicates another indeterminable OS.
Method Detail

getOS

public static final SCMOperatingSystem getOS()
Gets a value for the determined current operating system. This may help the client make decisions about the form of commands to run.
Returns:
a constant for the determined OS.

isWindows

public static final boolean isWindows()
Asks whether the current operating system is a Microsoft Windows product (95, 98, ME, NT, 2000 etc).
Returns:
a verdict on whether the OS is Windows.

isUnix

public static final boolean isUnix()
Asks whether the current operating system is compliant with UNIX.
Returns:
a verdict on whether the OS is UNIX compatible.

Copyright © 2002 Oracle Corporation