abstract class BaseNodeDeserializer<T extends JsonNode> extends StdDeserializer<T>
JsonNode
deserializer
implementationsJsonDeserializer.None
_valueClass, F_MASK_INT_COERCIONS
Constructor and Description |
---|
BaseNodeDeserializer(java.lang.Class<T> vc) |
Modifier and Type | Method and Description |
---|---|
protected JsonNode |
_fromEmbedded(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
JsonNodeFactory nodeFactory) |
protected JsonNode |
_fromFloat(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
JsonNodeFactory nodeFactory) |
protected JsonNode |
_fromInt(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
JsonNodeFactory nodeFactory) |
protected void |
_handleDuplicateField(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
JsonNodeFactory nodeFactory,
java.lang.String fieldName,
ObjectNode objectNode,
JsonNode oldValue,
JsonNode newValue)
Method called when there is a duplicate value for a field.
|
protected void |
_reportProblem(com.fasterxml.jackson.core.JsonParser p,
java.lang.String msg) |
protected JsonNode |
deserializeAny(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
JsonNodeFactory nodeFactory) |
protected ArrayNode |
deserializeArray(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
JsonNodeFactory nodeFactory) |
protected ObjectNode |
deserializeObject(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
JsonNodeFactory nodeFactory) |
java.lang.Object |
deserializeWithType(com.fasterxml.jackson.core.JsonParser p,
DeserializationContext ctxt,
TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
boolean |
isCachable()
Method called to see if deserializer instance is cachable and
usable for other properties of same type (type for which instance
was created).
|
_coerceIntegral, _deserializeFromEmpty, _failDoubleToIntCoercion, _hasTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _parseBoolean, _parseBooleanFromOther, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, getValueClass, getValueType, handledType, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserialize, deserialize, findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializer
public BaseNodeDeserializer(java.lang.Class<T> vc)
public java.lang.Object deserializeWithType(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws java.io.IOException
StdDeserializer
deserializeWithType
in class StdDeserializer<T extends JsonNode>
typeDeserializer
- Deserializer to use for handling type informationjava.io.IOException
public boolean isCachable()
JsonDeserializer
Note that cached instances are still resolved on per-property basis,
if instance implements ResolvableDeserializer
:
cached instance is just as the base. This means that in most cases it is safe to
cache instances; however, it only makes sense to cache instances
if instantiation is expensive, or if instances are heavy-weight.
Default implementation returns false, to indicate that no caching is done.
isCachable
in class JsonDeserializer<T extends JsonNode>
protected void _reportProblem(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg) throws JsonMappingException
JsonMappingException
protected void _handleDuplicateField(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory, java.lang.String fieldName, ObjectNode objectNode, JsonNode oldValue, JsonNode newValue) throws com.fasterxml.jackson.core.JsonProcessingException
fieldName
- Name of the field for which duplicate value was foundobjectNode
- Object node that contains valuesoldValue
- Value that existed for the object node before newValue
was addednewValue
- Newly added value just added to the object nodecom.fasterxml.jackson.core.JsonProcessingException
protected final ObjectNode deserializeObject(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws java.io.IOException
java.io.IOException
protected final ArrayNode deserializeArray(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws java.io.IOException
java.io.IOException
protected final JsonNode deserializeAny(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws java.io.IOException
java.io.IOException
protected final JsonNode _fromInt(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws java.io.IOException
java.io.IOException
protected final JsonNode _fromFloat(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws java.io.IOException
java.io.IOException
protected final JsonNode _fromEmbedded(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws java.io.IOException
java.io.IOException