com.dtolabs.rundeck.core.execution.script
Enum ScriptfileUtils.LineEndingStyle

java.lang.Object
  extended by java.lang.Enum<ScriptfileUtils.LineEndingStyle>
      extended by 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


Enum Constant Summary
LOCAL
          Local line endings of the jvm host
UNIX
          Unix line endings, "\n"
WINDOWS
          Windows line endings, "\r\n"
 
Method Summary
static ScriptfileUtils.LineEndingStyle forOsFamily(java.lang.String family)
          Return 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
 java.lang.String getLineSeparator()
          Return the line separator string for this style
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.
 
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

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 name
java.lang.NullPointerException - if the argument is null

forOsFamily

public static ScriptfileUtils.LineEndingStyle forOsFamily(java.lang.String family)
Return 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

Parameters:
family -
Returns:

getLineSeparator

public java.lang.String getLineSeparator()
Return the line separator string for this style

Returns: