public enum OSType extends Enum<OSType>
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final OSType MAC
public static final OSType WIN32
public static final OSType DEFAULT
private String name
private static final String WIN32_USER_DATA_AREA
private static final String MAC_USER_DATA_AREA
private static OSType osType
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 nameNullPointerException
- 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