|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<JsonFactory.Feature> com.fasterxml.jackson.core.JsonFactory.Feature
public static enum JsonFactory.Feature
Enumeration that defines all on/off features that can only be
changed for JsonFactory
.
Enum Constant Summary | |
---|---|
CANONICALIZE_FIELD_NAMES
Feature that determines whether JSON object field names are to be canonicalized (details of how canonicalization is done then further specified by INTERN_FIELD_NAMES ). |
|
INTERN_FIELD_NAMES
Feature that determines whether JSON object field names are to be canonicalized using String.intern() or not:
if enabled, all field names will be intern()ed (and caller
can count on this being true for all such names); if disabled,
no intern()ing is done. |
Method Summary | |
---|---|
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 JsonFactory.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JsonFactory.Feature[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JsonFactory.Feature INTERN_FIELD_NAMES
String.intern()
or not:
if enabled, all field names will be intern()ed (and caller
can count on this being true for all such names); if disabled,
no intern()ing is done. There may still be basic
canonicalization (that is, same String will be used to represent
all identical object property names for a single document).
Note: this setting only has effect if
CANONICALIZE_FIELD_NAMES
is true -- otherwise no
canonicalization of any sort is done.
This setting is enabled by default.
public static final JsonFactory.Feature CANONICALIZE_FIELD_NAMES
INTERN_FIELD_NAMES
).
This setting is enabled by default.
Method Detail |
---|
public static JsonFactory.Feature[] values()
for (JsonFactory.Feature c : JsonFactory.Feature.values()) System.out.println(c);
public static JsonFactory.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 name
NullPointerException
- if the argument is nullpublic static int collectDefaults()
public boolean enabledByDefault()
public boolean enabledIn(int flags)
public int getMask()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |