public static enum YAMLGenerator.Feature extends Enum<YAMLGenerator.Feature>
Enum Constant and Description |
---|
CANONICAL_OUTPUT
Do we try to force so-called canonical output or not.
|
MINIMIZE_QUOTES
Whether strings will be rendered without quotes (true) or
with quotes (false, default).
|
SPLIT_LINES
Options passed to SnakeYAML that determines whether longer textual content
gets automatically split into multiple lines or not.
|
USE_NATIVE_OBJECT_ID
Whether to use YAML native Object Id construct for indicating type (true);
or "generic" Object Id mechanism (false).
|
USE_NATIVE_TYPE_ID
Whether to use YAML native Type Id construct for indicating type (true);
or "generic" type property (false).
|
WRITE_DOC_START_MARKER
Whether we are to write an explicit document start marker ("---")
or not.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
_defaultState |
protected int |
_mask |
Modifier and Type | Method and Description |
---|---|
static int |
collectDefaults()
Method that calculates bit set (flags) of all features that
are enabled by default.
|
boolean |
enabledByDefault() |
boolean |
enabledIn(int flags) |
int |
getMask() |
static YAMLGenerator.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YAMLGenerator.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YAMLGenerator.Feature WRITE_DOC_START_MARKER
public static final YAMLGenerator.Feature USE_NATIVE_OBJECT_ID
public static final YAMLGenerator.Feature USE_NATIVE_TYPE_ID
public static final YAMLGenerator.Feature CANONICAL_OUTPUT
public static final YAMLGenerator.Feature SPLIT_LINES
Feature is enabled by default to conform to SnakeYAML defaults as well as backwards compatibility with 2.5 and earlier versions.
public static final YAMLGenerator.Feature MINIMIZE_QUOTES
Minimized quote usage makes for more human readable output; however, content is limited to printable characters according to the rules of literal block style.
public static YAMLGenerator.Feature[] values()
for (YAMLGenerator.Feature c : YAMLGenerator.Feature.values()) System.out.println(c);
public static YAMLGenerator.Feature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static int collectDefaults()
public boolean enabledByDefault()
public boolean enabledIn(int flags)
public int getMask()
Copyright © 2016 FasterXML. All rights reserved.