net.sourceforge.atunes.kernel.utils
Enum SystemProperties.OperatingSystem

java.lang.Object
  extended by java.lang.Enum<SystemProperties.OperatingSystem>
      extended by net.sourceforge.atunes.kernel.utils.SystemProperties.OperatingSystem
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SystemProperties.OperatingSystem>
Enclosing class:
SystemProperties

public static enum SystemProperties.OperatingSystem
extends java.lang.Enum<SystemProperties.OperatingSystem>

Operating Systems Enum.


Enum Constant Summary
LINUX
          The LINUX.
MACOSX
          The MACOSX.
SOLARIS
          The SOLARIS.
WINDOWS
          The WINDOWS.
 
Method Summary
 java.lang.String getLaunchCommand()
          Returns a string with command to launch application This method is used when restarting app
 boolean is64Bit()
          Returns true if the current operating system (actually the VM) is 64 bit.
 boolean isLinux()
          Returns true if Linux is the current operating system.
 boolean isMacOsX()
          Returns true if MacOsX is the current operating system.
 boolean isSolaris()
          Returns true if Solaris is the current operating system.
 boolean isVista()
          Returns true if Windows Vista is the current operating system.
 boolean isWindows()
          Returns true if Windows is the current operating system, but is not Windows Vista.
static SystemProperties.OperatingSystem valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SystemProperties.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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WINDOWS

public static final SystemProperties.OperatingSystem WINDOWS
The WINDOWS.


LINUX

public static final SystemProperties.OperatingSystem LINUX
The LINUX.


MACOSX

public static final SystemProperties.OperatingSystem MACOSX
The MACOSX.


SOLARIS

public static final SystemProperties.OperatingSystem SOLARIS
The SOLARIS.

Method Detail

values

public static SystemProperties.OperatingSystem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SystemProperties.OperatingSystem c : SystemProperties.OperatingSystem.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SystemProperties.OperatingSystem valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isVista

public boolean isVista()
Returns true if Windows Vista is the current operating system.

Returns:
If Windows Vista is the current operating system

isWindows

public boolean isWindows()
Returns true if Windows is the current operating system, but is not Windows Vista.

Returns:
If Windows is the current operating system

isLinux

public boolean isLinux()
Returns true if Linux is the current operating system.

Returns:
If Linux is the current operating system

isMacOsX

public boolean isMacOsX()
Returns true if MacOsX is the current operating system.

Returns:
If MacOsX is the current operating system

isSolaris

public boolean isSolaris()
Returns true if Solaris is the current operating system.

Returns:
If Solaris is the current operating system

is64Bit

public boolean is64Bit()
Returns true if the current operating system (actually the VM) is 64 bit.

Returns:
If the current operating system is 64 bit

getLaunchCommand

public java.lang.String getLaunchCommand()
Returns a string with command to launch application This method is used when restarting app

Returns:


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.