Top Description Fields Constructors Methods
tools.jackson.databind

public final Enum DefaultTyping

extends Enum<DefaultTyping>
Class Inheritance
Imports
tools.jackson.core.TreeNode

Enumeration used with 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.

Field Summary

Modifier and TypeField and Description
public static final DefaultTyping
JAVA_LANG_OBJECT

This value means that only properties that have java.lang.Object as declared type (including generic types without explicit type) will use default typing.

public static final DefaultTyping
NON_CONCRETE_AND_ARRAYS

Value that means that default typing will be used for all types covered by OBJECT_AND_NON_CONCRETE plus all array types for them.

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 NON_FINAL, but also includes Enums.

public static final DefaultTyping
OBJECT_AND_NON_CONCRETE

Value that means that default typing will be used for properties with declared type of java.lang.Object or an abstract type (abstract class or interface).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static DefaultTyping
public static DefaultTyping[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

JAVA_LANG_OBJECTback to summary
public static final DefaultTyping JAVA_LANG_OBJECT

This value means that only properties that have java.lang.Object as declared type (including generic types without explicit type) will use default typing.

NON_CONCRETE_AND_ARRAYSback to summary
public static final DefaultTyping NON_CONCRETE_AND_ARRAYS

Value that means that default typing will be used for all types covered by OBJECT_AND_NON_CONCRETE plus all array types for them. This does NOT apply to TreeNode and its subtypes.

NON_FINALback 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 TreeNode and its subtypes.

NON_FINAL_AND_ENUMSback to summary
public static final DefaultTyping NON_FINAL_AND_ENUMS

Enables default typing for non-final types as NON_FINAL, but also includes Enums.

OBJECT_AND_NON_CONCRETEback 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 java.lang.Object or an abstract type (abstract class or interface). Note that this does not include array types. This does NOT apply to TreeNode and its subtypes.

Constructor Detail

DefaultTypingback to summary
private DefaultTyping()

Method Detail

valueOfback to summary
public static DefaultTyping valueOf(String name)
valuesback to summary
public static DefaultTyping[] values()