java.lang.Enum types.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | _enabledByDefault
Whether feature is enabled or disabled by default. |
| private final int | |
| public static final EnumFeature | FAIL_ON_NUMBERS_FOR_ENUMS
Feature that determines whether JSON integer numbers are valid values to be used for deserializing Java enum values. |
| private static final int | |
| public static final EnumFeature | READ_ENUM_KEYS_USING_INDEX
Feature that determines standard deserialization mechanism used for
Enum values: if enabled, Enums are assumed to have been serialized using
index of Note this feature should be symmetric to
as |
| public static final EnumFeature | READ_ENUMS_USING_TO_STRING
Feature that determines the deserialization mechanism used for
Enum values: if enabled, Enums are assumed to have been serialized using
return value of |
| public static final EnumFeature | READ_UNKNOWN_ENUM_VALUES_AS_NULL
Feature that allows unknown Enum values to be parsed as |
| public static final EnumFeature | READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE
Feature that allows unknown Enum values to be ignored and replaced by a predefined value specified through
|
| public static final EnumFeature | WRITE_ENUM_KEYS_USING_INDEX
Feature that determines whether {link Enum}s
used as |
| public static final EnumFeature | WRITE_ENUMS_TO_LOWERCASE
Feature that determines standard serialization mechanism used for
Enum values: if enabled, return value of |
| public static final EnumFeature | WRITE_ENUMS_USING_INDEX
Feature that determines whether Java Enum values are serialized as numbers (true), or textual values (false). |
| public static final EnumFeature | WRITE_ENUMS_USING_TO_STRING
Feature that determines standard serialization mechanism used for
Enum values: if enabled, return value of |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | enabledByDefault()
Implements tools. Accessor for checking whether this feature is enabled by default. |
| public boolean | enabledIn(int flags)
Implements tools. Convenience method for checking whether feature is enabled in given bitmask. |
| public int | featureIndex()
Implements tools. Internal index used for efficient storage and index; no user serviceable contents inside! |
| public int | getMask()
Implements tools. Returns bit mask for this feature instance; must be a single bit,
that is of form |
| public static EnumFeature | |
| public static EnumFeature[] |
| _enabledByDefault | back to summary |
|---|---|
| private final boolean _enabledByDefault Whether feature is enabled or disabled by default. | |
| _mask | back to summary |
|---|---|
| private final int _mask | |
| FAIL_ON_NUMBERS_FOR_ENUMS | back to summary |
|---|---|
| public static final EnumFeature FAIL_ON_NUMBERS_FOR_ENUMS Feature that determines whether JSON integer numbers are valid
values to be used for deserializing Java enum values.
If set to 'false' numbers are acceptable and are used to map to
ordinal() of matching enumeration value; if 'true', numbers are
not allowed and a
Feature used to be one of Feature is disabled by default. | |
| FEATURE_INDEX | back to summary |
|---|---|
| private static final int FEATURE_INDEX | |
| READ_ENUM_KEYS_USING_INDEX | back to summary |
|---|---|
| public static final EnumFeature READ_ENUM_KEYS_USING_INDEX Feature that determines standard deserialization mechanism used for
Enum values: if enabled, Enums are assumed to have been serialized using
index of Note this feature should be symmetric to
as Feature is disabled by default.
| |
| READ_ENUMS_USING_TO_STRING | back to summary |
|---|---|
| public static final EnumFeature READ_ENUMS_USING_TO_STRING Feature that determines the deserialization mechanism used for
Enum values: if enabled, Enums are assumed to have been serialized using
return value of Note this feature should usually have same value
as
Feature used to be one of Feature is enabled by default as of Jackson 3.0 (in 2.x it was disabled). | |
| READ_UNKNOWN_ENUM_VALUES_AS_NULL | back to summary |
|---|---|
| public static final EnumFeature READ_UNKNOWN_ENUM_VALUES_AS_NULL Feature that allows unknown Enum values to be parsed as
Note that in some cases this will effectively ignore unknown
Also note that this feature has lower precedence than
Feature used to be one of Feature is disabled by default. | |
| READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE | back to summary |
|---|---|
| public static final EnumFeature READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE Feature that allows unknown Enum values to be ignored and replaced by a predefined value specified through
Note that this feature has higher precedence than
Feature used to be one of Feature is disabled by default. | |
| WRITE_ENUM_KEYS_USING_INDEX | back to summary |
|---|---|
| public static final EnumFeature WRITE_ENUM_KEYS_USING_INDEX Feature that determines whether {link Enum}s
used as Note counterpart for this settings is
Feature used to be one of Feature is disabled by default. | |
| WRITE_ENUMS_TO_LOWERCASE | back to summary |
|---|---|
| public static final EnumFeature WRITE_ENUMS_TO_LOWERCASE Feature that determines standard serialization mechanism used for
Enum values: if enabled, return value of Note this feature CANNOT be changed on per-call basis: it will have to
be set on Feature is disabled by default.
| |
| WRITE_ENUMS_USING_INDEX | back to summary |
|---|---|
| public static final EnumFeature WRITE_ENUMS_USING_INDEX Feature that determines whether Java Enum values are serialized
as numbers (true), or textual values (false). If textual values are
used, other settings are also considered.
If this feature is enabled,
return value of
Note that this feature has precedence over
Note that since 2.10, this does NOT apply to
Feature used to be one of Feature is disabled by default. | |
| WRITE_ENUMS_USING_TO_STRING | back to summary |
|---|---|
| public static final EnumFeature WRITE_ENUMS_USING_TO_STRING Feature that determines standard serialization mechanism used for
Enum values: if enabled, return value of Note this feature should usually have same value
as
Feature used to be one of Feature is enabled by default as of Jackson 3.0 (in 2.x it was disabled). | |
| EnumFeature | back to summary |
|---|---|
| private EnumFeature(boolean enabledByDefault) | |
| enabledByDefault | back to summary |
|---|---|
| public boolean enabledByDefault() Implements tools. Doc from tools. Accessor for checking whether this feature is enabled by default.
| |
| enabledIn | back to summary |
|---|---|
| public boolean enabledIn(int flags) Implements tools. Doc from tools. Convenience method for checking whether feature is enabled in given bitmask.
| |
| featureIndex | back to summary |
|---|---|
| public int featureIndex() Implements tools. Doc from tools. Internal index used for efficient storage and index; no user serviceable contents inside!
| |
| getMask | back to summary |
|---|---|
| public int getMask() Implements tools. Doc from tools. Returns bit mask for this feature instance; must be a single bit,
that is of form
| |
| valueOf | back to summary |
|---|---|
| public static EnumFeature valueOf(String name) | |
| values | back to summary |
|---|---|
| public static EnumFeature[] values() | |