Package | Description |
---|---|
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.annotate |
Annotations that directly depend on Mapper classes (not just
Jackson core) and are used for configuring Data Mapping functionality.
|
org.codehaus.jackson.map.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
org.codehaus.jackson.map.ser |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.xc |
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
|
Modifier and Type | Field and Description |
---|---|
protected JsonSerialize.Inclusion |
SerializationConfig._serializationInclusion
Which Bean/Map properties are to be included in serialization?
Default settings is to include all regardless of value; can be
changed to only include non-null properties, or properties
with non-default values.
|
Modifier and Type | Method and Description |
---|---|
JsonSerialize.Inclusion |
AnnotationIntrospector.findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue)
Method for checking whether given annotated entity (class, method,
field) defines which Bean/Map properties are to be included in
serialization.
|
JsonSerialize.Inclusion |
AnnotationIntrospector.Pair.findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue) |
JsonSerialize.Inclusion |
SerializationConfig.getSerializationInclusion() |
Modifier and Type | Method and Description |
---|---|
JsonSerialize.Inclusion |
AnnotationIntrospector.findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue)
Method for checking whether given annotated entity (class, method,
field) defines which Bean/Map properties are to be included in
serialization.
|
JsonSerialize.Inclusion |
AnnotationIntrospector.Pair.findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue) |
void |
SerializationConfig.setSerializationInclusion(JsonSerialize.Inclusion props)
Deprecated.
since 1.9 should either use
SerializationConfig.withSerializationInclusion(org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion)
to construct new instance, or configure through ObjectMapper |
ObjectMapper |
ObjectMapper.setSerializationInclusion(JsonSerialize.Inclusion incl)
Method for setting defalt POJO property inclusion strategy for serialization.
|
SerializationConfig |
SerializationConfig.withSerializationInclusion(JsonSerialize.Inclusion incl) |
Constructor and Description |
---|
SerializationConfig(SerializationConfig src,
JsonSerialize.Inclusion incl) |
Modifier and Type | Method and Description |
---|---|
static JsonSerialize.Inclusion |
JsonSerialize.Inclusion.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonSerialize.Inclusion[] |
JsonSerialize.Inclusion.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
JsonSerialize.Inclusion |
JacksonAnnotationIntrospector.findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue) |
JsonSerialize.Inclusion |
BasicBeanDescription.findSerializationInclusion(JsonSerialize.Inclusion defValue)
Method for determining whether null properties should be written
out for a Bean of introspected type.
|
Modifier and Type | Method and Description |
---|---|
JsonSerialize.Inclusion |
JacksonAnnotationIntrospector.findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue) |
JsonSerialize.Inclusion |
BasicBeanDescription.findSerializationInclusion(JsonSerialize.Inclusion defValue)
Method for determining whether null properties should be written
out for a Bean of introspected type.
|
Modifier and Type | Field and Description |
---|---|
protected JsonSerialize.Inclusion |
PropertyBuilder._outputProps |
Modifier and Type | Method and Description |
---|---|
JsonSerialize.Inclusion |
JaxbAnnotationIntrospector.findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue)
Implementation of this method is slightly tricky, given that JAXB defaults differ
from Jackson defaults.
|
Modifier and Type | Method and Description |
---|---|
JsonSerialize.Inclusion |
JaxbAnnotationIntrospector.findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue)
Implementation of this method is slightly tricky, given that JAXB defaults differ
from Jackson defaults.
|