|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OSType>
org.crosswire.common.util.OSType
public enum OSType
Types of Operating Systems for which specialized behavior is needed.
The GNU Lesser General Public License for details.| Enum Constant Summary | |
|---|---|
DEFAULT
|
|
MAC
|
|
WIN32
|
|
| Field Summary | |
|---|---|
private static String |
MAC_USER_DATA_AREA
The Mac user settings parent directory |
private String |
name
The name of the type |
private static OSType |
osType
The machine's osType |
private static String |
WIN32_USER_DATA_AREA
The Windows user settings parent directory |
| Method Summary | |
|---|---|
static OSType |
fromString(String name)
Lookup method to convert from a String to an OSType |
static OSType |
getOSType()
Get the machine's OSType. |
abstract URI |
getUserArea()
Get the user area for this OSType. |
abstract URI |
getUserAreaFolder(String hiddenFolderName,
String visibleFolderName)
A folder in the user area. |
static URI |
getUserHome()
|
String |
toString()
|
static OSType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OSType[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OSType MAC
public static final OSType WIN32
public static final OSType DEFAULT
| Field Detail |
|---|
private String name
private static final String WIN32_USER_DATA_AREA
private static final String MAC_USER_DATA_AREA
private static OSType osType
| Method Detail |
|---|
public static OSType[] values()
for (OSType c : OSType.values()) System.out.println(c);
public static OSType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic abstract URI getUserArea()
public abstract URI getUserAreaFolder(String hiddenFolderName,
String visibleFolderName)
hiddenFolderName - is typically a "unix" hidden folder name such as .jsword.visibleFolderName - is an visible folder name, such as JSword.
public static URI getUserHome()
public static OSType getOSType()
public static OSType fromString(String name)
name - the name of an OSType
public String toString()
toString in class Enum<OSType>
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||