Enum ScriptfileUtils.LineEndingStyle
- java.lang.Object
-
- java.lang.Enum<ScriptfileUtils.LineEndingStyle>
-
- com.dtolabs.rundeck.core.execution.script.ScriptfileUtils.LineEndingStyle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ScriptfileUtils.LineEndingStyle>
- Enclosing class:
- ScriptfileUtils
public static enum ScriptfileUtils.LineEndingStyle extends java.lang.Enum<ScriptfileUtils.LineEndingStyle>
Line ending style
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScriptfileUtils.LineEndingStyle
forOsFamily(java.lang.String family)
java.lang.String
getLineSeparator()
static ScriptfileUtils.LineEndingStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ScriptfileUtils.LineEndingStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNIX
public static final ScriptfileUtils.LineEndingStyle UNIX
Unix line endings, "\n"
-
WINDOWS
public static final ScriptfileUtils.LineEndingStyle WINDOWS
Windows line endings, "\r\n"
-
LOCAL
public static final ScriptfileUtils.LineEndingStyle LOCAL
Local line endings of the jvm host
-
-
Method Detail
-
values
public static ScriptfileUtils.LineEndingStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScriptfileUtils.LineEndingStyle c : ScriptfileUtils.LineEndingStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScriptfileUtils.LineEndingStyle valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forOsFamily
public static ScriptfileUtils.LineEndingStyle forOsFamily(java.lang.String family)
- Parameters:
family
- family- Returns:
- line ending style given an OS Family string, or returns the Local line ending style if the string does not map to a known style
-
getLineSeparator
public java.lang.String getLineSeparator()
- Returns:
- the line separator string for this style
-
-