Package org.yaml.snakeyaml
Enum DumperOptions.LineBreak
- java.lang.Object
-
- java.lang.Enum<DumperOptions.LineBreak>
-
- org.yaml.snakeyaml.DumperOptions.LineBreak
-
- All Implemented Interfaces:
Serializable
,Comparable<DumperOptions.LineBreak>
- Enclosing class:
- DumperOptions
public static enum DumperOptions.LineBreak extends Enum<DumperOptions.LineBreak>
Platform dependent line break.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DumperOptions.LineBreak
getPlatformLineBreak()
Get the line break used by the current Operating SystemString
getString()
getterString
toString()
for humansstatic DumperOptions.LineBreak
valueOf(String name)
Returns the enum constant of this type with the specified name.static DumperOptions.LineBreak[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WIN
public static final DumperOptions.LineBreak WIN
Windows
-
MAC
public static final DumperOptions.LineBreak MAC
Old Mac (should not be used !)
-
UNIX
public static final DumperOptions.LineBreak UNIX
Linux and Mac
-
-
Method Detail
-
values
public static DumperOptions.LineBreak[] 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 (DumperOptions.LineBreak c : DumperOptions.LineBreak.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DumperOptions.LineBreak valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getString
public String getString()
getter- Returns:
- the break
-
toString
public String toString()
for humans- Overrides:
toString
in classEnum<DumperOptions.LineBreak>
- Returns:
- representation
-
getPlatformLineBreak
public static DumperOptions.LineBreak getPlatformLineBreak()
Get the line break used by the current Operating System- Returns:
- detected line break
-
-