|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OperatingSystemFamily>
com.xebialabs.deployit.ci.OperatingSystemFamily
public enum OperatingSystemFamily
The family (flavour) of the operating system running on a host.
| Enum Constant Summary | |
|---|---|
UNIX
An operating system from the Unix family: Linux, AIX, MacOS, etc. |
|
WINDOWS
An operating system from the Windows family: NT, XP, Server 2003, Vista, etc. |
|
| Method Summary | |
|---|---|
java.lang.String |
convertText(java.lang.String text)
Converts a text to use the line separator of this operating system family. |
java.lang.String |
getDefaultTemporaryDirectoryPath()
Returns the default path of the temporary directory for this operating system family, i.e. |
java.lang.String |
getFileSeparator()
Returns the character used by the operating system family to separate components of a file path, e.g. |
java.lang.String |
getLineSeparator()
Returns the characters used by the operating system family to separate line in a text file, e.g. |
java.lang.String |
getPathSeparator()
Returns the character used by the operating system family to separate components of a path, e.g. |
java.lang.String |
getScriptExtension()
Returns the extension for scripts used by the operating system family, e.g. |
static OperatingSystemFamily |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OperatingSystemFamily[] |
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, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OperatingSystemFamily WINDOWS
public static final OperatingSystemFamily UNIX
| Method Detail |
|---|
public static OperatingSystemFamily[] values()
for (OperatingSystemFamily c : OperatingSystemFamily.values()) System.out.println(c);
public static OperatingSystemFamily valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getScriptExtension()
public java.lang.String getLineSeparator()
public java.lang.String getDefaultTemporaryDirectoryPath()
public java.lang.String getFileSeparator()
public java.lang.String getPathSeparator()
public java.lang.String convertText(java.lang.String text)
line separator of this operating system family.
text - the text to convert.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||