Enum ScalarStyle
- All Implemented Interfaces:
Serializable,Comparable<ScalarStyle>
Style that can be used to represent a scalar.
- Since:
- 4.3.0
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA double-quoted string.Folded scalar.Literal scalar.A single-quoted string.String without any quotation. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScalarStyleReturns the enum constant of this type with the specified name.static ScalarStyle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DOUBLE_QUOTED
A double-quoted string."hello world"
- Since:
- 4.3.0
-
SINGLE_QUOTED
A single-quoted string.'hello world'
- Since:
- 4.3.0
-
UNQUOTED
String without any quotation.This may be ambiguous with non-string types.
- Since:
- 4.3.0
-
FOLDED
Folded scalar.key: > folded scalar line breaks collapsed- Since:
- 4.3.0
-
LITERAL
Literal scalar.key: | literal scalar line breaks preserved- Since:
- 4.3.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-