JsonMapper.defaultTyping() methods
to specify what kind of types (classes) default typing should
be used for. It will only be used if no explicit type information
is found, but this enumeration further limits subset of those types.
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultTyping | JAVA_LANG_OBJECT
This value means that only properties that have
|
| public static final DefaultTyping | NON_CONCRETE_AND_ARRAYS
Value that means that default typing will be used for
all types covered by |
| public static final DefaultTyping | NON_FINAL
Value that means that default typing will be used for all non-final types, with exception of small number of "natural" types (String, Boolean, Integer, Double), which can be correctly inferred from JSON; as well as for all arrays of non-final types. |
| public static final DefaultTyping | NON_FINAL_AND_ENUMS
Enables default typing for non-final types as |
| public static final DefaultTyping | OBJECT_AND_NON_CONCRETE
Value that means that default typing will be used for
properties with declared type of |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DefaultTyping | |
| public static DefaultTyping[] |
| JAVA_LANG_OBJECT | back to summary |
|---|---|
| public static final DefaultTyping JAVA_LANG_OBJECT This value means that only properties that have
| |
| NON_CONCRETE_AND_ARRAYS | back to summary |
|---|---|
| public static final DefaultTyping NON_CONCRETE_AND_ARRAYS Value that means that default typing will be used for
all types covered by | |
| NON_FINAL | back to summary |
|---|---|
| public static final DefaultTyping NON_FINAL Value that means that default typing will be used for
all non-final types, with exception of small number of
"natural" types (String, Boolean, Integer, Double), which
can be correctly inferred from JSON; as well as for
all arrays of non-final types.
This does NOT apply to | |
| NON_FINAL_AND_ENUMS | back to summary |
|---|---|
| public static final DefaultTyping NON_FINAL_AND_ENUMS Enables default typing for non-final types as | |
| OBJECT_AND_NON_CONCRETE | back to summary |
|---|---|
| public static final DefaultTyping OBJECT_AND_NON_CONCRETE Value that means that default typing will be used for
properties with declared type of | |
| DefaultTyping | back to summary |
|---|---|
| private DefaultTyping() | |
| valueOf | back to summary |
|---|---|
| public static DefaultTyping valueOf(String name) | |
| values | back to summary |
|---|---|
| public static DefaultTyping[] values() | |