Class AbstractCustomJacksonDeserializer<T>
java.lang.Object
tools.jackson.databind.ValueDeserializer<T>
tools.jackson.databind.deser.std.StdDeserializer<T>
com.graphql_java_generator.client.response.AbstractCustomJacksonDeserializer<T>
- All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider,tools.jackson.databind.deser.ValueInstantiator.Gettable
public abstract class AbstractCustomJacksonDeserializer<T>
extends tools.jackson.databind.deser.std.StdDeserializer<T>
Jackson Deserializer for lists and Custom Scalars.
- Author:
- etienne-sf
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
tools.jackson.databind.ValueDeserializer.None -
Field Summary
Fields inherited from class tools.jackson.databind.deser.std.StdDeserializer
_valueClass, _valueType, F_MASK_INT_COERCIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCustomJacksonDeserializer(AbstractCustomJacksonDeserializer<?> itemDeserializer, boolean list, Class<?> handledType, graphql.schema.GraphQLScalarType graphQLScalarType) protectedAbstractCustomJacksonDeserializer(Class<?> handledType, graphql.schema.GraphQLScalarType graphQLScalarType) The constructor, for non list field. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) Methods inherited from class tools.jackson.databind.deser.std.StdDeserializer
_byteOverflow, _checkBooleanToStringCoercion, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFloatToStringCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkIntToFloatCoercion, _checkIntToStringCoercion, _checkTextualNull, _checkToStringCoercion, _coerceBooleanFromInt, _coercedTypeDesc, _coercedTypeDesc, _coerceIntegral, _deserializeFromArray, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _wrapIOFailure, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializerMethods inherited from class tools.jackson.databind.ValueDeserializer
createContextual, deserialize, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
AbstractCustomJacksonDeserializer
protected AbstractCustomJacksonDeserializer(Class<?> handledType, graphql.schema.GraphQLScalarType graphQLScalarType) The constructor, for non list field. This constructor builds a custom jackson deserialize, for field that can't be deserialize by jackson alone. Typically: GraphQL custom scalars.- Parameters:
handledType- The java type that contains the value of the final items, in the list. For instance for a GraphQL type [[Boolean]], the handle type isBoolean. It is sent to the jacksonStdDeserializer. It is also used when the recursion of the nested list is at the deepest level, and the read token is the "real" value.graphQLScalarType- TheGraphQLScalarTypeinstance that manages this Custom Scalar. It's used to deserialize the value read on the Jackson response from the server It is mandatory for custom scalars, and must null for other data types.
-
AbstractCustomJacksonDeserializer
protected AbstractCustomJacksonDeserializer(AbstractCustomJacksonDeserializer<?> itemDeserializer, boolean list, Class<?> handledType, graphql.schema.GraphQLScalarType graphQLScalarType) - Parameters:
itemDeserializer- The class that can deserialize the items in the list. This recursion allows to deserialize list of lists.
This field must be null to deserialize non list objects. And it's mandatory, to deserialize lists.handledType- The java type that contains the value of the final items, in the list. For instance for a GraphQL type [[Boolean]], the handle type isBoolean. It is sent to the jacksonStdDeserializer. It is also used when the recursion of the nested list is at the deepest level, and the read token is the "real" value.graphQLScalarType- TheGraphQLScalarTypeinstance that manages this Custom Scalar. It's used to deserialize the value read on the Jackson response from the server It is mandatory for custom scalars, and must null for other data types.
-
-
Method Details