org.deckfour.xes.util
Class XRuntimeUtils

java.lang.Object
  extended by org.deckfour.xes.util.XRuntimeUtils

public class XRuntimeUtils
extends java.lang.Object

This class provides runtime utilities for library components. Its main purpose is to identify the host OS, and to locate a standard support folder location on each platform.

Author:
Christian W. Guenther (christian@deckfour.org)

Nested Class Summary
static class XRuntimeUtils.OS
          Enum for defining host platforms.
 
Field Summary
static XRuntimeUtils.OS currentOs
          Current host platform.
static java.lang.String OPENXES_VERSION
          Version string for the OpenXES library implementation.
static java.lang.String XES_VERSION
          Version string for the supported XES standard.
 
Constructor Summary
XRuntimeUtils()
           
 
Method Summary
static XRuntimeUtils.OS determineOS()
          Determines the current host platform.
static java.io.File getExtensionCacheFolder()
          Retrieves the directory file of the platform-dependent OpenXES extension definition file folder.
static java.lang.String getSupportFolder()
          Retrieves the path of the platform-dependent OpenXES support folder.
static boolean isRunningLinux()
          Checks whether the current platform is Linux.
static boolean isRunningMacOsX()
          Checks whether the current platform is Mac OS X.
static boolean isRunningUnix()
          Checks whether the current platform is some flavor of Unix.
static boolean isRunningWindows()
          Checks whether the current platform is Windows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XES_VERSION

public static final java.lang.String XES_VERSION
Version string for the supported XES standard.

See Also:
Constant Field Values

OPENXES_VERSION

public static final java.lang.String OPENXES_VERSION
Version string for the OpenXES library implementation.

See Also:
Constant Field Values

currentOs

public static XRuntimeUtils.OS currentOs
Current host platform.

Constructor Detail

XRuntimeUtils

public XRuntimeUtils()
Method Detail

determineOS

public static XRuntimeUtils.OS determineOS()
Determines the current host platform.

Returns:
Current host platform.

isRunningWindows

public static boolean isRunningWindows()
Checks whether the current platform is Windows.


isRunningMacOsX

public static boolean isRunningMacOsX()
Checks whether the current platform is Mac OS X.


isRunningLinux

public static boolean isRunningLinux()
Checks whether the current platform is Linux.


isRunningUnix

public static boolean isRunningUnix()
Checks whether the current platform is some flavor of Unix.


getSupportFolder

public static java.lang.String getSupportFolder()
Retrieves the path of the platform-dependent OpenXES support folder.


getExtensionCacheFolder

public static java.io.File getExtensionCacheFolder()
Retrieves the directory file of the platform-dependent OpenXES extension definition file folder.