com.metamatrix.common.util
Class OSPlatformUtil

java.lang.Object
  extended by com.metamatrix.common.util.OSPlatformUtil

public class OSPlatformUtil
extends java.lang.Object

PlatformAwareFileSystemView


Field Summary
static int OS_AIX
          Operating system is IBM AIX.
static int OS_DEC
          Deprecated. please use OS_TRU64 instead
static int OS_HP
          Operating system is HP-UX.
static int OS_IRIX
          Operating system is SGI IRIX.
static int OS_LINUX
          Operating system is Linux.
static int OS_LINUX_MASK
          A mask for Linux platform
static int OS_MAC
          Operating system is Mac.
static int OS_OS2
          Operating system is OS/2.
static int OS_OTHER
          Operating system is unknown.
static java.lang.String OS_PROPERTY_NAME
           
static int OS_SOLARIS
          Operating system is Solaris.
static int OS_SUNOS
          Operating system is Sun OS.
static int OS_TRU64
          Operating system is Compaq TRU64 Unix
static int OS_UNIX_MASK
          A mask for Unix platforms.
static int OS_VMS
          Operating system is Compaq OpenVMS
static int OS_WIN_OTHER
          Operating system is one of the Windows variants but we don't know which one it is
static int OS_WIN2000
          Operating system is Windows 2000.
static int OS_WIN95
          Operating system is Windows 95.
static int OS_WIN98
          Operating system is Windows 98.
static int OS_WINDOWS_MASK
          A mask for Windows platforms.
static int OS_WINNT
          Operating system is Windows NT.
static int OS_WINXP
          Operating system is Compaq OpenVMS
 
Constructor Summary
OSPlatformUtil()
           
 
Method Summary
static int getOperatingSystem()
          Get the operating system on which the IDE is running.
static boolean isLinux()
          Test whether the IDE is running on some variant of Unix.
static boolean isUnix()
          Test whether the IDE is running on some variant of Unix.
static boolean isWindows()
          Test whether the IDE is running on some variant of Windows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OS_PROPERTY_NAME

public static java.lang.String OS_PROPERTY_NAME

OS_WINNT

public static final int OS_WINNT
Operating system is Windows NT.

See Also:
Constant Field Values

OS_WIN95

public static final int OS_WIN95
Operating system is Windows 95.

See Also:
Constant Field Values

OS_WIN98

public static final int OS_WIN98
Operating system is Windows 98.

See Also:
Constant Field Values

OS_SOLARIS

public static final int OS_SOLARIS
Operating system is Solaris.

See Also:
Constant Field Values

OS_LINUX

public static final int OS_LINUX
Operating system is Linux.

See Also:
Constant Field Values

OS_HP

public static final int OS_HP
Operating system is HP-UX.

See Also:
Constant Field Values

OS_AIX

public static final int OS_AIX
Operating system is IBM AIX.

See Also:
Constant Field Values

OS_IRIX

public static final int OS_IRIX
Operating system is SGI IRIX.

See Also:
Constant Field Values

OS_SUNOS

public static final int OS_SUNOS
Operating system is Sun OS.

See Also:
Constant Field Values

OS_TRU64

public static final int OS_TRU64
Operating system is Compaq TRU64 Unix

See Also:
Constant Field Values

OS_DEC

public static final int OS_DEC
Deprecated. please use OS_TRU64 instead
See Also:
Constant Field Values

OS_OS2

public static final int OS_OS2
Operating system is OS/2.

See Also:
Constant Field Values

OS_MAC

public static final int OS_MAC
Operating system is Mac.

See Also:
Constant Field Values

OS_WIN2000

public static final int OS_WIN2000
Operating system is Windows 2000.

See Also:
Constant Field Values

OS_VMS

public static final int OS_VMS
Operating system is Compaq OpenVMS

See Also:
Constant Field Values

OS_WINXP

public static final int OS_WINXP
Operating system is Compaq OpenVMS

See Also:
Constant Field Values

OS_WIN_OTHER

public static final int OS_WIN_OTHER
Operating system is one of the Windows variants but we don't know which one it is

See Also:
Constant Field Values

OS_OTHER

public static final int OS_OTHER
Operating system is unknown.

See Also:
Constant Field Values

OS_WINDOWS_MASK

public static final int OS_WINDOWS_MASK
A mask for Windows platforms.

See Also:
Constant Field Values

OS_UNIX_MASK

public static final int OS_UNIX_MASK
A mask for Unix platforms.

See Also:
Constant Field Values

OS_LINUX_MASK

public static final int OS_LINUX_MASK
A mask for Linux platform

See Also:
Constant Field Values
Constructor Detail

OSPlatformUtil

public OSPlatformUtil()
Method Detail

getOperatingSystem

public static final int getOperatingSystem()
Get the operating system on which the IDE is running.

Returns:
one of the OS_* constants (such as OS_WINNT)

isWindows

public static final boolean isWindows()
Test whether the IDE is running on some variant of Windows.

Returns:
true if Windows, false if some other manner of operating system

isUnix

public static final boolean isUnix()
Test whether the IDE is running on some variant of Unix. Linux is included as well as the commercial vendors.

Returns:
true some sort of Unix, false if some other manner of operating system

isLinux

public static final boolean isLinux()
Test whether the IDE is running on some variant of Unix. Linux is included as well as the commercial vendors.

Returns:
true some sort of Unix, false if some other manner of operating system


Copyright © 2009. All Rights Reserved.