Package | Description |
---|---|
org.codehaus.jackson.jaxrs |
Jackson-based JAX-RS provider that can automatically
serialize and deserialize resources for
JSON content type (MediaType).
|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
org.codehaus.jackson.map.deser |
Contains implementation classes of deserialization part of
data binding.
|
org.codehaus.jackson.map.deser.std |
Contains public standard implementations of abstraction that
Jackson uses.
|
org.codehaus.jackson.map.exc | |
org.codehaus.jackson.map.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.
|
org.codehaus.jackson.map.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(org.codehaus.jackson.map.Module) . |
org.codehaus.jackson.map.ser |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.map.ser.impl |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.map.ser.std | |
org.codehaus.jackson.schema |
Classes needed for JSON schema support (currently just ability
to generate schemas using serialization part of data mapping)
|
org.codehaus.jackson.xc |
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
|
Modifier and Type | Method and Description |
---|---|
Response |
JsonMappingExceptionMapper.toResponse(JsonMappingException exception) |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
JacksonJsonProvider._findView(ObjectMapper mapper,
Annotation[] annotations) |
Modifier and Type | Method and Description |
---|---|
static JsonMappingException |
JsonMappingException.from(JsonParser jp,
String msg) |
static JsonMappingException |
JsonMappingException.from(JsonParser jp,
String msg,
Throwable problem) |
abstract JsonMappingException |
DeserializationContext.instantiationException(Class<?> instClass,
String msg) |
abstract JsonMappingException |
DeserializationContext.instantiationException(Class<?> instClass,
Throwable t)
Helper method for constructing instantiation exception for specified type,
to indicate problem with physically constructing instance of
specified class (missing constructor, exception from constructor)
|
abstract JsonMappingException |
DeserializationContext.mappingException(Class<?> targetClass)
Helper method for constructing generic mapping exception for specified type
|
abstract JsonMappingException |
DeserializationContext.mappingException(Class<?> targetClass,
JsonToken t) |
JsonMappingException |
DeserializationContext.mappingException(String message)
Helper method for constructing generic mapping exception with specified
message and current location information
|
abstract JsonMappingException |
DeserializationContext.unknownFieldException(Object instanceOrClass,
String fieldName)
Helper method for constructing exception to indicate that JSON Object
field name did not map to a known property of type being
deserialized.
|
abstract JsonMappingException |
DeserializationContext.unknownTypeException(JavaType baseType,
String id)
Helper method for constructing exception to indicate that given
type id (parsed from JSON) could not be converted to a Java type.
|
abstract 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.
|
abstract JsonMappingException |
DeserializationContext.weirdNumberException(Class<?> instClass,
String msg)
Helper method for constructing exception to indicate that input JSON
Number was not suitable for deserializing into given type.
|
abstract JsonMappingException |
DeserializationContext.weirdStringException(Class<?> instClass,
String msg)
Helper method for constructing exception to indicate that input JSON
String was not in recognized format for deserializing into given 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.
|
abstract JsonMappingException |
DeserializationContext.wrongTokenException(JsonParser jp,
JsonToken expToken,
String msg)
Helper method for indicating that the current token was expected to be another
token.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
ObjectReader._bind(JsonParser jp)
Actual implementation of value reading+binding operation.
|
protected Object |
ObjectReader._bindAndClose(JsonParser jp) |
protected JsonNode |
ObjectReader._bindAndCloseAsTree(JsonParser jp) |
protected JsonNode |
ObjectReader._bindAsTree(JsonParser jp) |
protected void |
ObjectWriter._configAndWriteValue(JsonGenerator jgen,
Object value)
Method called to configure the generator as necessary and then
call write functionality
|
protected void |
ObjectMapper._configAndWriteValue(JsonGenerator jgen,
Object value)
Method called to configure the generator as necessary and then
call write functionality
|
protected void |
ObjectMapper._configAndWriteValue(JsonGenerator jgen,
Object value,
Class<?> viewClass) |
protected JsonDeserializer<Object> |
ObjectReader._findRootDeserializer(DeserializationConfig cfg,
JavaType valueType)
Method called to locate deserializer for the passed root-level value.
|
protected JsonDeserializer<Object> |
ObjectMapper._findRootDeserializer(DeserializationConfig cfg,
JavaType valueType)
Method called to locate deserializer for the passed root-level value.
|
protected static JsonToken |
ObjectReader._initForReading(JsonParser jp) |
protected JsonToken |
ObjectMapper._initForReading(JsonParser jp)
Method called to ensure that given parser is ready for reading
content for data binding.
|
protected Object |
ObjectMapper._readMapAndClose(JsonParser jp,
JavaType valueType) |
protected Object |
ObjectMapper._readValue(DeserializationConfig cfg,
JsonParser jp,
JavaType valueType)
Actual implementation of value reading+binding operation.
|
protected Object |
ObjectReader._unwrapAndDeserialize(JsonParser jp,
DeserializationContext ctxt,
JavaType rootType,
JsonDeserializer<Object> deser) |
protected Object |
ObjectMapper._unwrapAndDeserialize(JsonParser jp,
JavaType rootType,
DeserializationContext ctxt,
JsonDeserializer<Object> deser) |
abstract JsonDeserializer<?> |
DeserializerFactory.createArrayDeserializer(DeserializationConfig config,
DeserializerProvider p,
ArrayType type,
BeanProperty property)
Method called to create (or, for completely immutable deserializers,
reuse) a deserializer that can convert JSON content into values of
specified Java type.
|
abstract JsonDeserializer<Object> |
DeserializerFactory.createBeanDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property)
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.
|
abstract JsonDeserializer<?> |
DeserializerFactory.createCollectionDeserializer(DeserializationConfig config,
DeserializerProvider p,
CollectionType type,
BeanProperty property) |
abstract JsonDeserializer<?> |
DeserializerFactory.createCollectionLikeDeserializer(DeserializationConfig config,
DeserializerProvider p,
CollectionLikeType type,
BeanProperty property) |
KeyDeserializer |
ContextualKeyDeserializer.createContextual(DeserializationConfig config,
BeanProperty property)
Method called to see if a different (or differently configured) key deserializer
is needed to deserialize keys of specified Map property.
|
JsonDeserializer<T> |
ContextualDeserializer.createContextual(DeserializationConfig config,
BeanProperty property)
Method called to see if a different (or differently configured) deserializer
is needed to deserialize values of specified property.
|
JsonSerializer<T> |
ContextualSerializer.createContextual(SerializationConfig config,
BeanProperty property)
Method called to see if a different (or differently configured) serializer
is needed to serialize values of specified property.
|
abstract JsonDeserializer<?> |
DeserializerFactory.createEnumDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property) |
KeyDeserializer |
DeserializerFactory.createKeyDeserializer(DeserializationConfig config,
JavaType type,
BeanProperty property)
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.
|
abstract JsonSerializer<Object> |
SerializerFactory.createKeySerializer(SerializationConfig config,
JavaType baseType,
BeanProperty property)
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) |
abstract JsonDeserializer<?> |
DeserializerFactory.createMapDeserializer(DeserializationConfig config,
DeserializerProvider p,
MapType type,
BeanProperty property) |
abstract JsonDeserializer<?> |
DeserializerFactory.createMapLikeDeserializer(DeserializationConfig config,
DeserializerProvider p,
MapLikeType type,
BeanProperty property) |
abstract JsonSerializer<Object> |
SerializerFactory.createSerializer(SerializationConfig config,
JavaType baseType,
BeanProperty property)
Method called to create (or, for immutable serializers, reuse) a serializer for given type.
|
abstract JsonDeserializer<?> |
DeserializerFactory.createTreeDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property)
Method called to create and return a deserializer that can construct
JsonNode(s) from JSON content.
|
abstract TypeSerializer |
SerializerFactory.createTypeSerializer(SerializationConfig config,
JavaType baseType,
BeanProperty property)
Method called to create a type information serializer for given base type,
if one is needed.
|
JsonDeserializer<?> |
Deserializers.findArrayDeserializer(ArrayType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified array type.
|
JsonDeserializer<?> |
Deserializers.Base.findArrayDeserializer(ArrayType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findBeanDeserializer(JavaType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property)
Method called to locate deserializer for specified value type which does not belong to any other
category (not an Enum, Collection, Map, Array or tree node)
|
JsonDeserializer<?> |
Deserializers.Base.findBeanDeserializer(JavaType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property) |
JsonDeserializer<?> |
Deserializers.findCollectionDeserializer(CollectionType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified
Collection (List, Set etc) type. |
JsonDeserializer<?> |
Deserializers.Base.findCollectionDeserializer(CollectionType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findCollectionLikeDeserializer(CollectionLikeType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
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,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findEnumDeserializer(Class<?> type,
DeserializationConfig config,
BeanDescription beanDesc,
BeanProperty property)
Method called to locate deserializer for specified
Enum type. |
JsonDeserializer<?> |
Deserializers.Base.findEnumDeserializer(Class<?> type,
DeserializationConfig config,
BeanDescription beanDesc,
BeanProperty property) |
abstract SerializedString |
DeserializerProvider.findExpectedRootName(DeserializationConfig config,
JavaType type)
Method that can be used to try find expected root name for given type
|
abstract KeyDeserializer |
DeserializerProvider.findKeyDeserializer(DeserializationConfig config,
JavaType keyType,
BeanProperty property)
Method called to get hold of a deserializer to use for deserializing
keys for
Map . |
KeyDeserializer |
KeyDeserializers.findKeyDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc,
BeanProperty property) |
abstract JsonSerializer<Object> |
SerializerProvider.findKeySerializer(JavaType keyType,
BeanProperty property)
Method called to get the serializer to use for serializing
non-null Map keys.
|
JsonDeserializer<?> |
Deserializers.findMapDeserializer(MapType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate deserializer for specified
Map type. |
JsonDeserializer<?> |
Deserializers.Base.findMapDeserializer(MapType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findMapLikeDeserializer(MapLikeType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
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,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findTreeNodeDeserializer(Class<? extends JsonNode> nodeType,
DeserializationConfig config,
BeanProperty property)
Method called to locate deserializer for specified JSON tree node type.
|
JsonDeserializer<?> |
Deserializers.Base.findTreeNodeDeserializer(Class<? extends JsonNode> nodeType,
DeserializationConfig config,
BeanProperty property) |
TypeDeserializer |
DeserializerFactory.findTypeDeserializer(DeserializationConfig config,
JavaType baseType,
BeanProperty property)
Method called to find and create a type information deserializer for given base type,
if one is needed.
|
abstract JsonDeserializer<Object> |
DeserializerProvider.findTypedValueDeserializer(DeserializationConfig config,
JavaType type,
BeanProperty property)
Method called to locate deserializer for given type, as well as matching
type deserializer (if one is needed); and if type deserializer is needed,
construct a "wrapped" deserializer that can extract and use type information
for calling actual deserializer.
|
JsonSerializer<Object> |
SerializerProvider.findTypedValueSerializer(Class<?> valueType,
boolean cache)
Deprecated.
As of version 1.7, use version that exposes property object
instead of just its type (needed for contextual serializers)
|
abstract 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)
Deprecated.
As of version 1.7, use version that exposes property object
instead of just its type (needed for contextual serializers)
|
abstract 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.
|
abstract JsonDeserializer<Object> |
DeserializerProvider.findValueDeserializer(DeserializationConfig config,
JavaType propertyType,
BeanProperty property)
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(DeserializationConfig config,
BasicBeanDescription beanDesc)
Method that is to find all creators (constructors, factory methods)
for the bean type to deserialize.
|
JsonSerializer<Object> |
SerializerProvider.findValueSerializer(Class<?> runtimeType)
Deprecated.
As of version 1.7, use version that exposes property object
instead of just its type (needed for contextual serializers)
|
abstract JsonSerializer<Object> |
SerializerProvider.findValueSerializer(Class<?> runtimeType,
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 serializationType)
Deprecated.
As of version 1.7, use version that exposes property object
instead of just its type (needed for contextual serializers)
|
abstract JsonSerializer<Object> |
SerializerProvider.findValueSerializer(JavaType serializationType,
BeanProperty property)
Similar to
SerializerProvider.findValueSerializer(Class) , but takes full generics-aware
type instead of raw class. |
JsonSchema |
ObjectMapper.generateJsonSchema(Class<?> t)
Generate Json-schema
instance for specified class.
|
JsonSchema |
ObjectMapper.generateJsonSchema(Class<?> t,
SerializationConfig cfg)
Generate Json-schema
instance for specified class, using specific
serialization configuration
|
abstract JsonSchema |
SerializerProvider.generateJsonSchema(Class<?> type,
SerializationConfig config,
SerializerFactory jsf)
Generate Json-schema for
given type.
|
JsonSerializer<Object> |
SerializerProvider.getKeySerializer()
Deprecated.
As of version 1.7, use version that exposes property object
instead of just its type (needed for contextual serializers)
|
JsonSerializer<Object> |
SerializerProvider.getKeySerializer(JavaType valueType,
BeanProperty property)
Deprecated.
As of version 1.8
|
abstract JavaType |
DeserializerProvider.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).
|
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).
|
<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 valueTypeRef) |
<T> T |
ObjectMapper.readValue(byte[] src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(File src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(File src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(File src,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(InputStream src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(InputStream src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(InputStream src,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(JsonNode root,
Class<T> valueType)
Convenience method for converting results from given JSON tree into given
value type.
|
<T> T |
ObjectMapper.readValue(JsonNode root,
JavaType valueType)
Convenience method for converting results from given JSON tree into given
value type.
|
<T> T |
ObjectMapper.readValue(JsonNode root,
TypeReference valueTypeRef)
Convenience method for converting results from given JSON tree into given
value type.
|
<T> T |
ObjectMapper.readValue(JsonParser jp,
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 jp,
Class<T> valueType,
DeserializationConfig cfg)
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 jp,
JavaType valueType)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(JsonParser jp,
JavaType valueType,
DeserializationConfig cfg)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(JsonParser jp,
TypeReference<?> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(JsonParser jp,
TypeReference<?> valueTypeRef,
DeserializationConfig cfg)
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 valueTypeRef) |
<T> T |
ObjectMapper.readValue(String content,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(String content,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(String content,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(URL src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(URL src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(URL src,
TypeReference valueTypeRef) |
void |
ResolvableDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called after
DeserializerProvider has registered
the deserializer, but before it has returned it to the caller. |
void |
ResolvableSerializer.resolve(SerializerProvider provider)
Method called after
SerializerProvider has registered
the serializer, but before it has returned it to the caller. |
<T> T |
ObjectMapper.treeToValue(JsonNode n,
Class<T> valueType)
Convenience conversion method that will bind data given JSON tree
contains into specific value (usually bean) type.
|
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 |
ObjectWriter.writeValue(JsonGenerator jgen,
Object value)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator . |
void |
ObjectMapper.writeValue(JsonGenerator jgen,
Object value)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator . |
void |
ObjectMapper.writeValue(JsonGenerator jgen,
Object value,
SerializationConfig config)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator ,
configured as per passed configuration object. |
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.
|
byte[] |
ObjectWriter.writeValueAsBytes(Object value)
Method that can be used to serialize any Java value as
a byte array.
|
byte[] |
ObjectMapper.writeValueAsBytes(Object value)
Method that can be used to serialize any Java value as
a byte array.
|
String |
ObjectWriter.writeValueAsString(Object value)
Method that can be used to serialize any Java value as
a String.
|
String |
ObjectMapper.writeValueAsString(Object value)
Method that can be used to serialize any Java value as
a String.
|
Constructor and Description |
---|
RuntimeJsonMappingException(JsonMappingException cause) |
RuntimeJsonMappingException(String message,
JsonMappingException cause) |
Modifier and Type | Method and Description |
---|---|
JsonMappingException |
StdDeserializationContext.instantiationException(Class<?> instClass,
String msg) |
JsonMappingException |
StdDeserializationContext.instantiationException(Class<?> instClass,
Throwable t) |
JsonMappingException |
StdDeserializationContext.mappingException(Class<?> targetClass) |
JsonMappingException |
StdDeserializationContext.mappingException(Class<?> targetClass,
JsonToken token) |
JsonMappingException |
StdDeserializationContext.unknownFieldException(Object instanceOrClass,
String fieldName) |
JsonMappingException |
StdDeserializationContext.unknownTypeException(JavaType type,
String id) |
JsonMappingException |
StdDeserializationContext.weirdKeyException(Class<?> keyClass,
String keyValue,
String msg) |
JsonMappingException |
StdDeserializationContext.weirdNumberException(Class<?> instClass,
String msg) |
JsonMappingException |
StdDeserializationContext.weirdStringException(Class<?> instClass,
String msg)
Method that will construct an exception suitable for throwing when
some String values are acceptable, but the one encountered is not
|
JsonMappingException |
StdDeserializationContext.wrongTokenException(JsonParser jp,
JsonToken expToken,
String msg) |
Modifier and Type | Method and Description |
---|---|
protected void |
BeanDeserializerFactory._addDeserializerConstructors(DeserializationConfig config,
BasicBeanDescription beanDesc,
VisibilityChecker<?> vchecker,
AnnotationIntrospector intr,
CreatorCollector creators) |
protected void |
BeanDeserializerFactory._addDeserializerFactoryMethods(DeserializationConfig config,
BasicBeanDescription beanDesc,
VisibilityChecker<?> vchecker,
AnnotationIntrospector intr,
CreatorCollector creators) |
protected JsonDeserializer<Object> |
StdDeserializerProvider._createAndCache2(DeserializationConfig config,
JavaType type,
BeanProperty property)
Method that handles actual construction (via factory) and caching (both
intermediate and eventual)
|
protected JsonDeserializer<Object> |
StdDeserializerProvider._createAndCacheValueDeserializer(DeserializationConfig config,
JavaType type,
BeanProperty property)
Method that will try to create a deserializer for given type,
and resolve and cache it if necessary
|
protected JsonDeserializer<Object> |
StdDeserializerProvider._createDeserializer(DeserializationConfig config,
JavaType type,
BeanProperty property) |
protected JsonDeserializer<?> |
BeanDeserializerFactory._findCustomArrayDeserializer(ArrayType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected abstract JsonDeserializer<?> |
BasicDeserializerFactory._findCustomArrayDeserializer(ArrayType type,
DeserializationConfig config,
DeserializerProvider p,
BeanProperty property,
TypeDeserializer elementTypeDeser,
JsonDeserializer<?> elementDeser) |
protected JsonDeserializer<Object> |
BeanDeserializerFactory._findCustomBeanDeserializer(JavaType type,
DeserializationConfig config,
DeserializerProvider provider,
BasicBeanDescription beanDesc,
BeanProperty property) |
protected JsonDeserializer<?> |
BeanDeserializerFactory._findCustomCollectionDeserializer(CollectionType type,
DeserializationConfig config,
DeserializerProvider provider,
BasicBeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected abstract JsonDeserializer<?> |
BasicDeserializerFactory._findCustomCollectionDeserializer(CollectionType type,
DeserializationConfig config,
DeserializerProvider p,
BasicBeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeser,
JsonDeserializer<?> elementDeser) |
protected JsonDeserializer<?> |
BeanDeserializerFactory._findCustomCollectionLikeDeserializer(CollectionLikeType type,
DeserializationConfig config,
DeserializerProvider provider,
BasicBeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected abstract JsonDeserializer<?> |
BasicDeserializerFactory._findCustomCollectionLikeDeserializer(CollectionLikeType type,
DeserializationConfig config,
DeserializerProvider p,
BasicBeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeser,
JsonDeserializer<?> elementDeser) |
protected JsonDeserializer<?> |
BeanDeserializerFactory._findCustomEnumDeserializer(Class<?> type,
DeserializationConfig config,
BasicBeanDescription beanDesc,
BeanProperty property) |
protected abstract JsonDeserializer<?> |
BasicDeserializerFactory._findCustomEnumDeserializer(Class<?> type,
DeserializationConfig config,
BasicBeanDescription beanDesc,
BeanProperty property) |
protected JsonDeserializer<?> |
BeanDeserializerFactory._findCustomMapDeserializer(MapType type,
DeserializationConfig config,
DeserializerProvider provider,
BasicBeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected abstract JsonDeserializer<?> |
BasicDeserializerFactory._findCustomMapDeserializer(MapType type,
DeserializationConfig config,
DeserializerProvider p,
BasicBeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeser,
TypeDeserializer elementTypeDeser,
JsonDeserializer<?> elementDeser) |
protected JsonDeserializer<?> |
BeanDeserializerFactory._findCustomMapLikeDeserializer(MapLikeType type,
DeserializationConfig config,
DeserializerProvider provider,
BasicBeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
protected abstract JsonDeserializer<?> |
BasicDeserializerFactory._findCustomMapLikeDeserializer(MapLikeType type,
DeserializationConfig config,
DeserializerProvider p,
BasicBeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeser,
TypeDeserializer elementTypeDeser,
JsonDeserializer<?> elementDeser) |
protected JsonDeserializer<?> |
BeanDeserializerFactory._findCustomTreeNodeDeserializer(Class<? extends JsonNode> type,
DeserializationConfig config,
BeanProperty property) |
protected abstract JsonDeserializer<?> |
BasicDeserializerFactory._findCustomTreeNodeDeserializer(Class<? extends JsonNode> type,
DeserializationConfig config,
BeanProperty property) |
protected boolean |
BeanDeserializerFactory._handleSingleArgumentConstructor(DeserializationConfig config,
BasicBeanDescription beanDesc,
VisibilityChecker<?> vchecker,
AnnotationIntrospector intr,
CreatorCollector creators,
AnnotatedConstructor ctor,
boolean isCreator,
boolean isVisible) |
protected boolean |
BeanDeserializerFactory._handleSingleArgumentFactory(DeserializationConfig config,
BasicBeanDescription beanDesc,
VisibilityChecker<?> vchecker,
AnnotationIntrospector intr,
CreatorCollector creators,
AnnotatedMethod factory,
boolean isCreator) |
protected KeyDeserializer |
StdDeserializerProvider._handleUnknownKeyDeserializer(JavaType type) |
protected JsonDeserializer<Object> |
StdDeserializerProvider._handleUnknownValueDeserializer(JavaType type) |
protected JavaType |
BeanDeserializerFactory._mapAbstractType2(DeserializationConfig config,
JavaType type)
Method that will find abstract type mapping for specified type, doing a single
lookup through registered abstract type resolvers; will not do recursive lookups.
|
protected void |
StdDeserializerProvider._resolveDeserializer(DeserializationConfig config,
ResolvableDeserializer ser) |
protected void |
BeanDeserializerFactory.addBeanProps(DeserializationConfig config,
BasicBeanDescription beanDesc,
BeanDeserializerBuilder builder)
Method called to figure out settable properties for the
bean deserializer to use.
|
protected void |
BeanDeserializerFactory.addInjectables(DeserializationConfig config,
BasicBeanDescription 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.addReferenceProperties(DeserializationConfig config,
BasicBeanDescription 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.
|
JsonDeserializer<Object> |
BeanDeserializerFactory.buildBeanDeserializer(DeserializationConfig config,
JavaType type,
BasicBeanDescription beanDesc,
BeanProperty property)
Method that is to actually build a bean deserializer instance.
|
JsonDeserializer<Object> |
BeanDeserializerFactory.buildThrowableDeserializer(DeserializationConfig config,
JavaType type,
BasicBeanDescription beanDesc,
BeanProperty property) |
protected SettableAnyProperty |
BeanDeserializerFactory.constructAnySetter(DeserializationConfig config,
BasicBeanDescription beanDesc,
AnnotatedMethod setter)
Method called to construct fallback
SettableAnyProperty
for handling unknown bean properties, given a method that
has been designated as such setter. |
protected CreatorProperty |
BeanDeserializerFactory.constructCreatorProperty(DeserializationConfig config,
BasicBeanDescription beanDesc,
String name,
int index,
AnnotatedParameter param,
Object injectableValueId)
Method that will construct a property object that represents
a logical property passed via Creator (constructor or static
factory method)
|
protected ValueInstantiator |
BeanDeserializerFactory.constructDefaultValueInstantiator(DeserializationConfig config,
BasicBeanDescription beanDesc)
Method that will construct standard default
ValueInstantiator
using annotations (like @JsonCreator) and visibility rules |
protected SettableBeanProperty |
BeanDeserializerFactory.constructSettableProperty(DeserializationConfig config,
BasicBeanDescription beanDesc,
String name,
AnnotatedField field) |
protected SettableBeanProperty |
BeanDeserializerFactory.constructSettableProperty(DeserializationConfig config,
BasicBeanDescription beanDesc,
String name,
AnnotatedMethod setter)
Method that will construct a regular bean property setter using
the given setter method.
|
protected SettableBeanProperty |
BeanDeserializerFactory.constructSetterlessProperty(DeserializationConfig config,
BasicBeanDescription beanDesc,
String name,
AnnotatedMethod getter)
Method that will construct a regular bean property setter using
the given setter method.
|
JsonDeserializer<?> |
CustomDeserializerFactory.createArrayDeserializer(DeserializationConfig config,
DeserializerProvider p,
ArrayType type,
BeanProperty property)
Deprecated.
|
JsonDeserializer<?> |
BasicDeserializerFactory.createArrayDeserializer(DeserializationConfig config,
DeserializerProvider p,
ArrayType type,
BeanProperty property) |
JsonDeserializer<Object> |
CustomDeserializerFactory.createBeanDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property)
Deprecated.
|
JsonDeserializer<Object> |
BeanDeserializerFactory.createBeanDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property)
Method that
DeserializerProvider s call to create a new
deserializer for types other than Collections, Maps, arrays and
enums. |
JsonDeserializer<?> |
BasicDeserializerFactory.createCollectionDeserializer(DeserializationConfig config,
DeserializerProvider p,
CollectionType type,
BeanProperty property) |
JsonDeserializer<?> |
BasicDeserializerFactory.createCollectionLikeDeserializer(DeserializationConfig config,
DeserializerProvider p,
CollectionLikeType type,
BeanProperty property) |
JsonDeserializer<?> |
CustomDeserializerFactory.createEnumDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType enumType,
BeanProperty property)
Deprecated.
|
JsonDeserializer<?> |
BasicDeserializerFactory.createEnumDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property)
Factory method for constructing serializers of
Enum types. |
KeyDeserializer |
BeanDeserializerFactory.createKeyDeserializer(DeserializationConfig config,
JavaType type,
BeanProperty property) |
JsonDeserializer<?> |
BasicDeserializerFactory.createMapDeserializer(DeserializationConfig config,
DeserializerProvider p,
MapType type,
BeanProperty property) |
JsonDeserializer<?> |
BasicDeserializerFactory.createMapLikeDeserializer(DeserializationConfig config,
DeserializerProvider p,
MapLikeType type,
BeanProperty property) |
JsonDeserializer<?> |
BasicDeserializerFactory.createTreeDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType nodeType,
BeanProperty property) |
protected JsonDeserializer<Object> |
BasicDeserializerFactory.findDeserializerFromAnnotation(DeserializationConfig config,
Annotated ann,
BeanProperty property)
Helper method called to check if a class or method
has annotation that tells which class to use for deserialization.
|
SerializedString |
StdDeserializerProvider.findExpectedRootName(DeserializationConfig config,
JavaType type) |
KeyDeserializer |
StdDeserializerProvider.findKeyDeserializer(DeserializationConfig config,
JavaType type,
BeanProperty property) |
TypeDeserializer |
BasicDeserializerFactory.findPropertyContentTypeDeserializer(DeserializationConfig config,
JavaType containerType,
AnnotatedMember propertyEntity,
BeanProperty property)
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,
BeanProperty property)
Method called to create a type information deserializer for values of
given non-container property, if one is needed.
|
protected JsonDeserializer<Object> |
BasicDeserializerFactory.findStdBeanDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property)
Method called by
BeanDeserializerFactory to see if there might be a standard
deserializer registered for given type. |
TypeDeserializer |
BasicDeserializerFactory.findTypeDeserializer(DeserializationConfig config,
JavaType baseType,
BeanProperty property) |
JsonDeserializer<Object> |
StdDeserializerProvider.findTypedValueDeserializer(DeserializationConfig config,
JavaType type,
BeanProperty property) |
JsonDeserializer<Object> |
StdDeserializerProvider.findValueDeserializer(DeserializationConfig config,
JavaType propertyType,
BeanProperty property) |
ValueInstantiator |
BeanDeserializerFactory.findValueInstantiator(DeserializationConfig config,
BasicBeanDescription beanDesc)
Value instantiator is created both based on creator annotations,
and on optional externally provided instantiators (registered through
module interface).
|
abstract ValueInstantiator |
BasicDeserializerFactory.findValueInstantiator(DeserializationConfig config,
BasicBeanDescription beanDesc) |
JavaType |
StdDeserializerProvider.mapAbstractType(DeserializationConfig config,
JavaType type) |
JavaType |
BeanDeserializerFactory.mapAbstractType(DeserializationConfig config,
JavaType type)
Method that will find complete abstract type mapping for specified type, doing as
many resolution steps as necessary.
|
abstract JavaType |
BasicDeserializerFactory.mapAbstractType(DeserializationConfig config,
JavaType type) |
protected JavaType |
BeanDeserializerFactory.materializeAbstractType(DeserializationConfig config,
BasicBeanDescription beanDesc) |
protected <T extends JavaType> |
BasicDeserializerFactory.modifyTypeByAnnotation(DeserializationConfig config,
Annotated a,
T type,
String propName)
Method called to see if given method has annotations that indicate
a more specific type than what the argument specifies.
|
void |
BeanDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
protected JavaType |
BasicDeserializerFactory.resolveType(DeserializationConfig config,
BasicBeanDescription beanDesc,
JavaType type,
AnnotatedMember member,
BeanProperty property)
Helper method used to resolve method return types and field
types.
|
Modifier and Type | Method and Description |
---|---|
protected JsonMappingException |
StdValueInstantiator.wrapException(Throwable t) |
Modifier and Type | Method and Description |
---|---|
protected JsonDeserializer<Object> |
StdDeserializer.findDeserializer(DeserializationConfig config,
DeserializerProvider provider,
JavaType type,
BeanProperty property)
Helper method used to locate deserializers for properties the
type this deserializer handles contains (usually for properties of
bean types)
|
void |
StringCollectionDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
void |
MapDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
void |
CollectionDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
void |
AtomicReferenceDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider) |
Modifier and Type | Class and Description |
---|---|
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). |
Modifier and Type | Method and Description |
---|---|
JsonNode |
CoreXMLSerializers.XMLGregorianCalendarSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
Modifier and Type | Method and Description |
---|---|
protected BeanPropertyWriter |
BeanSerializerFactory._constructWriter(SerializationConfig config,
TypeBindings typeContext,
PropertyBuilder pb,
boolean staticTyping,
String name,
AnnotatedMember accessor)
Secondary helper method for constructing
BeanPropertyWriter for
given member (field or method). |
protected JsonSerializer<Object> |
StdSerializerProvider._createAndCacheUntypedSerializer(Class<?> type,
BeanProperty property)
Method that will try to construct a value serializer; and if
one is successfully created, cache it for reuse.
|
protected JsonSerializer<Object> |
StdSerializerProvider._createAndCacheUntypedSerializer(JavaType type,
BeanProperty property) |
protected JsonSerializer<Object> |
StdSerializerProvider._createUntypedSerializer(JavaType type,
BeanProperty property) |
protected JsonSerializer<Object> |
BeanPropertyWriter._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
protected JsonSerializer<Object> |
StdSerializerProvider._handleContextualResolvable(JsonSerializer<Object> ser,
BeanProperty property) |
protected void |
BeanPropertyWriter._reportSelfReference(Object bean) |
protected JsonSerializer<Object> |
BeanSerializerFactory.constructBeanSerializer(SerializationConfig config,
BasicBeanDescription beanDesc,
BeanProperty property)
Method called to construct serializer for serializing specified bean type.
|
JsonSerializer<Object> |
CustomSerializerFactory.createSerializer(SerializationConfig config,
JavaType type,
BeanProperty property) |
JsonSerializer<Object> |
BeanSerializerFactory.createSerializer(SerializationConfig config,
JavaType origType,
BeanProperty property)
Main serializer constructor method.
|
abstract JsonSerializer<Object> |
BasicSerializerFactory.createSerializer(SerializationConfig config,
JavaType type,
BeanProperty property) |
protected List<BeanPropertyWriter> |
BeanSerializerFactory.findBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc)
Method used to collect all actual serializable properties.
|
JsonSerializer<Object> |
BeanSerializerFactory.findBeanSerializer(SerializationConfig config,
JavaType type,
BasicBeanDescription beanDesc,
BeanProperty property)
Method that will try to construct a
BeanSerializer for
given class. |
JsonSerializer<Object> |
StdSerializerProvider.findKeySerializer(JavaType keyType,
BeanProperty property) |
TypeSerializer |
BeanSerializerFactory.findPropertyContentTypeSerializer(JavaType containerType,
SerializationConfig config,
AnnotatedMember accessor,
BeanProperty property)
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,
BeanProperty property)
Method called to create a type information serializer for values of given
non-container property
if one is needed.
|
JsonSerializer<?> |
BasicSerializerFactory.findSerializerByAddonType(SerializationConfig config,
JavaType javaType,
BasicBeanDescription beanDesc,
BeanProperty property,
boolean staticTyping)
Reflection-based serialized find method, which checks if
given class implements one of recognized "add-on" interfaces.
|
JsonSerializer<?> |
BasicSerializerFactory.findSerializerByPrimaryType(JavaType type,
SerializationConfig config,
BasicBeanDescription beanDesc,
BeanProperty property,
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(SerializationConfig config,
Annotated a,
BeanProperty property)
Helper method called to check if a class or method
has an annotation
(@link org.codehaus.jackson.map.ser.JsonSerialize#using)
that tells the class to use for serialization.
|
JsonSerializer<Object> |
StdSerializerProvider.findTypedValueSerializer(Class<?> valueType,
boolean cache,
BeanProperty property) |
JsonSerializer<Object> |
StdSerializerProvider.findTypedValueSerializer(JavaType valueType,
boolean cache,
BeanProperty property) |
JsonSerializer<Object> |
StdSerializerProvider.findValueSerializer(Class<?> valueType,
BeanProperty property) |
JsonSerializer<Object> |
StdSerializerProvider.findValueSerializer(JavaType valueType,
BeanProperty property)
This variant was added in 1.5, to allow for efficient access using full
structured types, not just classes.
|
JsonSchema |
StdSerializerProvider.generateJsonSchema(Class<?> type,
SerializationConfig config,
SerializerFactory jsf) |
void |
AnyGetterWriter.resolve(SerializerProvider provider) |
Modifier and Type | Method and Description |
---|---|
protected JsonSerializer<Object> |
UnwrappingBeanPropertyWriter._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
void |
SerializerCache.addAndResolveNonTypedSerializer(Class<?> type,
JsonSerializer<Object> ser,
SerializerProvider provider) |
void |
SerializerCache.addAndResolveNonTypedSerializer(JavaType type,
JsonSerializer<Object> ser,
SerializerProvider provider) |
protected void |
UnknownSerializer.failForEmpty(Object value) |
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddSerializer(Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails; will both find serializer
and construct new map instance if warranted, and return both
|
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddSerializer(JavaType type,
SerializerProvider provider,
BeanProperty property) |
JsonNode |
UnknownSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
FailingSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
void |
UnknownSerializer.serialize(Object value,
JsonGenerator jgen,
SerializerProvider provider) |
Modifier and Type | Method and Description |
---|---|
protected JsonSerializer<Object> |
ObjectArraySerializer._findAndAddDynamic(PropertySerializerMap map,
Class<?> type,
SerializerProvider provider) |
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> |
ObjectArraySerializer._findAndAddDynamic(PropertySerializerMap map,
JavaType 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 BeanPropertyFilter |
BeanSerializerBase.findFilter(SerializerProvider provider)
Helper method used to locate filter that is needed, based on filter id
this serializer was constructed with.
|
JsonNode |
ToStringSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdKeySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
SerializerBase.getSchema(SerializerProvider provider,
Type typeHint)
Note: since Jackson 1.9, default implementation claims type is "string"
|
JsonNode |
SerializableWithTypeSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
SerializableSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
ScalarSerializerBase.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
ObjectArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
NullSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
JsonValueSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
EnumMapSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
BeanSerializerBase.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
AsArraySerializerBase.getSchema(SerializerProvider provider,
Type typeHint) |
void |
StringCollectionSerializer.resolve(SerializerProvider provider) |
void |
StdArraySerializers.StringArraySerializer.resolve(SerializerProvider provider)
Need to get callback to resolve value serializer, which may
be overridden by custom serializer
|
void |
ObjectArraySerializer.resolve(SerializerProvider provider)
Need to get callback to resolve value serializer, if static typing
is used (either being forced, or because value type is final)
|
void |
MapSerializer.resolve(SerializerProvider provider)
Need to get callback to resolve value serializer, if static typing
is used (either being forced, or because value type is final)
|
void |
JsonValueSerializer.resolve(SerializerProvider provider)
We can try to find the actual serializer for value, if we can
statically figure out what the result type must be.
|
void |
IndexedStringListSerializer.resolve(SerializerProvider provider) |
void |
EnumMapSerializer.resolve(SerializerProvider provider) |
void |
BeanSerializerBase.resolve(SerializerProvider provider) |
void |
AsArraySerializerBase.resolve(SerializerProvider provider)
Need to get callback to resolve value serializer, if static typing
is used (either being forced, or because value type is final)
|
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.
|
Modifier and Type | Method and Description |
---|---|
JsonNode |
XmlAdapterJsonSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
DomElementJsonSerializer.getSchema(SerializerProvider provider,
Type typeHint) |