Package org.openrewrite.yaml.tree
Enum Yaml.Scalar.Style
- java.lang.Object
-
- java.lang.Enum<Yaml.Scalar.Style>
-
- org.openrewrite.yaml.tree.Yaml.Scalar.Style
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Yaml.Scalar.Style>
- Enclosing class:
- Yaml.Scalar
public static enum Yaml.Scalar.Style extends java.lang.Enum<Yaml.Scalar.Style>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOUBLE_QUOTEDFOLDEDLITERALPLAINSINGLE_QUOTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Yaml.Scalar.StylevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Yaml.Scalar.Style[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOUBLE_QUOTED
public static final Yaml.Scalar.Style DOUBLE_QUOTED
-
SINGLE_QUOTED
public static final Yaml.Scalar.Style SINGLE_QUOTED
-
LITERAL
public static final Yaml.Scalar.Style LITERAL
-
FOLDED
public static final Yaml.Scalar.Style FOLDED
-
PLAIN
public static final Yaml.Scalar.Style PLAIN
-
-
Method Detail
-
values
public static Yaml.Scalar.Style[] 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 (Yaml.Scalar.Style c : Yaml.Scalar.Style.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Yaml.Scalar.Style 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
-
-