|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.util.GlobalConstants
public final class GlobalConstants
Class containing global constants for the system and for the product running this code. Good list of values for system properties can be found at http://www.tolstoy.com/samizdat/sysprops.html
| Field Summary | |
|---|---|
static boolean |
ERROR_CHECKING
Constant controlling if error checking is performed. |
static java.lang.Integer |
INTEGER_0
constant for 0 - Integer |
static java.lang.Integer |
INTEGER_1
constant for 1 - Integer |
protected static java.lang.String |
s_currentOS
Current operating system. |
protected static java.lang.String |
s_currentOSUpper
Current operating system. |
protected static ProductInfo |
s_currentProduct
Information about current product running this code. |
protected static java.lang.String |
s_fileSeparator
Separator used to separate various elements of a file path. |
protected static java.lang.String |
s_lineSeparator
End of lines characters used on given platform. |
protected static java.lang.String |
s_strTempDirectory
System specified temporary directory. |
| Method Summary | |
|---|---|
static ProductInfo |
getCurrentProduct()
|
static java.lang.String |
getFileSeparator()
|
static java.lang.String |
getLineSeparator()
|
static java.lang.String |
getTempDirectory()
|
static boolean |
isLinux()
Are we running on Linux. |
static boolean |
isWindows()
Are we running on Windows. |
static boolean |
isWindows9x()
Are we running on Windows 9X (such as Windows 95, 98, Me). |
static void |
setCurrentProduct(ProductInfo currentProduct)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Integer INTEGER_0
public static final java.lang.Integer INTEGER_1
public static final boolean ERROR_CHECKING
protected static ProductInfo s_currentProduct
protected static java.lang.String s_currentOS
protected static java.lang.String s_currentOSUpper
protected static java.lang.String s_lineSeparator
protected static java.lang.String s_fileSeparator
protected static java.lang.String s_strTempDirectory
| Method Detail |
|---|
public static ProductInfo getCurrentProduct()
public static void setCurrentProduct(ProductInfo currentProduct)
currentProduct - - The currentProduct to set.public static boolean isLinux()
public static boolean isWindows()
public static boolean isWindows9x()
public static java.lang.String getLineSeparator()
public static java.lang.String getFileSeparator()
public static java.lang.String getTempDirectory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||