Package jmri.jmrit.logixng.util
Enum LineEnding
- java.lang.Object
-
- java.lang.Enum<LineEnding>
-
- jmri.jmrit.logixng.util.LineEnding
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LineEnding>
public enum LineEnding extends java.lang.Enum<LineEnding>
Enum for line endings
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HtmlBreak
MacLinuxLf
None
Space
System
WindowsCrLf
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLineEnding()
boolean
isTrueLineEnding()
java.lang.String
toString()
static LineEnding[]
trueValues()
static LineEnding
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LineEnding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WindowsCrLf
public static final LineEnding WindowsCrLf
-
MacLinuxLf
public static final LineEnding MacLinuxLf
-
System
public static final LineEnding System
-
Space
public static final LineEnding Space
-
HtmlBreak
public static final LineEnding HtmlBreak
-
None
public static final LineEnding None
-
-
Method Detail
-
values
public static LineEnding[] 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 (LineEnding c : LineEnding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LineEnding 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
-
getLineEnding
public java.lang.String getLineEnding()
-
isTrueLineEnding
public boolean isTrueLineEnding()
-
trueValues
public static LineEnding[] trueValues()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<LineEnding>
-
-