Package org.deckfour.xes.util
Class XRuntimeUtils
- java.lang.Object
-
- org.deckfour.xes.util.XRuntimeUtils
-
public class XRuntimeUtils extends java.lang.ObjectThis 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
Nested Classes Modifier and Type Class Description static classXRuntimeUtils.OSEnum for defining host platforms.
-
Field Summary
Fields Modifier and Type Field Description static XRuntimeUtils.OScurrentOsCurrent host platform.static java.lang.StringOPENXES_VERSIONVersion string for the OpenXES library implementation.static java.lang.StringXES_VERSIONVersion string for the supported XES standard.
-
Constructor Summary
Constructors Constructor Description XRuntimeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XRuntimeUtils.OSdetermineOS()Determines the current host platform.static java.io.FilegetExtensionCacheFolder()Retrieves the directory file of the platform-dependent OpenXES extension definition file folder.static java.lang.StringgetSupportFolder()Retrieves the path of the platform-dependent OpenXES support folder.static booleanisRunningLinux()Checks whether the current platform is Linux.static booleanisRunningMacOsX()Checks whether the current platform is Mac OS X.static booleanisRunningUnix()Checks whether the current platform is some flavor of Unix.static booleanisRunningWindows()Checks whether the current platform is Windows.
-
-
-
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.
-
-
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.
-
-