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.
|
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 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 © 2014-2015 FasterXML. All Rights Reserved.