protected static final class CreatorCollector.Vanilla extends ValueInstantiator implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private int |
_type |
private static long |
serialVersionUID |
static int |
TYPE_COLLECTION |
static int |
TYPE_HASH_MAP |
static int |
TYPE_MAP |
Constructor and Description |
---|
Vanilla(int t) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateUsingDefault()
Method that can be called to check whether a default creator (constructor,
or no-arg static factory method)
is available for this instantiator
|
boolean |
canInstantiate()
Method that will return true if any of
canCreateXxx method
returns true: that is, if there is any way that an instance could
be created. |
java.lang.Object |
createUsingDefault(DeserializationContext ctxt)
Method called to create value instance from a JSON value when
no data needs to passed to creator (constructor, factory method);
typically this will call the default constructor of the value object.
|
java.lang.String |
getValueTypeDesc()
Method that returns description of the value type this instantiator
handles.
|
_createFromStringFallbacks, canCreateFromBoolean, canCreateFromDouble, canCreateFromInt, canCreateFromLong, canCreateFromObjectWith, canCreateFromString, canCreateUsingArrayDelegate, canCreateUsingDelegate, createFromBoolean, createFromDouble, createFromInt, createFromLong, createFromObjectWith, createFromString, createUsingArrayDelegate, createUsingDelegate, getArrayDelegateCreator, getArrayDelegateType, getDefaultCreator, getDelegateCreator, getDelegateType, getFromObjectArguments, getIncompleteParameter, getWithArgsCreator
private static final long serialVersionUID
public static final int TYPE_COLLECTION
public static final int TYPE_MAP
public static final int TYPE_HASH_MAP
private final int _type
public java.lang.String getValueTypeDesc()
ValueInstantiator
getValueTypeDesc
in class ValueInstantiator
public boolean canInstantiate()
ValueInstantiator
canCreateXxx
method
returns true: that is, if there is any way that an instance could
be created.canInstantiate
in class ValueInstantiator
public boolean canCreateUsingDefault()
ValueInstantiator
canCreateUsingDefault
in class ValueInstantiator
public java.lang.Object createUsingDefault(DeserializationContext ctxt) throws java.io.IOException
ValueInstantiator
This method is called if ValueInstantiator.getFromObjectArguments(com.fasterxml.jackson.databind.DeserializationConfig)
returns
null or empty List.
createUsingDefault
in class ValueInstantiator
java.io.IOException