Package | Description |
---|---|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
com.fasterxml.jackson.databind.deser |
Contains implementation classes of deserialization part of
data binding.
|
com.fasterxml.jackson.databind.deser.impl |
Contains those implementation classes of deserialization part of
data binding that are not considered part of public or semi-public
interfaces.
|
com.fasterxml.jackson.databind.deser.std |
Contains public standard implementations of abstraction that
Jackson uses.
|
com.fasterxml.jackson.databind.exc | |
com.fasterxml.jackson.databind.ext |
Contains extended support for "external" packages: things that
may or may not be present in runtime environment, but that are
commonly enough used so that explicit support can be added.
|
com.fasterxml.jackson.databind.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
com.fasterxml.jackson.databind.jsonFormatVisitors |
Classes used for exposing logical structure of POJOs as Jackson
sees it, and exposed via
ObjectMapper.acceptJsonFormatVisitor(Class, JsonFormatVisitorWrapper)
and
ObjectMapper.acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, JsonFormatVisitorWrapper)
methods. |
com.fasterxml.jackson.databind.jsonschema |
Classes needed for JSON schema support (currently just ability
to generate schemas using serialization part of data mapping)
|
com.fasterxml.jackson.databind.jsontype |
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
|
com.fasterxml.jackson.databind.jsontype.impl |
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver . |
com.fasterxml.jackson.databind.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(com.fasterxml.jackson.databind.Module) . |
com.fasterxml.jackson.databind.ser |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.impl |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.std | |
com.fasterxml.jackson.databind.util |
Utility classes for Mapper package.
|
Modifier and Type | Method and Description |
---|---|
JsonMappingException |
DeserializationContext.endOfInputException(Class<?> instClass)
Deprecated.
Since 2.8; currently no way to catch EOF at databind level
|
static JsonMappingException |
JsonMappingException.from(DeserializationContext ctxt,
String msg) |
static JsonMappingException |
JsonMappingException.from(DeserializationContext ctxt,
String msg,
Throwable t) |
static JsonMappingException |
JsonMappingException.from(JsonGenerator g,
String msg) |
static JsonMappingException |
JsonMappingException.from(JsonGenerator g,
String msg,
Throwable problem) |
static JsonMappingException |
JsonMappingException.from(JsonParser p,
String msg) |
static JsonMappingException |
JsonMappingException.from(JsonParser p,
String msg,
Throwable problem) |
static JsonMappingException |
JsonMappingException.from(SerializerProvider ctxt,
String msg) |
static JsonMappingException |
JsonMappingException.from(SerializerProvider ctxt,
String msg,
Throwable problem) |
static JsonMappingException |
JsonMappingException.fromUnexpectedIOE(IOException src)
Factory method used when "upgrading" an
IOException into
JsonMappingException : usually only needed to comply with
a signature. |
JsonMappingException |
DeserializationContext.instantiationException(Class<?> instClass,
String msg0)
Helper method for constructing instantiation exception for specified type,
to indicate that instantiation failed due to missing instantiator
(creator; constructor or factory method).
|
JsonMappingException |
DeserializationContext.instantiationException(Class<?> instClass,
Throwable cause)
Helper method for constructing instantiation exception for specified type,
to indicate problem with physically constructing instance of
specified class (missing constructor, exception from constructor)
|
protected abstract JsonMappingException |
DatabindContext.invalidTypeIdException(JavaType baseType,
String typeId,
String extraDesc)
Helper method for constructing exception to indicate that given type id
could not be resolved to a valid subtype of specified base type.
|
JsonMappingException |
SerializerProvider.invalidTypeIdException(JavaType baseType,
String typeId,
String extraDesc) |
JsonMappingException |
DeserializationContext.invalidTypeIdException(JavaType baseType,
String typeId,
String extraDesc) |
JsonMappingException |
DeserializationContext.mappingException(Class<?> targetClass)
Deprecated.
Since 2.8 use
DeserializationContext.handleUnexpectedToken(Class, JsonParser) instead |
JsonMappingException |
DeserializationContext.mappingException(Class<?> targetClass,
JsonToken token)
Deprecated.
Since 2.8 use
DeserializationContext.handleUnexpectedToken(Class, JsonParser) instead |
JsonMappingException |
DeserializationContext.mappingException(String message)
Deprecated.
Since 2.9 use more specific error reporting methods instead
|
JsonMappingException |
SerializerProvider.mappingException(String message,
Object... msgArgs)
Deprecated.
Since 2.9
|
JsonMappingException |
DeserializationContext.mappingException(String msg,
Object... msgArgs)
Deprecated.
Since 2.9 use more specific error reporting methods instead
|
protected JsonMappingException |
SerializerProvider.mappingException(Throwable t,
String message,
Object... msgArgs)
Deprecated.
Since 2.9
|
JsonMappingException |
DeserializationContext.missingTypeIdException(JavaType baseType,
String extraDesc) |
JsonMappingException |
DeserializationContext.unknownTypeException(JavaType type,
String id,
String extraDesc)
|
JsonMappingException |
DeserializationContext.weirdKeyException(Class<?> keyClass,
String keyValue,
String msg)
Helper method for constructing exception to indicate that given JSON
Object field name was not in format to be able to deserialize specified
key type.
|
JsonMappingException |
DeserializationContext.weirdNativeValueException(Object value,
Class<?> instClass)
Helper method for constructing exception to indicate that input JSON
token of type "native value" (see
JsonToken.VALUE_EMBEDDED_OBJECT )
is of incompatible type (and there is no delegating creator or such to use)
and can not be used to construct value of specified type (usually POJO). |
JsonMappingException |
DeserializationContext.weirdNumberException(Number value,
Class<?> instClass,
String msg)
Helper method for constructing exception to indicate that input JSON
Number was not suitable for deserializing into given target type.
|
JsonMappingException |
DeserializationContext.weirdStringException(String value,
Class<?> instClass,
String msgBase)
Helper method for constructing exception to indicate that input JSON
String was not suitable for deserializing into given target type.
|
static JsonMappingException |
JsonMappingException.wrapWithPath(Throwable src,
JsonMappingException.Reference ref)
Method that can be called to either create a new JsonMappingException
(if underlying exception is not a JsonMappingException), or augment
given exception with given path/reference information.
|
static JsonMappingException |
JsonMappingException.wrapWithPath(Throwable src,
Object refFrom,
int index)
Method that can be called to either create a new JsonMappingException
(if underlying exception is not a JsonMappingException), or augment
given exception with given path/reference information.
|
static JsonMappingException |
JsonMappingException.wrapWithPath(Throwable src,
Object refFrom,
String refFieldName)
Method that can be called to either create a new JsonMappingException
(if underlying exception is not a JsonMappingException), or augment
given exception with given path/reference information.
|
JsonMappingException |
DeserializationContext.wrongTokenException(JsonParser p,
Class<?> targetType,
JsonToken expToken,
String extra) |
JsonMappingException |
DeserializationContext.wrongTokenException(JsonParser p,
JavaType targetType,
JsonToken expToken,
String extra)
Helper method for constructing
JsonMappingException to indicate
that the token encountered was of type different than what should
be seen at that position, usually within a sequence of expected tokens. |
JsonMappingException |
DeserializationContext.wrongTokenException(JsonParser p,
JsonToken expToken,
String msg)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected <R> R |
MappingIterator._handleMappingException(JsonMappingException e) |
Modifier and Type | Method and Description |
---|---|
protected JsonSerializer<Object> |
SerializerProvider._createAndCacheUntypedSerializer(Class<?> rawType)
Method that will try to construct a value serializer; and if
one is successfully created, cache it for reuse.
|
protected JsonSerializer<Object> |
SerializerProvider._createAndCacheUntypedSerializer(JavaType type) |
protected JsonSerializer<Object> |
SerializerProvider._createUntypedSerializer(JavaType type) |
protected JsonSerializer<Object> |
SerializerProvider._findExplicitUntypedSerializer(Class<?> runtimeType)
Method that will try to find a serializer, either from cache
or by constructing one; but will not return an "unknown" serializer
if this cannot be done but rather returns null.
|
protected JsonDeserializer<Object> |
ObjectReader._findRootDeserializer(DeserializationContext ctxt)
Method called to locate deserializer for the passed root-level value.
|
protected JsonDeserializer<Object> |
ObjectMapper._findRootDeserializer(DeserializationContext ctxt,
JavaType valueType)
Method called to locate deserializer for the passed root-level value.
|
protected JsonDeserializer<Object> |
ObjectReader._findTreeDeserializer(DeserializationContext ctxt) |
protected JsonSerializer<Object> |
SerializerProvider._handleContextualResolvable(JsonSerializer<?> ser,
BeanProperty property)
Helper method called to resolve and contextualize given
serializer, if and as necessary.
|
protected JsonSerializer<Object> |
SerializerProvider._handleResolvable(JsonSerializer<?> ser) |
protected <T> T |
DatabindContext._throwNotASubtype(JavaType baseType,
String subType) |
protected <T> T |
DatabindContext._throwSubtypeClassNotAllowed(JavaType baseType,
String subType,
PolymorphicTypeValidator ptv) |
protected <T> T |
DatabindContext._throwSubtypeNameNotAllowed(JavaType baseType,
String subType,
PolymorphicTypeValidator ptv) |
void |
ObjectWriter.acceptJsonFormatVisitor(Class<?> type,
JsonFormatVisitorWrapper visitor)
Since 2.6
|
void |
ObjectMapper.acceptJsonFormatVisitor(Class<?> type,
JsonFormatVisitorWrapper visitor)
Method for visiting type hierarchy for given type, using specified visitor.
|
void |
ObjectWriter.acceptJsonFormatVisitor(JavaType type,
JsonFormatVisitorWrapper visitor)
Method for visiting type hierarchy for given type, using specified visitor.
|
void |
ObjectMapper.acceptJsonFormatVisitor(JavaType type,
JsonFormatVisitorWrapper visitor)
Method for visiting type hierarchy for given type, using specified visitor.
|
void |
JsonSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType type)
Default implementation simply calls
JsonFormatVisitorWrapper.expectAnyFormat(JavaType) . |
Converter<Object,Object> |
DatabindContext.converterInstance(Annotated annotated,
Object converterDef)
Helper method to use to construct a
Converter , given a definition
that may be either actual converter instance, or Class for instantiating one. |
void |
BeanProperty.depositSchemaProperty(JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider)
Method that can be called to visit the type structure that this
property is part of.
|
void |
BeanProperty.Bogus.depositSchemaProperty(JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider) |
abstract JsonDeserializer<Object> |
DeserializationContext.deserializerInstance(Annotated annotated,
Object deserDef) |
JsonSerializer<Object> |
SerializerProvider.findContentValueSerializer(Class<?> valueType,
BeanProperty property)
|
JsonSerializer<Object> |
SerializerProvider.findContentValueSerializer(JavaType valueType,
BeanProperty property)
Alternative to
SerializerProvider.findPrimaryPropertySerializer(JavaType, BeanProperty) called not
for primary value, but "content" of such primary serializer: element of an array or
Collection , value of Map entry and so on. |
JsonDeserializer<Object> |
DeserializationContext.findContextualValueDeserializer(JavaType type,
BeanProperty prop)
Method for finding a value deserializer, and creating a contextual
version if necessary, for value reached via specified property.
|
Object |
DeserializationContext.findInjectableValue(Object valueId,
BeanProperty forProperty,
Object beanInstance) |
abstract Object |
InjectableValues.findInjectableValue(Object valueId,
DeserializationContext ctxt,
BeanProperty forProperty,
Object beanInstance)
Method called to find value identified by id
valueId to
inject as value of specified property during deserialization, passing
POJO instance in which value will be injected if it is available
(will be available when injected via field or setter; not available
when injected via constructor or factory method argument). |
Object |
InjectableValues.Std.findInjectableValue(Object valueId,
DeserializationContext ctxt,
BeanProperty forProperty,
Object beanInstance) |
KeyDeserializer |
DeserializationContext.findKeyDeserializer(JavaType keyType,
BeanProperty prop)
Convenience method, functionally same as:
|
JsonSerializer<Object> |
SerializerProvider.findKeySerializer(Class<?> rawKeyType,
BeanProperty property) |
JsonSerializer<Object> |
SerializerProvider.findKeySerializer(JavaType keyType,
BeanProperty property)
Method called to get the serializer to use for serializing
non-null Map keys.
|
JsonDeserializer<Object> |
DeserializationContext.findNonContextualValueDeserializer(JavaType type)
Variant that will try to locate deserializer for current type, but without
performing any contextualization (unlike
DeserializationContext.findContextualValueDeserializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.BeanProperty) )
or checking for need to create a TypeDeserializer (unlike
DeserializationContext.findRootValueDeserializer(JavaType) . |
JsonSerializer<Object> |
SerializerProvider.findNullKeySerializer(JavaType serializationType,
BeanProperty property)
Method called to find a serializer to use for null values for given
declared type.
|
JsonSerializer<Object> |
SerializerProvider.findNullValueSerializer(BeanProperty property)
Method called to get the serializer to use for serializing null
values for specified property.
|
JsonSerializer<Object> |
SerializerProvider.findPrimaryPropertySerializer(Class<?> valueType,
BeanProperty property)
|
JsonSerializer<Object> |
SerializerProvider.findPrimaryPropertySerializer(JavaType valueType,
BeanProperty property)
Similar to
SerializerProvider.findValueSerializer(JavaType, BeanProperty) , but used
when finding "primary" property value serializer (one directly handling
value of the property). |
JsonDeserializer<Object> |
DeserializationContext.findRootValueDeserializer(JavaType type)
Method for finding a deserializer for root-level value.
|
TypeDeserializer |
DeserializationConfig.findTypeDeserializer(JavaType baseType)
Helper method that is needed to properly handle polymorphic referenced
types, such as types referenced by
AtomicReference ,
or various "optional" types. |
JsonSerializer<Object> |
SerializerProvider.findTypedValueSerializer(Class<?> valueType,
boolean cache,
BeanProperty property)
Method called to locate regular serializer, matching type serializer,
and if both found, wrap them in a serializer that calls both in correct
sequence.
|
JsonSerializer<Object> |
SerializerProvider.findTypedValueSerializer(JavaType valueType,
boolean cache,
BeanProperty property)
Method called to locate regular serializer, matching type serializer,
and if both found, wrap them in a serializer that calls both in correct
sequence.
|
TypeSerializer |
SerializerProvider.findTypeSerializer(JavaType javaType)
Method called to get the
TypeSerializer to use for including Type Id necessary
for serializing for the given Java class. |
JsonSerializer<Object> |
SerializerProvider.findValueSerializer(Class<?> valueType)
Method variant used when we do NOT want contextualization to happen; it will need
to be handled at a later point, but caller wants to be able to do that
as needed; sometimes to avoid infinite loops
|
JsonSerializer<Object> |
SerializerProvider.findValueSerializer(Class<?> valueType,
BeanProperty property)
Method called to get hold of a serializer for a value of given type;
or if no such serializer can be found, a default handler (which
may do a best-effort generic serialization or just simply
throw an exception when invoked).
|
JsonSerializer<Object> |
SerializerProvider.findValueSerializer(JavaType valueType)
Method variant used when we do NOT want contextualization to happen; it will need
to be handled at a later point, but caller wants to be able to do that
as needed; sometimes to avoid infinite loops
|
JsonSerializer<Object> |
SerializerProvider.findValueSerializer(JavaType valueType,
BeanProperty property)
Similar to
SerializerProvider.findValueSerializer(Class,BeanProperty) , but takes
full generics-aware type instead of raw class. |
JsonSchema |
ObjectMapper.generateJsonSchema(Class<?> t)
Deprecated.
Since 2.6 use external JSON Schema generator (https://github.com/FasterXML/jackson-module-jsonSchema)
(which under the hood calls
ObjectMapper.acceptJsonFormatVisitor(JavaType, JsonFormatVisitorWrapper) ) |
Object |
JsonDeserializer.getEmptyValue(DeserializationContext ctxt)
Method called to determine value to be used for "empty" values
(most commonly when deserializing from empty JSON Strings).
|
T |
JsonDeserializer.getNullValue(DeserializationContext ctxt)
Method that can be called to determine value to be used for
representing null values (values deserialized when JSON token
is
JsonToken.VALUE_NULL ). |
void |
DeserializationContext.handleBadMerge(JsonDeserializer<?> deser)
Method that deserializer may call if it is called to do an update ("merge")
but deserializer operates on a non-mergeable type.
|
JsonDeserializer<?> |
DeserializationContext.handlePrimaryContextualization(JsonDeserializer<?> deser,
BeanProperty prop,
JavaType type)
Method called for primary property deserializers (ones
directly created to deserialize values of a POJO property),
to handle details of resolving
ContextualDeserializer with given property context. |
JsonSerializer<?> |
SerializerProvider.handlePrimaryContextualization(JsonSerializer<?> ser,
BeanProperty property)
Method called for primary property serializers (ones
directly created to serialize values of a POJO property),
to handle details of resolving
ContextualSerializer with given property context. |
JsonDeserializer<?> |
DeserializationContext.handleSecondaryContextualization(JsonDeserializer<?> deser,
BeanProperty prop,
JavaType type)
Method called for secondary property deserializers (ones
NOT directly created to deal with an annotatable POJO property,
but instead created as a component -- such as value deserializers
for structured types, or deserializers for root values)
to handle details of resolving
ContextualDeserializer with given property context. |
JsonSerializer<?> |
SerializerProvider.handleSecondaryContextualization(JsonSerializer<?> ser,
BeanProperty property)
Method called for secondary property serializers (ones
NOT directly created to serialize values of a POJO property
but instead created as a dependant serializer -- such as value serializers
for structured types, or serializers for root values)
to handle details of resolving
ContextualDeserializer with given property context. |
abstract Object |
SerializerProvider.includeFilterInstance(BeanPropertyDefinition forProperty,
Class<?> filterClass)
Method that can be called to construct and configure
JsonInclude
filter instance,
given a Class to instantiate (with default constructor, by default). |
abstract boolean |
SerializerProvider.includeFilterSuppressNulls(Object filter)
Follow-up method that may be called after calling
SerializerProvider.includeFilterInstance(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition, java.lang.Class<?>) ,
to check handling of `null` values by the filter. |
abstract KeyDeserializer |
DeserializationContext.keyDeserializerInstance(Annotated annotated,
Object deserDef) |
ObjectIdGenerator<?> |
DatabindContext.objectIdGeneratorInstance(Annotated annotated,
ObjectIdInfo objectIdInfo) |
JsonNode |
ObjectReader.readTree(String json)
Same as
ObjectReader.readTree(InputStream) except content read from
passed-in String |
JsonNode |
ObjectMapper.readTree(String content)
Same as
ObjectMapper.readTree(InputStream) except content read from
passed-in String |
<T> T |
ObjectMapper.readValue(byte[] src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(byte[] src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(File src,
Class<T> valueType)
Method to deserialize JSON content from given file into given Java type.
|
<T> T |
ObjectMapper.readValue(File src,
JavaType valueType)
Method to deserialize JSON content from given file into given Java type.
|
<T> T |
ObjectMapper.readValue(File src,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content from given file into given Java type.
|
<T> T |
ObjectMapper.readValue(InputStream src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(InputStream src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(InputStream src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(JsonParser p,
Class<T> valueType)
Method to deserialize JSON content into a non-container
type (it can be an array type, however): typically a bean, array
or a wrapper type (like
Boolean ). |
<T> T |
ObjectMapper.readValue(JsonParser p,
JavaType valueType)
Type-safe overloaded method, basically alias for
ObjectMapper.readValue(JsonParser, Class) . |
<T> T |
ObjectMapper.readValue(JsonParser p,
ResolvedType valueType)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(JsonParser p,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(Reader src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(Reader src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(Reader src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectReader.readValue(String src)
Method that binds content read from given JSON string,
using configuration of this reader.
|
<T> T |
ObjectMapper.readValue(String content,
Class<T> valueType)
Method to deserialize JSON content from given JSON content String.
|
<T> T |
ObjectMapper.readValue(String content,
JavaType valueType)
Method to deserialize JSON content from given JSON content String.
|
<T> T |
ObjectMapper.readValue(String content,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content from given JSON content String.
|
<T> T |
ObjectMapper.readValue(URL src,
Class<T> valueType)
Method to deserialize JSON content from given resource into given Java type.
|
<T> T |
ObjectMapper.readValue(URL src,
JavaType valueType)
Same as
ObjectMapper.readValue(java.net.URL, Class) except that target specified by JavaType . |
<T> T |
ObjectMapper.readValue(URL src,
TypeReference<T> valueTypeRef)
Same as
ObjectMapper.readValue(java.net.URL, Class) except that target specified by TypeReference . |
JavaType |
AnnotationIntrospector.refineDeserializationType(MapperConfig<?> config,
Annotated a,
JavaType baseType)
Method called to find out possible type refinements to use
for deserialization.
|
JavaType |
AnnotationIntrospector.refineSerializationType(MapperConfig<?> config,
Annotated a,
JavaType baseType)
Method called to find out possible type refinements to use
for deserialization, including not just value itself but
key and/or content type, if type has those.
|
<T> T |
DatabindContext.reportBadDefinition(Class<?> type,
String msg) |
<T> T |
SerializerProvider.reportBadDefinition(Class<?> raw,
String msg,
Throwable cause) |
abstract <T> T |
DatabindContext.reportBadDefinition(JavaType type,
String msg)
Helper method called to indicate a generic problem that stems from type
definition(s), not input data, or input/output state; typically this
means throwing a
InvalidDefinitionException . |
<T> T |
SerializerProvider.reportBadDefinition(JavaType type,
String msg) |
<T> T |
DeserializationContext.reportBadDefinition(JavaType type,
String msg) |
<T> T |
SerializerProvider.reportBadDefinition(JavaType type,
String msg,
Throwable cause) |
<T> T |
DeserializationContext.reportBadMerge(JsonDeserializer<?> deser)
Deprecated.
Since 2.10 use
DeserializationContext.handleBadMerge(com.fasterxml.jackson.databind.JsonDeserializer<?>) instead |
<T> T |
SerializerProvider.reportBadPropertyDefinition(BeanDescription bean,
BeanPropertyDefinition prop,
String message,
Object... msgArgs)
Helper method called to indicate problem in POJO (serialization) definitions or settings
regarding specific property (of a type), unrelated to actual JSON content to map.
|
<T> T |
DeserializationContext.reportBadPropertyDefinition(BeanDescription bean,
BeanPropertyDefinition prop,
String msg,
Object... msgArgs)
Helper method called to indicate problem in POJO (serialization) definitions or settings
regarding specific property (of a type), unrelated to actual JSON content to map.
|
<T> T |
SerializerProvider.reportBadTypeDefinition(BeanDescription bean,
String msg,
Object... msgArgs)
Helper method called to indicate problem in POJO (serialization) definitions or settings
regarding specific Java type, unrelated to actual JSON content to map.
|
<T> T |
DeserializationContext.reportBadTypeDefinition(BeanDescription bean,
String msg,
Object... msgArgs)
Helper method called to indicate problem in POJO (serialization) definitions or settings
regarding specific Java type, unrelated to actual JSON content to map.
|
<T> T |
DeserializationContext.reportInputMismatch(BeanProperty prop,
String msg,
Object... msgArgs)
Helper method used to indicate a problem with input in cases where more
specific
reportXxx() method was not available. |
<T> T |
DeserializationContext.reportInputMismatch(Class<?> targetType,
String msg,
Object... msgArgs)
Helper method used to indicate a problem with input in cases where more
specific
reportXxx() method was not available. |
<T> T |
DeserializationContext.reportInputMismatch(JavaType targetType,
String msg,
Object... msgArgs)
Helper method used to indicate a problem with input in cases where more
specific
reportXxx() method was not available. |
<T> T |
DeserializationContext.reportInputMismatch(JsonDeserializer<?> src,
String msg,
Object... msgArgs)
Helper method used to indicate a problem with input in cases where more
specific
reportXxx() method was not available. |
void |
DeserializationContext.reportMappingException(String msg,
Object... msgArgs)
Deprecated.
Since 2.9: use a more specific method, or
DeserializationContext.reportBadDefinition(JavaType, String) ,
or DeserializationContext.reportInputMismatch(com.fasterxml.jackson.databind.JsonDeserializer<?>, java.lang.String, java.lang.Object...) instead |
void |
SerializerProvider.reportMappingProblem(String message,
Object... args)
Helper method called to indicate problem; default behavior is to construct and
throw a
JsonMappingException , but in future may collect more than one
and only throw after certain number, or at the end of serialization. |
void |
SerializerProvider.reportMappingProblem(Throwable t,
String message,
Object... msgArgs)
Helper method called to indicate problem; default behavior is to construct and
throw a
JsonMappingException , but in future may collect more than one
and only throw after certain number, or at the end of serialization. |
void |
DeserializationContext.reportMissingContent(String msg,
Object... msgArgs)
Deprecated.
Since 2.9: not clear this ever occurs
|
<T> T |
DeserializationContext.reportPropertyInputMismatch(Class<?> targetType,
String propertyName,
String msg,
Object... msgArgs)
Helper method used to indicate a problem with input in cases where more
specific
reportXxx() method was not available. |
<T> T |
DeserializationContext.reportPropertyInputMismatch(JavaType targetType,
String propertyName,
String msg,
Object... msgArgs)
Helper method used to indicate a problem with input in cases where more
specific
reportXxx() method was not available. |
<T> T |
DeserializationContext.reportTrailingTokens(Class<?> targetType,
JsonParser p,
JsonToken trailingToken) |
void |
DeserializationContext.reportUnknownProperty(Object instanceOrClass,
String fieldName,
JsonDeserializer<?> deser)
|
<T> T |
DeserializationContext.reportUnresolvedObjectId(ObjectIdReader oidReader,
Object bean) |
void |
DeserializationContext.reportWrongTokenException(Class<?> targetType,
JsonToken expToken,
String msg,
Object... msgArgs)
Method for deserializers to call
when the token encountered was of type different than what should
be seen at that position, usually within a sequence of expected tokens.
|
void |
DeserializationContext.reportWrongTokenException(JavaType targetType,
JsonToken expToken,
String msg,
Object... msgArgs)
Method for deserializers to call
when the token encountered was of type different than what should
be seen at that position, usually within a sequence of expected tokens.
|
void |
DeserializationContext.reportWrongTokenException(JsonDeserializer<?> deser,
JsonToken expToken,
String msg,
Object... msgArgs)
Method for deserializers to call
when the token encountered was of type different than what should
be seen at that position, usually within a sequence of expected tokens.
|
void |
DeserializationContext.reportWrongTokenException(JsonParser p,
JsonToken expToken,
String msg,
Object... msgArgs)
Deprecated.
|
JavaType |
DatabindContext.resolveAndValidateSubType(JavaType baseType,
String subClass,
PolymorphicTypeValidator ptv)
Lookup method similar to
DatabindContext.resolveSubType(com.fasterxml.jackson.databind.JavaType, java.lang.String) but one that also validates
that resulting subtype is valid according to given PolymorphicTypeValidator . |
JavaType |
DatabindContext.resolveSubType(JavaType baseType,
String subClassName)
Lookup method called when code needs to resolve class name from input;
usually simple lookup.
|
abstract JsonSerializer<Object> |
SerializerProvider.serializerInstance(Annotated annotated,
Object serDef)
Method that can be called to construct and configure serializer instance,
either given a
Class to instantiate (with default constructor),
or an uninitialized serializer instance. |
<T> T |
ObjectMapper.updateValue(T valueToUpdate,
Object overrides)
Convenience method similar to
ObjectMapper.convertValue(Object, JavaType) but one
in which |
void |
ObjectWriter.writeValue(File resultFile,
Object value)
Method that can be used to serialize any Java value as
JSON output, written to File provided.
|
void |
ObjectMapper.writeValue(File resultFile,
Object value)
Method that can be used to serialize any Java value as
JSON output, written to File provided.
|
void |
ObjectMapper.writeValue(JsonGenerator g,
Object value)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator . |
void |
ObjectWriter.writeValue(OutputStream out,
Object value)
Method that can be used to serialize any Java value as
JSON output, using output stream provided (using encoding
JsonEncoding.UTF8 ). |
void |
ObjectMapper.writeValue(OutputStream out,
Object value)
Method that can be used to serialize any Java value as
JSON output, using output stream provided (using encoding
JsonEncoding.UTF8 ). |
void |
ObjectWriter.writeValue(Writer w,
Object value)
Method that can be used to serialize any Java value as
JSON output, using Writer provided.
|
void |
ObjectMapper.writeValue(Writer w,
Object value)
Method that can be used to serialize any Java value as
JSON output, using Writer provided.
|
Constructor and Description |
---|
RuntimeJsonMappingException(JsonMappingException cause) |
RuntimeJsonMappingException(String message,
JsonMappingException cause) |
Modifier and Type | Class and Description |
---|---|
class |
UnresolvedForwardReference
Exception thrown during deserialization when there are object id that can't
be resolved.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BasicDeserializerFactory._addDeserializerConstructors(DeserializationContext ctxt,
BeanDescription beanDesc,
VisibilityChecker<?> vchecker,
AnnotationIntrospector intr,
CreatorCollector creators,
Map<AnnotatedWithParams,BeanPropertyDefinition[]> creatorParams) |
protected void |
BasicDeserializerFactory._addDeserializerFactoryMethods(DeserializationContext ctxt,
BeanDescription beanDesc,
VisibilityChecker<?> vchecker,
AnnotationIntrospector intr,
CreatorCollector creators,
Map<AnnotatedWithParams,BeanPropertyDefinition[]> creatorParams) |
protected void |
BasicDeserializerFactory._addExplicitAnyCreator(DeserializationContext ctxt,
BeanDescription beanDesc,
CreatorCollector creators,
CreatorCandidate candidate)
Helper method called when there is explicit "is-creator" marker, but no mode declaration.
|
protected void |
BasicDeserializerFactory._addExplicitDelegatingCreator(DeserializationContext ctxt,
BeanDescription beanDesc,
CreatorCollector creators,
CreatorCandidate candidate)
Helper method called when there is the explicit "is-creator" with mode of "delegating"
|
protected void |
BasicDeserializerFactory._addExplicitPropertyCreator(DeserializationContext ctxt,
BeanDescription beanDesc,
CreatorCollector creators,
CreatorCandidate candidate)
Helper method called when there is the explicit "is-creator" with mode of "properties-based"
|
protected ValueInstantiator |
BasicDeserializerFactory._constructDefaultValueInstantiator(DeserializationContext ctxt,
BeanDescription beanDesc)
Method that will construct standard default
ValueInstantiator
using annotations (like @JsonCreator) and visibility rules |
protected JsonDeserializer<Object> |
DeserializerCache._createAndCache2(DeserializationContext ctxt,
DeserializerFactory factory,
JavaType type)
Method that handles actual construction (via factory) and caching (both
intermediate and eventual)
|
protected JsonDeserializer<Object> |
DeserializerCache._createAndCacheValueDeserializer(DeserializationContext ctxt,
DeserializerFactory factory,
JavaType type)
Method that will try to create a deserializer for given type,
and resolve and cache it if necessary
|
protected JsonDeserializer<Object> |
DeserializerCache._createDeserializer(DeserializationContext ctxt,
DeserializerFactory factory,
JavaType type)
Method that does the heavy lifting of checking for per-type annotations,
find out full type, and figure out which actual factory method
to call.
|
protected JsonDeserializer<?> |
DeserializerCache._createDeserializer2(DeserializationContext ctxt,
DeserializerFactory factory,
JavaType type,
BeanDescription beanDesc) |
protected Map<AnnotatedWithParams,BeanPropertyDefinition[]> |
BasicDeserializerFactory._findCreatorsFromProperties(DeserializationContext ctxt,
BeanDescription beanDesc) |
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomArrayDeserializer(ArrayType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected JsonDeserializer<Object> |
BasicDeserializerFactory._findCustomBeanDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc) |
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomCollectionDeserializer(CollectionType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomCollectionLikeDeserializer(CollectionLikeType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomEnumDeserializer(Class<?> type,
DeserializationConfig config,
BeanDescription beanDesc) |
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomMapDeserializer(MapType type,
DeserializationConfig config,
BeanDescription beanDesc,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomMapLikeDeserializer(MapLikeType type,
DeserializationConfig config,
BeanDescription beanDesc,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomReferenceDeserializer(ReferenceType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer contentTypeDeserializer,
JsonDeserializer<?> contentDeserializer) |
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomTreeNodeDeserializer(Class<? extends JsonNode> type,
DeserializationConfig config,
BeanDescription beanDesc) |
protected NameTransformer |
BeanDeserializerBase._findPropertyUnwrapper(DeserializationContext ctxt,
SettableBeanProperty prop)
Helper method called to see if given property might be so-called unwrapped
property: these require special handling.
|
protected JavaType |
BasicDeserializerFactory._findRemappedType(DeserializationConfig config,
Class<?> rawType) |
protected KeyDeserializer |
DeserializerCache._handleUnknownKeyDeserializer(DeserializationContext ctxt,
JavaType type) |
protected JsonDeserializer<Object> |
DeserializerCache._handleUnknownValueDeserializer(DeserializationContext ctxt,
JavaType type) |
protected void |
BasicDeserializerFactory._reportUnwrappedCreatorProperty(DeserializationContext ctxt,
BeanDescription beanDesc,
AnnotatedParameter param) |
protected SettableBeanProperty |
BeanDeserializerBase._resolvedObjectIdProperty(DeserializationContext ctxt,
SettableBeanProperty prop)
Method that wraps given property with
ObjectIdReferenceProperty
in case where object id resolution is required. |
protected SettableBeanProperty |
BeanDeserializerBase._resolveManagedReferenceProperty(DeserializationContext ctxt,
SettableBeanProperty prop)
Helper method called to see if given property is part of 'managed' property
pair (managed + back reference), and if so, handle resolution details.
|
protected SettableBeanProperty |
BeanDeserializerBase._resolveMergeAndNullSettings(DeserializationContext ctxt,
SettableBeanProperty prop,
PropertyMetadata propMetadata) |
protected void |
BeanDeserializerFactory._validateSubType(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc) |
ValueInstantiator |
BasicDeserializerFactory._valueInstantiatorInstance(DeserializationConfig config,
Annotated annotated,
Object instDef) |
protected void |
BeanDeserializerFactory.addBackReferenceProperties(DeserializationContext ctxt,
BeanDescription beanDesc,
BeanDeserializerBuilder builder)
Method that will find if bean has any managed- or back-reference properties,
and if so add them to bean, to be linked during resolution phase.
|
protected void |
BeanDeserializerFactory.addBeanProps(DeserializationContext ctxt,
BeanDescription beanDesc,
BeanDeserializerBuilder builder)
Method called to figure out settable properties for the
bean deserializer to use.
|
protected void |
BeanDeserializerFactory.addInjectables(DeserializationContext ctxt,
BeanDescription beanDesc,
BeanDeserializerBuilder builder)
Method called locate all members used for value injection (if any),
constructor
ValueInjector instances, and add them to builder. |
protected void |
BeanDeserializerFactory.addObjectIdReader(DeserializationContext ctxt,
BeanDescription beanDesc,
BeanDeserializerBuilder builder) |
protected void |
BeanDeserializerFactory.addReferenceProperties(DeserializationContext ctxt,
BeanDescription beanDesc,
BeanDeserializerBuilder builder)
Deprecated.
|
JsonDeserializer<Object> |
BeanDeserializerFactory.buildBeanDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Method that is to actually build a bean deserializer instance.
|
JsonDeserializer<?> |
BeanDeserializerBuilder.buildBuilderBased(JavaType valueType,
String expBuildMethodName)
Method for constructing a specialized deserializer that uses
additional external Builder object during data binding.
|
protected JsonDeserializer<Object> |
BeanDeserializerFactory.buildBuilderBasedDeserializer(DeserializationContext ctxt,
JavaType valueType,
BeanDescription builderDesc)
Method for constructing a bean deserializer that uses specified
intermediate Builder for binding data, and construction of the
value instance.
|
JsonDeserializer<Object> |
BeanDeserializerFactory.buildThrowableDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc) |
protected SettableAnyProperty |
BeanDeserializerFactory.constructAnySetter(DeserializationContext ctxt,
BeanDescription beanDesc,
AnnotatedMember mutator)
Method called to construct fallback
SettableAnyProperty
for handling unknown bean properties, given a method that
has been designated as such setter. |
protected SettableBeanProperty |
BasicDeserializerFactory.constructCreatorProperty(DeserializationContext ctxt,
BeanDescription beanDesc,
PropertyName name,
int index,
AnnotatedParameter param,
JacksonInject.Value injectable)
Method that will construct a property object that represents
a logical property passed via Creator (constructor or static
factory method)
|
protected SettableBeanProperty |
BeanDeserializerFactory.constructSettableProperty(DeserializationContext ctxt,
BeanDescription beanDesc,
BeanPropertyDefinition propDef,
JavaType propType0)
Method that will construct a regular bean property setter using
the given setter method.
|
protected SettableBeanProperty |
BeanDeserializerFactory.constructSetterlessProperty(DeserializationContext ctxt,
BeanDescription beanDesc,
BeanPropertyDefinition propDef)
Method that will construct a regular bean property setter using
the given setter method.
|
abstract JsonDeserializer<?> |
DeserializerFactory.createArrayDeserializer(DeserializationContext ctxt,
ArrayType type,
BeanDescription beanDesc)
Method called to create (or, for completely immutable deserializers,
reuse) a deserializer that can convert JSON content into values of
specified Java type.
|
JsonDeserializer<?> |
BasicDeserializerFactory.createArrayDeserializer(DeserializationContext ctxt,
ArrayType type,
BeanDescription beanDesc) |
abstract JsonDeserializer<Object> |
DeserializerFactory.createBeanDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Method called to create (or, for completely immutable deserializers,
reuse) a deserializer that can convert JSON content into values of
specified Java "bean" (POJO) type.
|
JsonDeserializer<Object> |
BeanDeserializerFactory.createBeanDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Method that
DeserializerCache s call to create a new
deserializer for types other than Collections, Maps, arrays and
enums. |
abstract JsonDeserializer<Object> |
DeserializerFactory.createBuilderBasedDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc,
Class<?> builderClass)
Method called to create a deserializer that will use specified Builder
class for building value instances.
|
JsonDeserializer<Object> |
BeanDeserializerFactory.createBuilderBasedDeserializer(DeserializationContext ctxt,
JavaType valueType,
BeanDescription beanDesc,
Class<?> builderClass) |
abstract JsonDeserializer<?> |
DeserializerFactory.createCollectionDeserializer(DeserializationContext ctxt,
CollectionType type,
BeanDescription beanDesc) |
JsonDeserializer<?> |
BasicDeserializerFactory.createCollectionDeserializer(DeserializationContext ctxt,
CollectionType type,
BeanDescription beanDesc) |
abstract JsonDeserializer<?> |
DeserializerFactory.createCollectionLikeDeserializer(DeserializationContext ctxt,
CollectionLikeType type,
BeanDescription beanDesc) |
JsonDeserializer<?> |
BasicDeserializerFactory.createCollectionLikeDeserializer(DeserializationContext ctxt,
CollectionLikeType type,
BeanDescription beanDesc) |
KeyDeserializer |
ContextualKeyDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to see if a different (or differently configured) key deserializer
is needed to deserialize keys of specified Map property.
|
JsonDeserializer<?> |
BeanDeserializerBase.createContextual(DeserializationContext ctxt,
BeanProperty property)
Although most of post-processing is done in resolve(), we only get
access to referring property's annotations here; and this is needed
to support per-property ObjectIds.
|
JsonDeserializer<?> |
AbstractDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
ContextualDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to see if a different (or differently configured) deserializer
is needed to deserialize values of specified property.
|
abstract JsonDeserializer<?> |
DeserializerFactory.createEnumDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc) |
JsonDeserializer<?> |
BasicDeserializerFactory.createEnumDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Factory method for constructing serializers of
Enum types. |
abstract KeyDeserializer |
DeserializerFactory.createKeyDeserializer(DeserializationContext ctxt,
JavaType type)
Method called to find if factory knows how to create a key deserializer
for specified type; currently this means checking if a module has registered
possible deserializers.
|
KeyDeserializer |
BasicDeserializerFactory.createKeyDeserializer(DeserializationContext ctxt,
JavaType type) |
abstract JsonDeserializer<?> |
DeserializerFactory.createMapDeserializer(DeserializationContext ctxt,
MapType type,
BeanDescription beanDesc) |
JsonDeserializer<?> |
BasicDeserializerFactory.createMapDeserializer(DeserializationContext ctxt,
MapType type,
BeanDescription beanDesc) |
abstract JsonDeserializer<?> |
DeserializerFactory.createMapLikeDeserializer(DeserializationContext ctxt,
MapLikeType type,
BeanDescription beanDesc) |
JsonDeserializer<?> |
BasicDeserializerFactory.createMapLikeDeserializer(DeserializationContext ctxt,
MapLikeType type,
BeanDescription beanDesc) |
abstract JsonDeserializer<?> |
DeserializerFactory.createReferenceDeserializer(DeserializationContext ctxt,
ReferenceType type,
BeanDescription beanDesc) |
JsonDeserializer<?> |
BasicDeserializerFactory.createReferenceDeserializer(DeserializationContext ctxt,
ReferenceType type,
BeanDescription beanDesc) |
abstract JsonDeserializer<?> |
DeserializerFactory.createTreeDeserializer(DeserializationConfig config,
JavaType type,
BeanDescription beanDesc)
Method called to create and return a deserializer that can construct
JsonNode(s) from JSON content.
|
JsonDeserializer<?> |
BasicDeserializerFactory.createTreeDeserializer(DeserializationConfig config,
JavaType nodeType,
BeanDescription beanDesc) |
void |
SettableBeanProperty.depositSchemaProperty(JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider) |
JsonDeserializer<Object> |
DefaultDeserializationContext.deserializerInstance(Annotated ann,
Object deserDef) |
protected List<BeanPropertyDefinition> |
BeanDeserializerFactory.filterBeanProps(DeserializationContext ctxt,
BeanDescription beanDesc,
BeanDeserializerBuilder builder,
List<BeanPropertyDefinition> propDefsIn,
Set<String> ignored)
Helper method called to filter out explicit ignored properties,
as well as properties that have "ignorable types".
|
JsonDeserializer<?> |
Deserializers.findArrayDeserializer(ArrayType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified array type.
|
JsonDeserializer<?> |
Deserializers.Base.findArrayDeserializer(ArrayType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findBeanDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc)
Method called to locate deserializer for specified value type which does not belong to any other
category (not an Enum, Collection, Map, Array, reference value or tree node)
|
JsonDeserializer<?> |
Deserializers.Base.findBeanDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc) |
JsonDeserializer<?> |
Deserializers.findCollectionDeserializer(CollectionType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified
Collection (List, Set etc) type. |
JsonDeserializer<?> |
Deserializers.Base.findCollectionDeserializer(CollectionType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findCollectionLikeDeserializer(CollectionLikeType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified
"Collection-like" type (one that acts
like
Collection but does not implement it). |
JsonDeserializer<?> |
Deserializers.Base.findCollectionLikeDeserializer(CollectionLikeType type,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected JsonDeserializer<Object> |
BasicDeserializerFactory.findContentDeserializerFromAnnotation(DeserializationContext ctxt,
Annotated ann) |
protected Converter<Object,Object> |
DeserializerCache.findConverter(DeserializationContext ctxt,
Annotated a) |
protected JsonDeserializer<Object> |
DeserializerCache.findConvertingDeserializer(DeserializationContext ctxt,
Annotated a,
JsonDeserializer<Object> deser)
Helper method that will check whether given annotated entity (usually class,
but may also be a property accessor) indicates that a
Converter is to
be used; and if so, to construct and return suitable serializer for it. |
protected JsonDeserializer<Object> |
BeanDeserializerBase.findConvertingDeserializer(DeserializationContext ctxt,
SettableBeanProperty prop)
Helper method that can be used to see if specified property is annotated
to indicate use of a converter for property value (in case of container types,
it is container type itself, not key or content type).
|
JsonDeserializer<?> |
BasicDeserializerFactory.findDefaultDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Helper method called to find one of default serializers for "well-known"
platform types: JDK-provided types, and small number of public Jackson
API types.
|
protected JsonDeserializer<Object> |
DeserializerCache.findDeserializerFromAnnotation(DeserializationContext ctxt,
Annotated ann)
Helper method called to check if a class or method
has annotation that tells which class to use for deserialization.
|
protected JsonDeserializer<Object> |
BasicDeserializerFactory.findDeserializerFromAnnotation(DeserializationContext ctxt,
Annotated ann)
Helper method called to check if a class or method
has annotation that tells which class to use for deserialization; and if
so, to instantiate, that deserializer to use.
|
JsonDeserializer<?> |
Deserializers.findEnumDeserializer(Class<?> type,
DeserializationConfig config,
BeanDescription beanDesc)
Method called to locate deserializer for specified
Enum type. |
JsonDeserializer<?> |
Deserializers.Base.findEnumDeserializer(Class<?> type,
DeserializationConfig config,
BeanDescription beanDesc) |
Object |
CreatorProperty.findInjectableValue(DeserializationContext context,
Object beanInstance)
Deprecated.
|
KeyDeserializer |
DeserializerCache.findKeyDeserializer(DeserializationContext ctxt,
DeserializerFactory factory,
JavaType type)
Method called to get hold of a deserializer to use for deserializing
keys for
Map . |
KeyDeserializer |
KeyDeserializers.findKeyDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc) |
protected KeyDeserializer |
BasicDeserializerFactory.findKeyDeserializerFromAnnotation(DeserializationContext ctxt,
Annotated ann)
Helper method called to check if a class or method
has annotation that tells which class to use for deserialization of
Map keys. |
JsonDeserializer<?> |
Deserializers.findMapDeserializer(MapType type,
DeserializationConfig config,
BeanDescription beanDesc,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate deserializer for specified
Map type. |
JsonDeserializer<?> |
Deserializers.Base.findMapDeserializer(MapType type,
DeserializationConfig config,
BeanDescription beanDesc,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findMapLikeDeserializer(MapLikeType type,
DeserializationConfig config,
BeanDescription beanDesc,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified
"Map-like" type (one that acts
like
Map but does not implement it). |
JsonDeserializer<?> |
Deserializers.Base.findMapLikeDeserializer(MapLikeType type,
DeserializationConfig config,
BeanDescription beanDesc,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected JsonDeserializer<?> |
BasicDeserializerFactory.findOptionalStdDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Overridable method called after checking all other types.
|
TypeDeserializer |
BasicDeserializerFactory.findPropertyContentTypeDeserializer(DeserializationConfig config,
JavaType containerType,
AnnotatedMember propertyEntity)
Method called to find and create a type information deserializer for values of
given container (list, array, map) property, if one is needed.
|
TypeDeserializer |
BasicDeserializerFactory.findPropertyTypeDeserializer(DeserializationConfig config,
JavaType baseType,
AnnotatedMember annotated)
Method called to create a type information deserializer for values of
given non-container property, if one is needed.
|
JsonDeserializer<?> |
Deserializers.findReferenceDeserializer(ReferenceType refType,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer contentTypeDeserializer,
JsonDeserializer<?> contentDeserializer)
Method called to locate deserializer for value that is of referential
type,
|
JsonDeserializer<?> |
Deserializers.Base.findReferenceDeserializer(ReferenceType refType,
DeserializationConfig config,
BeanDescription beanDesc,
TypeDeserializer contentTypeDeserializer,
JsonDeserializer<?> contentDeserializer) |
protected JsonDeserializer<?> |
BeanDeserializerFactory.findStdDeserializer(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc)
Method called by
BeanDeserializerFactory to see if there might be a standard
deserializer registered for given type. |
JsonDeserializer<?> |
Deserializers.findTreeNodeDeserializer(Class<? extends JsonNode> nodeType,
DeserializationConfig config,
BeanDescription beanDesc)
Method called to locate deserializer for specified JSON tree node type.
|
JsonDeserializer<?> |
Deserializers.Base.findTreeNodeDeserializer(Class<? extends JsonNode> nodeType,
DeserializationConfig config,
BeanDescription beanDesc) |
abstract TypeDeserializer |
DeserializerFactory.findTypeDeserializer(DeserializationConfig config,
JavaType baseType)
Method called to find and create a type information deserializer for given base type,
if one is needed.
|
TypeDeserializer |
BasicDeserializerFactory.findTypeDeserializer(DeserializationConfig config,
JavaType baseType) |
JsonDeserializer<Object> |
DeserializerCache.findValueDeserializer(DeserializationContext ctxt,
DeserializerFactory factory,
JavaType propertyType)
Method called to get hold of a deserializer for a value of given type;
or if no such deserializer can be found, a default handler (which
may do a best-effort generic serialization or just simply
throw an exception when invoked).
|
abstract ValueInstantiator |
DeserializerFactory.findValueInstantiator(DeserializationContext ctxt,
BeanDescription beanDesc)
Method that is to find all creators (constructors, factory methods)
for the bean type to deserialize.
|
ValueInstantiator |
BasicDeserializerFactory.findValueInstantiator(DeserializationContext ctxt,
BeanDescription beanDesc)
Value instantiator is created both based on creator annotations,
and on optional externally provided instantiators (registered through
module interface).
|
Object |
BeanDeserializerBase.getEmptyValue(DeserializationContext ctxt) |
Object |
NullValueProvider.getNullValue(DeserializationContext ctxt)
Method called to possibly convert incoming `null` token (read via
underlying streaming input source) into other value of type accessor
supports.
|
boolean |
DeserializerCache.hasValueDeserializerFor(DeserializationContext ctxt,
DeserializerFactory factory,
JavaType type)
Method called to find out whether provider would be able to find
a deserializer for given type, using a root reference (i.e.
|
KeyDeserializer |
DefaultDeserializationContext.keyDeserializerInstance(Annotated ann,
Object deserDef) |
abstract JavaType |
DeserializerFactory.mapAbstractType(DeserializationConfig config,
JavaType type)
Method that can be called to try to resolve an abstract type
(interface, abstract class) into a concrete type, or at least
something "more concrete" (abstract class instead of interface).
|
JavaType |
BasicDeserializerFactory.mapAbstractType(DeserializationConfig config,
JavaType type) |
protected JavaType |
BeanDeserializerFactory.materializeAbstractType(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc) |
protected JavaType |
BasicDeserializerFactory.modifyTypeByAnnotation(DeserializationContext ctxt,
Annotated a,
JavaType type)
|
void |
ResolvableDeserializer.resolve(DeserializationContext ctxt)
Method called after deserializer instance has been constructed
(and registered as necessary by provider objects),
but before it has returned it to the caller.
|
void |
BeanDeserializerBase.resolve(DeserializationContext ctxt)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
protected JavaType |
BasicDeserializerFactory.resolveMemberAndTypeAnnotations(DeserializationContext ctxt,
AnnotatedMember member,
JavaType type)
Helper method used to resolve additional type-related annotation information
like type overrides, or handler (serializer, deserializer) overrides,
so that from declared field, property or constructor parameter type
is used as the base and modified based on annotations, if any.
|
protected JavaType |
BasicDeserializerFactory.resolveType(DeserializationContext ctxt,
BeanDescription beanDesc,
JavaType type,
AnnotatedMember member)
|
Modifier and Type | Method and Description |
---|---|
protected Object |
PropertyValueBuffer._findMissing(SettableBeanProperty prop) |
static PropertyBasedCreator |
PropertyBasedCreator.construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps)
Deprecated.
|
static PropertyBasedCreator |
PropertyBasedCreator.construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps,
BeanPropertyMap allProperties)
Factory method used for building actual instances to be used with POJOS:
resolves deserializers, checks for "null values".
|
static PropertyBasedCreator |
PropertyBasedCreator.construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps,
boolean caseInsensitive)
Factory method used for building actual instances to be used with types
OTHER than POJOs.
|
ValueInstantiator |
CreatorCollector.constructValueInstantiator(DeserializationContext ctxt) |
static JsonDeserializer<?> |
JavaUtilCollectionsDeserializers.findForCollection(DeserializationContext ctxt,
JavaType type) |
static JsonDeserializer<?> |
JavaUtilCollectionsDeserializers.findForMap(DeserializationContext ctxt,
JavaType type) |
Object |
ValueInjector.findValue(DeserializationContext context,
Object beanInstance) |
Object |
TypeWrappedDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
NullsFailProvider.getNullValue(DeserializationContext ctxt) |
Object |
TypeWrappedDeserializer.getNullValue(DeserializationContext ctxt) |
Object |
NullsAsEmptyProvider.getNullValue(DeserializationContext ctxt) |
Object |
PropertyValueBuffer.getParameter(SettableBeanProperty prop)
A variation of
PropertyValueBuffer.getParameters(SettableBeanProperty[]) that
accepts a single property. |
Object[] |
PropertyValueBuffer.getParameters(SettableBeanProperty[] props)
Method called to do necessary post-processing such as injection of values
and verification of values for required properties,
after either
PropertyValueBuffer.assignParameter(SettableBeanProperty, Object)
returns true (to indicate all creator properties are found), or when
then whole JSON Object has been processed, |
Modifier and Type | Method and Description |
---|---|
protected JsonMappingException |
StdValueInstantiator.rewrapCtorProblem(DeserializationContext ctxt,
Throwable t)
Method that subclasses may call for standard handling of an exception thrown when
calling constructor or factory method.
|
protected JsonMappingException |
StdValueInstantiator.unwrapAndWrapException(DeserializationContext ctxt,
Throwable t)
|
protected JsonMappingException |
StdValueInstantiator.wrapAsJsonMappingException(DeserializationContext ctxt,
Throwable t)
Helper method that will return given
Throwable case as
a JsonMappingException (if it is of that type), or call
DeserializationContext.instantiationException(Class, Throwable) to
produce and return suitable JsonMappingException . |
protected JsonMappingException |
StdValueInstantiator.wrapException(Throwable t)
|
Modifier and Type | Method and Description |
---|---|
protected Object |
StdDeserializer._coerceEmptyString(DeserializationContext ctxt,
boolean isPrimitive)
Method called when JSON String with value "" (that is, zero length) is encountered.
|
protected Object |
StdDeserializer._coerceNullToken(DeserializationContext ctxt,
boolean isPrimitive)
Method to call when JSON `null` token is encountered.
|
protected Object |
StdDeserializer._coerceTextualNull(DeserializationContext ctxt,
boolean isPrimitive)
Method called when JSON String with value "null" is encountered.
|
protected JsonDeserializer<Object> |
UntypedObjectDeserializer._findCustomDeser(DeserializationContext ctxt,
JavaType type) |
protected NullValueProvider |
StdDeserializer._findNullProvider(DeserializationContext ctxt,
BeanProperty prop,
Nulls nulls,
JsonDeserializer<?> valueDeser) |
protected void |
StdDeserializer._reportFailedNullCoerce(DeserializationContext ctxt,
boolean state,
Enum<?> feature,
String inputDesc) |
protected void |
StdDeserializer._verifyNullForPrimitive(DeserializationContext ctxt) |
protected void |
StdDeserializer._verifyNullForPrimitiveCoercion(DeserializationContext ctxt,
String str) |
protected void |
StdDeserializer._verifyNullForScalarCoercion(DeserializationContext ctxt,
String str) |
protected void |
StdDeserializer._verifyStringForScalarCoercion(DeserializationContext ctxt,
String str) |
protected EnumMap<?,?> |
EnumMapDeserializer.constructMap(DeserializationContext ctxt) |
JsonDeserializer<?> |
DateDeserializers.DateBasedDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
StringCollectionDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
EnumMapDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed for.
|
JsonDeserializer<?> |
StdDelegatingDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
DelegatingDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
MapDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed for.
|
JsonDeserializer<?> |
ReferenceTypeDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
EnumSetDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
EnumDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
CollectionDeserializer |
CollectionDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed
for.
|
JsonDeserializer<?> |
UntypedObjectDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
We only use contextualization for optimizing the case where no customization
occurred; if so, can slip in a more streamlined version.
|
JsonDeserializer<?> |
ObjectArrayDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
MapEntryDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed for.
|
JsonDeserializer<?> |
PrimitiveArrayDeserializers.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
StringArrayDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Contextualization is needed to see whether we can "inline" deserialization
of String values, or if we have to use separate value deserializer.
|
protected NullValueProvider |
StdDeserializer.findContentNullProvider(DeserializationContext ctxt,
BeanProperty prop,
JsonDeserializer<?> valueDeser)
Method called to find
NullValueProvider for a contents of a structured
primary property (Collection, Map, array), using
"content nulls" setting. |
protected Nulls |
StdDeserializer.findContentNullStyle(DeserializationContext ctxt,
BeanProperty prop) |
protected JsonDeserializer<?> |
StdDeserializer.findConvertingContentDeserializer(DeserializationContext ctxt,
BeanProperty prop,
JsonDeserializer<?> existingDeserializer)
Helper method that can be used to see if specified property has annotation
indicating that a converter is to be used for contained values (contents
of structured types; array/List/Map values)
|
protected JsonDeserializer<Object> |
StdDeserializer.findDeserializer(DeserializationContext ctxt,
JavaType type,
BeanProperty property)
Helper method used to locate deserializers for properties the
type this deserializer handles contains (usually for properties of
bean types)
|
KeyDeserializer |
StdKeyDeserializers.findKeyDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc) |
protected NullValueProvider |
StdDeserializer.findValueNullProvider(DeserializationContext ctxt,
SettableBeanProperty prop,
PropertyMetadata propMetadata)
Method called to find
NullValueProvider for a primary property, using
"value nulls" setting. |
Object |
AtomicReferenceDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
EnumMapDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
ContainerDeserializerBase.getEmptyValue(DeserializationContext ctxt) |
Object |
DelegatingDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
ReferenceTypeDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
StringDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
EnumSetDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
ObjectArrayDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
NumberDeserializers.PrimitiveOrWrapperDeserializer.getEmptyValue(DeserializationContext ctxt) |
Object |
PrimitiveArrayDeserializers.getEmptyValue(DeserializationContext ctxt) |
Object |
StringArrayDeserializer.getEmptyValue(DeserializationContext ctxt) |
AtomicReference<Object> |
AtomicReferenceDeserializer.getNullValue(DeserializationContext ctxt) |
Object |
DelegatingDeserializer.getNullValue(DeserializationContext ctxt) |
abstract T |
ReferenceTypeDeserializer.getNullValue(DeserializationContext ctxt) |
T |
NumberDeserializers.PrimitiveOrWrapperDeserializer.getNullValue(DeserializationContext ctxt) |
void |
EnumMapDeserializer.resolve(DeserializationContext ctxt) |
void |
StdDelegatingDeserializer.resolve(DeserializationContext ctxt) |
void |
DelegatingDeserializer.resolve(DeserializationContext ctxt) |
void |
MapDeserializer.resolve(DeserializationContext ctxt) |
void |
UntypedObjectDeserializer.resolve(DeserializationContext ctxt)
We need to implement this method to properly find things to delegate
to: it cannot be done earlier since delegated deserializers almost
certainly require access to this instance (at least "List" and "Map" ones)
|
void |
StdNodeBasedDeserializer.resolve(DeserializationContext ctxt) |
Modifier and Type | Class and Description |
---|---|
class |
IgnoredPropertyException
Specialized
JsonMappingException sub-class used to indicate
case where an explicitly ignored property is encountered, and mapper
is configured to consider this an error. |
class |
InvalidDefinitionException
Intermediate exception type used as the base class for all
JsonMappingException s
that are due to problems with target type definition; usually a problem with
annotations used on a class or its properties. |
class |
InvalidFormatException
Specialized sub-class of
MismatchedInputException
that is used when the underlying problem appears to be that
of bad formatting of a value to deserialize. |
class |
InvalidNullException
Exception thrown if a `null` value is being encountered for a property
designed as "fail on null" property (see
JsonSetter ). |
class |
InvalidTypeIdException
Exception thrown when resolution of a type id fails.
|
class |
MismatchedInputException
General exception type used as the base class for all
JsonMappingException s
that are due to input not mapping to target definition; these are typically
considered "client errors" since target type definition itself is not the root cause
but mismatching input. |
class |
PropertyBindingException
Base class for
JsonMappingException s that are specifically related
to problems related to binding an individual property. |
class |
UnrecognizedPropertyException
Specialized
JsonMappingException sub-class specifically used
to indicate problems due to encountering a JSON property that could
not be mapped to an Object property (via getter, constructor argument
or field). |
class |
ValueInstantiationException
Exception type used for generic failures during processing by
ValueInstantiator :
commonly used to wrap exceptions thrown by constructor or factory
method. |
Modifier and Type | Method and Description |
---|---|
void |
CoreXMLSerializers.XMLGregorianCalendarSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
DOMSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
JsonSerializer<?> |
CoreXMLSerializers.XMLGregorianCalendarSerializer.createContextual(SerializerProvider prov,
BeanProperty property) |
JsonDeserializer<?> |
OptionalHandlerFactory.findDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc) |
Modifier and Type | Method and Description |
---|---|
JavaType |
JacksonAnnotationIntrospector.refineDeserializationType(MapperConfig<?> config,
Annotated a,
JavaType baseType) |
JavaType |
AnnotationIntrospectorPair.refineDeserializationType(MapperConfig<?> config,
Annotated a,
JavaType baseType) |
JavaType |
JacksonAnnotationIntrospector.refineSerializationType(MapperConfig<?> config,
Annotated a,
JavaType baseType) |
JavaType |
AnnotationIntrospectorPair.refineSerializationType(MapperConfig<?> config,
Annotated a,
JavaType baseType) |
Modifier and Type | Method and Description |
---|---|
void |
JsonFormatVisitable.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint)
Get the representation of the schema to which this serializer will conform.
|
JsonAnyFormatVisitor |
JsonFormatVisitorWrapper.expectAnyFormat(JavaType type) |
JsonAnyFormatVisitor |
JsonFormatVisitorWrapper.Base.expectAnyFormat(JavaType type) |
JsonArrayFormatVisitor |
JsonFormatVisitorWrapper.expectArrayFormat(JavaType type) |
JsonArrayFormatVisitor |
JsonFormatVisitorWrapper.Base.expectArrayFormat(JavaType type) |
JsonBooleanFormatVisitor |
JsonFormatVisitorWrapper.expectBooleanFormat(JavaType type) |
JsonBooleanFormatVisitor |
JsonFormatVisitorWrapper.Base.expectBooleanFormat(JavaType type) |
JsonIntegerFormatVisitor |
JsonFormatVisitorWrapper.expectIntegerFormat(JavaType type) |
JsonIntegerFormatVisitor |
JsonFormatVisitorWrapper.Base.expectIntegerFormat(JavaType type) |
JsonMapFormatVisitor |
JsonFormatVisitorWrapper.expectMapFormat(JavaType type)
Method called when type is of Java
Map type, and will
be serialized as a JSON Object. |
JsonMapFormatVisitor |
JsonFormatVisitorWrapper.Base.expectMapFormat(JavaType type) |
JsonNullFormatVisitor |
JsonFormatVisitorWrapper.expectNullFormat(JavaType type) |
JsonNullFormatVisitor |
JsonFormatVisitorWrapper.Base.expectNullFormat(JavaType type) |
JsonNumberFormatVisitor |
JsonFormatVisitorWrapper.expectNumberFormat(JavaType type) |
JsonNumberFormatVisitor |
JsonFormatVisitorWrapper.Base.expectNumberFormat(JavaType type) |
JsonObjectFormatVisitor |
JsonFormatVisitorWrapper.expectObjectFormat(JavaType type) |
JsonObjectFormatVisitor |
JsonFormatVisitorWrapper.Base.expectObjectFormat(JavaType type) |
JsonStringFormatVisitor |
JsonFormatVisitorWrapper.expectStringFormat(JavaType type) |
JsonStringFormatVisitor |
JsonFormatVisitorWrapper.Base.expectStringFormat(JavaType type) |
void |
JsonArrayFormatVisitor.itemsFormat(JsonFormatTypes format)
Visit method that is called if the content type is a simple
scalar type like
JsonFormatTypes.STRING (but not
for structured types like JsonFormatTypes.OBJECT since
they would be missing type information). |
void |
JsonArrayFormatVisitor.Base.itemsFormat(JsonFormatTypes format) |
void |
JsonArrayFormatVisitor.itemsFormat(JsonFormatVisitable handler,
JavaType elementType)
Visit method called for structured types, as well as possibly
for leaf types (especially if handled by custom serializers).
|
void |
JsonArrayFormatVisitor.Base.itemsFormat(JsonFormatVisitable handler,
JavaType elementType) |
void |
JsonMapFormatVisitor.keyFormat(JsonFormatVisitable handler,
JavaType keyType)
Visit method called to indicate type of keys of the Map type
being visited
|
void |
JsonMapFormatVisitor.Base.keyFormat(JsonFormatVisitable handler,
JavaType keyType) |
void |
JsonObjectFormatVisitor.optionalProperty(BeanProperty writer) |
void |
JsonObjectFormatVisitor.Base.optionalProperty(BeanProperty prop) |
void |
JsonObjectFormatVisitor.optionalProperty(String name,
JsonFormatVisitable handler,
JavaType propertyTypeHint) |
void |
JsonObjectFormatVisitor.Base.optionalProperty(String name,
JsonFormatVisitable handler,
JavaType propertyTypeHint) |
void |
JsonObjectFormatVisitor.property(BeanProperty writer)
Callback method called when a POJO property is being traversed.
|
void |
JsonObjectFormatVisitor.Base.property(BeanProperty prop) |
void |
JsonObjectFormatVisitor.property(String name,
JsonFormatVisitable handler,
JavaType propertyTypeHint)
Callback method called when a non-POJO property (typically something
like an Enum entry of
EnumMap type) is being
traversed. |
void |
JsonObjectFormatVisitor.Base.property(String name,
JsonFormatVisitable handler,
JavaType propertyTypeHint) |
void |
JsonMapFormatVisitor.valueFormat(JsonFormatVisitable handler,
JavaType valueType)
Visit method called after
JsonMapFormatVisitor.keyFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.JavaType) to allow visiting of
the value type |
void |
JsonMapFormatVisitor.Base.valueFormat(JsonFormatVisitable handler,
JavaType valueType) |
Modifier and Type | Method and Description |
---|---|
JsonNode |
SchemaAware.getSchema(SerializerProvider provider,
Type typeHint)
Get the representation of the schema to which this serializer will conform.
|
JsonNode |
SchemaAware.getSchema(SerializerProvider provider,
Type typeHint,
boolean isOptional)
Get the representation of the schema to which this serializer will conform.
|
Modifier and Type | Method and Description |
---|---|
void |
SubTypeValidator.validateSubType(DeserializationContext ctxt,
JavaType type,
BeanDescription beanDesc) |
Modifier and Type | Method and Description |
---|---|
protected MapSerializer |
BasicSerializerFactory._checkMapContentInclusion(SerializerProvider prov,
BeanDescription beanDesc,
MapSerializer mapSer)
Helper method that does figures out content inclusion value to use, if any,
and construct re-configured
MapSerializer appropriately. |
protected BeanPropertyWriter |
BeanSerializerFactory._constructWriter(SerializerProvider prov,
BeanPropertyDefinition propDef,
PropertyBuilder pb,
boolean staticTyping,
AnnotatedMember accessor)
Secondary helper method for constructing
BeanPropertyWriter for
given member (field or method). |
protected JsonSerializer<?> |
BeanSerializerFactory._createSerializer2(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping) |
protected JsonSerializer<Object> |
BeanPropertyWriter._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
BasicSerializerFactory._findContentSerializer(SerializerProvider prov,
Annotated a)
Helper method called to try to find whether there is an annotation in the
class that indicates content ("value") serializer to use.
|
protected JsonInclude.Value |
BasicSerializerFactory._findInclusionWithContent(SerializerProvider prov,
BeanDescription beanDesc,
JavaType contentType,
Class<?> configType)
Helper method used for finding inclusion definitions for structured
container types like
Map s and referential types
(like AtomicReference ). |
protected JsonSerializer<Object> |
BasicSerializerFactory._findKeySerializer(SerializerProvider prov,
Annotated a)
Helper method called to try to find whether there is an annotation in the
class that indicates key serializer to use.
|
void |
DefaultSerializerProvider.acceptJsonFormatVisitor(JavaType javaType,
JsonFormatVisitorWrapper visitor)
The method to be called by
ObjectMapper and ObjectWriter
to to expose the format of the given to to the given visitor |
void |
SerializerCache.addAndResolveNonTypedSerializer(Class<?> rawType,
JavaType fullType,
JsonSerializer<Object> ser,
SerializerProvider provider)
Another alternative that will cover both access via raw type and matching
fully resolved type, in one fell swoop.
|
void |
SerializerCache.addAndResolveNonTypedSerializer(Class<?> type,
JsonSerializer<Object> ser,
SerializerProvider provider) |
void |
SerializerCache.addAndResolveNonTypedSerializer(JavaType type,
JsonSerializer<Object> ser,
SerializerProvider provider) |
protected JsonSerializer<?> |
BasicSerializerFactory.buildArraySerializer(SerializerProvider prov,
ArrayType type,
BeanDescription beanDesc,
boolean staticTyping,
TypeSerializer elementTypeSerializer,
JsonSerializer<Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers for
Object[] (and subtypes, except for String). |
protected JsonSerializer<?> |
BasicSerializerFactory.buildAtomicReferenceSerializer(SerializerProvider prov,
ReferenceType refType,
BeanDescription beanDesc,
boolean staticTyping,
TypeSerializer contentTypeSerializer,
JsonSerializer<Object> contentSerializer) |
protected JsonSerializer<?> |
BasicSerializerFactory.buildCollectionSerializer(SerializerProvider prov,
CollectionType type,
BeanDescription beanDesc,
boolean staticTyping,
TypeSerializer elementTypeSerializer,
JsonSerializer<Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers for
List types that support efficient by-index access |
protected JsonSerializer<?> |
BasicSerializerFactory.buildContainerSerializer(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping) |
protected JsonSerializer<?> |
BasicSerializerFactory.buildEnumSerializer(SerializationConfig config,
JavaType type,
BeanDescription beanDesc) |
protected JsonSerializer<?> |
BasicSerializerFactory.buildIterableSerializer(SerializationConfig config,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping,
JavaType valueType) |
protected JsonSerializer<?> |
BasicSerializerFactory.buildIteratorSerializer(SerializationConfig config,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping,
JavaType valueType) |
protected JsonSerializer<?> |
BasicSerializerFactory.buildMapEntrySerializer(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping,
JavaType keyType,
JavaType valueType) |
protected JsonSerializer<?> |
BasicSerializerFactory.buildMapSerializer(SerializerProvider prov,
MapType type,
BeanDescription beanDesc,
boolean staticTyping,
JsonSerializer<Object> keySerializer,
TypeSerializer elementTypeSerializer,
JsonSerializer<Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers for
Map types. |
protected BeanPropertyWriter |
PropertyBuilder.buildWriter(SerializerProvider prov,
BeanPropertyDefinition propDef,
JavaType declaredType,
JsonSerializer<?> ser,
TypeSerializer typeSer,
TypeSerializer contentTypeSer,
AnnotatedMember am,
boolean defaultUseStaticTyping) |
protected JsonSerializer<Object> |
BeanSerializerFactory.constructBeanOrAddOnSerializer(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping)
Method called to construct serializer for serializing specified bean type if
(but only if, as of 2.10), at least one property is found.
|
protected JsonSerializer<Object> |
BeanSerializerFactory.constructBeanSerializer(SerializerProvider prov,
BeanDescription beanDesc)
Deprecated.
|
protected ObjectIdWriter |
BeanSerializerFactory.constructObjectIdHandler(SerializerProvider prov,
BeanDescription beanDesc,
List<BeanPropertyWriter> props) |
JsonSerializer<?> |
ContextualSerializer.createContextual(SerializerProvider prov,
BeanProperty property)
Method called to see if a different (or differently configured) serializer
is needed to serialize values of specified property.
|
abstract JsonSerializer<Object> |
SerializerFactory.createKeySerializer(SerializationConfig config,
JavaType type,
JsonSerializer<Object> defaultImpl)
Deprecated.
|
JsonSerializer<Object> |
SerializerFactory.createKeySerializer(SerializerProvider prov,
JavaType type,
JsonSerializer<Object> defaultImpl)
Method called to create serializer to use for serializing JSON property names (which must
be output as
JsonToken.FIELD_NAME ) for Map that has specified declared
key type, and is for specified property (or, if property is null, as root value) |
JsonSerializer<Object> |
BasicSerializerFactory.createKeySerializer(SerializerProvider ctxt,
JavaType keyType,
JsonSerializer<Object> defaultImpl) |
abstract JsonSerializer<Object> |
SerializerFactory.createSerializer(SerializerProvider prov,
JavaType baseType)
Method called to create (or, for immutable serializers, reuse) a serializer for given type.
|
abstract JsonSerializer<Object> |
BasicSerializerFactory.createSerializer(SerializerProvider prov,
JavaType type) |
JsonSerializer<Object> |
BeanSerializerFactory.createSerializer(SerializerProvider prov,
JavaType origType)
Main serializer constructor method.
|
abstract TypeSerializer |
SerializerFactory.createTypeSerializer(SerializationConfig config,
JavaType baseType)
Method called to create a type information serializer for given base type,
if one is needed.
|
void |
BeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer,
JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider)
Deprecated.
Method called by
BeanSerializer to let the filter determine whether, and in what
form the given property exist within the parent, or root, schema. |
void |
BeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
Since 2.3: new code should use the alternative
depositSchemaProperty
method |
void |
BeanPropertyWriter.depositSchemaProperty(JsonObjectFormatVisitor v,
SerializerProvider provider) |
abstract void |
PropertyWriter.depositSchemaProperty(JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider)
Traversal method used for things like JSON Schema generation, or
POJO introspection.
|
void |
BeanPropertyWriter.depositSchemaProperty(ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
|
abstract void |
PropertyWriter.depositSchemaProperty(ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
Since 2.2
|
void |
PropertyFilter.depositSchemaProperty(PropertyWriter writer,
JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider)
Method called by
BeanSerializer to let the filter determine whether, and in what
form the given property exist within the parent, or root, schema. |
void |
PropertyFilter.depositSchemaProperty(PropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
Since 2.3: new code should use the alternative
depositSchemaProperty
method |
JsonSerializer<Object> |
BeanSerializerFactory.findBeanOrAddOnSerializer(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping)
Method that will try to construct a
BeanSerializer for
given class if at least one property is found, OR, if not,
one of add-on types. |
protected List<BeanPropertyWriter> |
BeanSerializerFactory.findBeanProperties(SerializerProvider prov,
BeanDescription beanDesc,
BeanSerializerBuilder builder)
Method used to collect all actual serializable properties.
|
JsonSerializer<Object> |
BeanSerializerFactory.findBeanSerializer(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc)
Deprecated.
|
protected Converter<Object,Object> |
BasicSerializerFactory.findConverter(SerializerProvider prov,
Annotated a) |
protected JsonSerializer<?> |
BasicSerializerFactory.findConvertingSerializer(SerializerProvider prov,
Annotated a,
JsonSerializer<?> ser)
Helper method that will check whether given annotated entity (usually class,
but may also be a property accessor) indicates that a
Converter is to
be used; and if so, to construct and return suitable serializer for it. |
protected JsonSerializer<?> |
BasicSerializerFactory.findOptionalStdSerializer(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping)
Overridable method called after checking all other types.
|
TypeSerializer |
BeanSerializerFactory.findPropertyContentTypeSerializer(JavaType containerType,
SerializationConfig config,
AnnotatedMember accessor)
Method called to create a type information serializer for values of given
container property
if one is needed.
|
TypeSerializer |
BeanSerializerFactory.findPropertyTypeSerializer(JavaType baseType,
SerializationConfig config,
AnnotatedMember accessor)
Method called to create a type information serializer for values of given
non-container property
if one is needed.
|
JsonSerializer<?> |
BasicSerializerFactory.findReferenceSerializer(SerializerProvider prov,
ReferenceType refType,
BeanDescription beanDesc,
boolean staticTyping) |
protected JavaType |
PropertyBuilder.findSerializationType(Annotated a,
boolean useStaticTyping,
JavaType declaredType)
Method that will try to determine statically defined type of property
being serialized, based on annotations (for overrides), and alternatively
declared type (if static typing for serialization is enabled).
|
protected JsonSerializer<?> |
BasicSerializerFactory.findSerializerByAddonType(SerializationConfig config,
JavaType javaType,
BeanDescription beanDesc,
boolean staticTyping)
Reflection-based serialized find method, which checks if
given class implements one of recognized "add-on" interfaces.
|
protected JsonSerializer<?> |
BasicSerializerFactory.findSerializerByAnnotations(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc)
Method called to see if one of primary per-class annotations
(or related, like implementing of
JsonSerializable )
determines the serializer to use. |
protected JsonSerializer<?> |
BasicSerializerFactory.findSerializerByPrimaryType(SerializerProvider prov,
JavaType type,
BeanDescription beanDesc,
boolean staticTyping)
Method for checking if we can determine serializer to use based on set of
known primary types, checking for set of known base types (exact matches
having been compared against with
findSerializerByLookup ). |
protected JsonSerializer<Object> |
BasicSerializerFactory.findSerializerFromAnnotation(SerializerProvider prov,
Annotated a)
Helper method called to check if a class or method
has an annotation
(@link com.fasterxml.jackson.databind.annotation.JsonSerialize#using)
that tells the class to use for serialization.
|
JsonSchema |
DefaultSerializerProvider.generateJsonSchema(Class<?> type)
Deprecated.
Should not be used any more
|
boolean |
DefaultSerializerProvider.includeFilterSuppressNulls(Object filter) |
void |
ResolvableSerializer.resolve(SerializerProvider provider)
Method called after
SerializerProvider has registered
the serializer, but before it has returned it to the caller. |
void |
AnyGetterWriter.resolve(SerializerProvider provider) |
JsonSerializer<Object> |
DefaultSerializerProvider.serializerInstance(Annotated annotated,
Object serDef) |
Modifier and Type | Method and Description |
---|---|
protected JsonSerializer<Object> |
MapEntrySerializer._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
UnwrappingBeanPropertyWriter._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
MapEntrySerializer._findAndAddDynamic(PropertySerializerMap map,
JavaType type,
SerializerProvider provider) |
protected void |
IndexedStringListSerializer.acceptContentVisitor(JsonArrayFormatVisitor visitor) |
protected void |
StringCollectionSerializer.acceptContentVisitor(JsonArrayFormatVisitor visitor) |
void |
UnknownSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StringArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
JsonSerializer<?> |
StringArraySerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
MapEntrySerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
TypeWrappedSerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
void |
SimpleBeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer,
JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider)
Deprecated.
|
void |
SimpleBeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
|
void |
UnwrappingBeanPropertyWriter.depositSchemaProperty(JsonObjectFormatVisitor visitor,
SerializerProvider provider) |
void |
SimpleBeanPropertyFilter.depositSchemaProperty(PropertyWriter writer,
JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider) |
void |
SimpleBeanPropertyFilter.depositSchemaProperty(PropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
|
protected void |
UnknownSerializer.failForEmpty(SerializerProvider prov,
Object value) |
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddKeySerializer(Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails, when looking for a key
serializer (possible attached indirectly to a property)
Will both find serializer
and construct new map instance if warranted, and return both.
|
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddPrimarySerializer(Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails, when looking for a primary
serializer (one that is directly attached to a property).
|
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddPrimarySerializer(JavaType type,
SerializerProvider provider,
BeanProperty property) |
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddRootValueSerializer(Class<?> type,
SerializerProvider provider)
Method called if initial lookup fails, when looking for a root value
serializer: one that is not directly attached to a property, but needs to
have
TypeSerializer wrapped
around it. |
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddRootValueSerializer(JavaType type,
SerializerProvider provider) |
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddSecondarySerializer(Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails, when looking for a non-primary
serializer (one that is not directly attached to a property).
|
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddSecondarySerializer(JavaType type,
SerializerProvider provider,
BeanProperty property) |
JsonNode |
UnknownSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
FailingSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
Modifier and Type | Method and Description |
---|---|
protected void |
DateTimeSerializerBase._acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint,
boolean asNumber) |
protected boolean |
JsonValueSerializer._acceptJsonFormatVisitorForEnum(JsonFormatVisitorWrapper visitor,
JavaType typeHint,
Class<?> enumType)
Overridable helper method used for special case handling of schema information for
Enums.
|
protected JsonSerializer<Object> |
MapSerializer._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
AsArraySerializerBase._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
StdKeySerializers.Dynamic._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
ObjectArraySerializer._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
MapSerializer._findAndAddDynamic(PropertySerializerMap map,
JavaType type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
AsArraySerializerBase._findAndAddDynamic(PropertySerializerMap map,
JavaType type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
ObjectArraySerializer._findAndAddDynamic(PropertySerializerMap map,
JavaType type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
StdDelegatingSerializer._findSerializer(Object value,
SerializerProvider serializers)
Helper method used for locating serializer to use in dynamic use case, where
actual type value gets converted to is not specified beyond basic
Object , and where serializer needs to be located dynamically
based on actual value type. |
protected abstract void |
StaticListSerializerBase.acceptContentVisitor(JsonArrayFormatVisitor visitor) |
void |
StdArraySerializers.BooleanArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdArraySerializers.ShortArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdArraySerializers.CharArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdArraySerializers.IntArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdArraySerializers.LongArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdArraySerializers.FloatArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdArraySerializers.DoubleArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
FileSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
EnumSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint)
Default implementation specifies no format.
|
void |
TokenBufferSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
NullSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StringSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
SerializableSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
RawSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
MapSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdJdkSerializers.AtomicBooleanSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdJdkSerializers.AtomicIntegerSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdJdkSerializers.AtomicLongSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
NumberSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
ReferenceTypeSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdScalarSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
ClassSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
ByteBufferSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StaticListSerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
DateTimeSerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
AsArraySerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
NumberSerializers.Base.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdDelegatingSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
ToStringSerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
StdKeySerializers.Dynamic.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
UUIDSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
SqlTimeSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
ObjectArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
JsonValueSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
ByteArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
BooleanSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
void |
BeanSerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint) |
JsonSerializer<?> |
EnumSerializer.createContextual(SerializerProvider serializers,
BeanProperty property)
To support some level of per-property configuration, we will need
to make things contextual.
|
JsonSerializer<?> |
ArraySerializerBase.createContextual(SerializerProvider serializers,
BeanProperty property) |
JsonSerializer<?> |
InetAddressSerializer.createContextual(SerializerProvider serializers,
BeanProperty property) |
JsonSerializer<?> |
MapSerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
NumberSerializer.createContextual(SerializerProvider prov,
BeanProperty property) |
JsonSerializer<?> |
ReferenceTypeSerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
StaticListSerializerBase.createContextual(SerializerProvider serializers,
BeanProperty property) |
JsonSerializer<?> |
DateTimeSerializerBase.createContextual(SerializerProvider serializers,
BeanProperty property) |
JsonSerializer<?> |
AsArraySerializerBase.createContextual(SerializerProvider serializers,
BeanProperty property)
This method is needed to resolve contextual annotations like
per-property overrides, as well as do recursive call
to
createContextual of content serializer, if
known statically. |
JsonSerializer<?> |
NumberSerializers.Base.createContextual(SerializerProvider prov,
BeanProperty property) |
JsonSerializer<?> |
StdDelegatingSerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
ObjectArraySerializer.createContextual(SerializerProvider serializers,
BeanProperty property) |
JsonSerializer<?> |
JsonValueSerializer.createContextual(SerializerProvider provider,
BeanProperty property)
We can try to find the actual serializer for value, if we can
statically figure out what the result type must be.
|
JsonSerializer<?> |
BooleanSerializer.createContextual(SerializerProvider serializers,
BeanProperty property) |
JsonSerializer<?> |
BeanSerializerBase.createContextual(SerializerProvider provider,
BeanProperty property) |
void |
MapProperty.depositSchemaProperty(JsonObjectFormatVisitor objectVisitor,
SerializerProvider provider) |
void |
MapProperty.depositSchemaProperty(ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
|
protected JsonSerializer<?> |
StdSerializer.findAnnotatedContentSerializer(SerializerProvider serializers,
BeanProperty property)
Convenience method for finding out possibly configured content value serializer.
|
protected JsonSerializer<?> |
StdSerializer.findContextualConvertingSerializer(SerializerProvider provider,
BeanProperty property,
JsonSerializer<?> existingSerializer)
Helper method that can be used to see if specified property has annotation
indicating that a converter is to be used for contained values (contents
of structured types; array/List/Map values)
|
protected JsonSerializer<?> |
StdSerializer.findConvertingContentSerializer(SerializerProvider provider,
BeanProperty prop,
JsonSerializer<?> existingSerializer)
|
protected JsonSerializer<Object> |
BeanSerializerBase.findConvertingSerializer(SerializerProvider provider,
BeanPropertyWriter prop)
Helper method that can be used to see if specified property is annotated
to indicate use of a converter for property value (in case of container types,
it is container type itself, not key or content type).
|
protected PropertyFilter |
StdSerializer.findPropertyFilter(SerializerProvider provider,
Object filterId,
Object valueToFilter)
Helper method used to locate filter that is needed, based on filter id
this serializer was constructed with.
|
JsonNode |
StdSerializer.getSchema(SerializerProvider provider,
Type typeHint)
Default implementation simply claims type is "string"; usually
overriden by custom serializers.
|
JsonNode |
NullSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdScalarSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
AsArraySerializerBase.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdDelegatingSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
ToStringSerializerBase.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
JsonValueSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
BeanSerializerBase.getSchema(SerializerProvider provider,
Type typeHint)
Deprecated.
|
JsonNode |
StdSerializer.getSchema(SerializerProvider provider,
Type typeHint,
boolean isOptional)
Default implementation simply claims type is "string"; usually
overriden by custom serializers.
|
JsonNode |
StdDelegatingSerializer.getSchema(SerializerProvider provider,
Type typeHint,
boolean isOptional) |
void |
StdDelegatingSerializer.resolve(SerializerProvider provider) |
void |
BeanSerializerBase.resolve(SerializerProvider provider)
We need to implement
ResolvableSerializer to be able to
properly handle cyclic type references. |
protected void |
StdSerializer.visitArrayFormat(JsonFormatVisitorWrapper visitor,
JavaType typeHint,
JsonFormatTypes itemType) |
protected void |
StdSerializer.visitArrayFormat(JsonFormatVisitorWrapper visitor,
JavaType typeHint,
JsonSerializer<?> itemSerializer,
JavaType itemType) |
protected void |
StdSerializer.visitFloatFormat(JsonFormatVisitorWrapper visitor,
JavaType typeHint,
JsonParser.NumberType numberType)
Helper method that calls necessary visit method(s) to indicate that the
underlying JSON type is a floating-point JSON number.
|
protected void |
StdSerializer.visitIntFormat(JsonFormatVisitorWrapper visitor,
JavaType typeHint,
JsonParser.NumberType numberType)
Helper method that calls necessary visit method(s) to indicate that the
underlying JSON type is JSON Integer number.
|
protected void |
StdSerializer.visitIntFormat(JsonFormatVisitorWrapper visitor,
JavaType typeHint,
JsonParser.NumberType numberType,
JsonValueFormat format)
Helper method that calls necessary visit method(s) to indicate that the
underlying JSON type is JSON Integer number, but that there is also a further
format restriction involved.
|
protected void |
StdSerializer.visitStringFormat(JsonFormatVisitorWrapper visitor,
JavaType typeHint)
Helper method that calls necessary visit method(s) to indicate that the
underlying JSON type is JSON String.
|
protected void |
StdSerializer.visitStringFormat(JsonFormatVisitorWrapper visitor,
JavaType typeHint,
JsonValueFormat format)
Helper method that calls necessary visit method(s) to indicate that the
underlying JSON type is JSON String, but that there is a more refined
logical type
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
ClassUtil.throwAsMappingException(DeserializationContext ctxt,
IOException e0) |
Copyright © 2008–2020 FasterXML. All rights reserved.