Package | Description |
---|---|
com.fasterxml.jackson.annotation |
Public core annotations, most of which are used to configure how
Data Mapping/Binding works.
|
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.cfg |
Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind ). |
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.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.
|
com.fasterxml.jackson.module.jaxb |
Package that contains support for using JAXB annotations for
configuring Jackson data-binding aspects.
|
Modifier and Type | Field and Description |
---|---|
protected static JsonInclude.Value |
JsonInclude.Value.EMPTY |
Modifier and Type | Method and Description |
---|---|
static JsonInclude.Value |
JsonInclude.Value.construct(JsonInclude.Include valueIncl,
JsonInclude.Include contentIncl)
Factory method to use for constructing an instance for components
|
static JsonInclude.Value |
JsonInclude.Value.construct(JsonInclude.Include valueIncl,
JsonInclude.Include contentIncl,
Class<?> valueFilter,
Class<?> contentFilter)
Factory method to use for constructing an instance for components
|
static JsonInclude.Value |
JsonInclude.Value.empty() |
static JsonInclude.Value |
JsonInclude.Value.from(JsonInclude src)
Factory method to use for constructing an instance from instance of
JsonInclude |
static JsonInclude.Value |
JsonInclude.Value.merge(JsonInclude.Value base,
JsonInclude.Value overrides)
Helper method that will try to combine values from two
JsonInclude.Value
instances, using one as base settings, and the other as overrides
to use instead of base values when defined; base values are only
use if override does not specify a value (matching value is null
or logically missing). |
static JsonInclude.Value |
JsonInclude.Value.mergeAll(JsonInclude.Value... values) |
JsonInclude.Value |
JsonInclude.Value.withContentFilter(Class<?> filter)
Mutant factory that will either
Set
content as USE_DEFAULTS
and contentFilter to filter (if filter not null);
or
Set content as ALWAYS (if filter null)
|
JsonInclude.Value |
JsonInclude.Value.withContentInclusion(JsonInclude.Include incl) |
JsonInclude.Value |
JsonInclude.Value.withOverrides(JsonInclude.Value overrides)
Mutant factory method that merges values of this value with given override
values, so that any explicitly defined inclusion in overrides has precedence over
settings of this value instance.
|
JsonInclude.Value |
JsonInclude.Value.withValueFilter(Class<?> filter)
Mutant factory that will either
Set
value as USE_DEFAULTS
and valueFilter to filter (if filter not null);
or
Set value as ALWAYS (if filter null)
|
JsonInclude.Value |
JsonInclude.Value.withValueInclusion(JsonInclude.Include incl) |
Modifier and Type | Method and Description |
---|---|
static JsonInclude.Value |
JsonInclude.Value.merge(JsonInclude.Value base,
JsonInclude.Value overrides)
Helper method that will try to combine values from two
JsonInclude.Value
instances, using one as base settings, and the other as overrides
to use instead of base values when defined; base values are only
use if override does not specify a value (matching value is null
or logically missing). |
static JsonInclude.Value |
JsonInclude.Value.mergeAll(JsonInclude.Value... values) |
JsonInclude.Value |
JsonInclude.Value.withOverrides(JsonInclude.Value overrides)
Mutant factory method that merges values of this value with given override
values, so that any explicitly defined inclusion in overrides has precedence over
settings of this value instance.
|
Modifier and Type | Field and Description |
---|---|
static JsonInclude.Value |
BeanProperty.EMPTY_INCLUDE |
Modifier and Type | Method and Description |
---|---|
JsonInclude.Value |
AnnotationIntrospector.findPropertyInclusion(Annotated a)
Method for checking inclusion criteria for a type (Class) or property (yes, method
name is bit unfortunate -- not just for properties!).
|
abstract JsonInclude.Value |
BeanDescription.findPropertyInclusion(JsonInclude.Value defValue)
Method for finding annotation-indicated inclusion definition (if any);
possibly overriding given default value.
|
JsonInclude.Value |
BeanProperty.findPropertyInclusion(MapperConfig<?> config,
Class<?> baseType)
Convenience method that is roughly equivalent to
|
JsonInclude.Value |
BeanProperty.Std.findPropertyInclusion(MapperConfig<?> config,
Class<?> baseType) |
JsonInclude.Value |
BeanProperty.Bogus.findPropertyInclusion(MapperConfig<?> config,
Class<?> baseType) |
JsonInclude.Value |
SerializerProvider.getDefaultPropertyInclusion(Class<?> baseType) |
Modifier and Type | Method and Description |
---|---|
abstract JsonInclude.Value |
BeanDescription.findPropertyInclusion(JsonInclude.Value defValue)
Method for finding annotation-indicated inclusion definition (if any);
possibly overriding given default value.
|
ObjectMapper |
ObjectMapper.setDefaultPropertyInclusion(JsonInclude.Value incl)
Method for setting default POJO property inclusion strategy for serialization,
applied for all properties for which there are no per-type or per-property
overrides (via annotations or config overrides).
|
ObjectMapper |
ObjectMapper.setPropertyInclusion(JsonInclude.Value incl)
Deprecated.
|
SerializationConfig |
SerializationConfig.withPropertyInclusion(JsonInclude.Value incl)
Deprecated.
Since 2.9; not needed any more
|
Modifier and Type | Field and Description |
---|---|
protected JsonInclude.Value |
ConfigOverrides._defaultInclusion |
protected JsonInclude.Value |
ConfigOverride._include
Definitions of inclusion defaults to use for properties included in this POJO type.
|
protected JsonInclude.Value |
ConfigOverride._includeAsProperty
Definitions of inclusion defaults for properties of this specified type (regardless
of POJO in which they are included).
|
protected static JsonInclude.Value |
MapperConfig.EMPTY_INCLUDE |
Modifier and Type | Method and Description |
---|---|
JsonInclude.Value |
ConfigOverrides.getDefaultInclusion() |
JsonInclude.Value |
MapperConfigBase.getDefaultInclusion(Class<?> baseType,
Class<?> propertyType) |
abstract JsonInclude.Value |
MapperConfig.getDefaultInclusion(Class<?> baseType,
Class<?> propertyType)
Accessor for default property inclusion to use for serialization,
considering possible per-type override for given base type and
possible per-type override for given property type.
NOTE: if no override found, defaults to value returned by MapperConfig.getDefaultPropertyInclusion() . |
JsonInclude.Value |
MapperConfig.getDefaultInclusion(Class<?> baseType,
Class<?> propertyType,
JsonInclude.Value defaultIncl)
Accessor for default property inclusion to use for serialization,
considering possible per-type override for given base type and
possible per-type override for given property type; but
if none found, returning given
defaultIncl |
JsonInclude.Value |
MapperConfigBase.getDefaultPropertyInclusion() |
abstract JsonInclude.Value |
MapperConfig.getDefaultPropertyInclusion()
Accessor for default property inclusion to use for serialization,
used unless overridden by per-type or per-property overrides.
|
JsonInclude.Value |
MapperConfigBase.getDefaultPropertyInclusion(Class<?> baseType) |
abstract JsonInclude.Value |
MapperConfig.getDefaultPropertyInclusion(Class<?> baseType)
Accessor for default property inclusion to use for serialization,
considering possible per-type override for given base type.
NOTE: if no override found, defaults to value returned by MapperConfig.getDefaultPropertyInclusion() . |
JsonInclude.Value |
MapperConfig.getDefaultPropertyInclusion(Class<?> baseType,
JsonInclude.Value defaultIncl)
Accessor for default property inclusion to use for serialization,
considering possible per-type override for given base type; but
if none found, returning given
defaultIncl |
JsonInclude.Value |
ConfigOverride.getInclude() |
JsonInclude.Value |
ConfigOverride.getIncludeAsProperty() |
Modifier and Type | Method and Description |
---|---|
JsonInclude.Value |
MapperConfig.getDefaultInclusion(Class<?> baseType,
Class<?> propertyType,
JsonInclude.Value defaultIncl)
Accessor for default property inclusion to use for serialization,
considering possible per-type override for given base type and
possible per-type override for given property type; but
if none found, returning given
defaultIncl |
JsonInclude.Value |
MapperConfig.getDefaultPropertyInclusion(Class<?> baseType,
JsonInclude.Value defaultIncl)
Accessor for default property inclusion to use for serialization,
considering possible per-type override for given base type; but
if none found, returning given
defaultIncl |
void |
ConfigOverrides.setDefaultInclusion(JsonInclude.Value v) |
MutableConfigOverride |
MutableConfigOverride.setInclude(JsonInclude.Value v)
Override inclusion setting for all properties contained in POJOs of the
associated type.
|
MutableConfigOverride |
MutableConfigOverride.setIncludeAsProperty(JsonInclude.Value v)
Override inclusion setting for properties of the associated type
regardless of the type of the POJO containing it.
|
Constructor and Description |
---|
ConfigOverrides(Map<Class<?>,MutableConfigOverride> overrides,
JsonInclude.Value defIncl,
JsonSetter.Value defSetter,
VisibilityChecker<?> defVisibility,
Boolean defMergeable) |
Modifier and Type | Field and Description |
---|---|
protected static JsonInclude.Value |
BeanPropertyDefinition.EMPTY_INCLUDE |
Modifier and Type | Method and Description |
---|---|
JsonInclude.Value |
POJOPropertyBuilder.findInclusion() |
abstract JsonInclude.Value |
BeanPropertyDefinition.findInclusion()
Method used to check if this property has specific inclusion override
associated with it or not.
|
JsonInclude.Value |
JacksonAnnotationIntrospector.findPropertyInclusion(Annotated a) |
JsonInclude.Value |
AnnotationIntrospectorPair.findPropertyInclusion(Annotated a) |
JsonInclude.Value |
BasicBeanDescription.findPropertyInclusion(JsonInclude.Value defValue)
Method for determining whether null properties should be written
out for a Bean of introspected type.
|
JsonInclude.Value |
ConcreteBeanPropertyBase.findPropertyInclusion(MapperConfig<?> config,
Class<?> baseType) |
Modifier and Type | Method and Description |
---|---|
JsonInclude.Value |
BasicBeanDescription.findPropertyInclusion(JsonInclude.Value defValue)
Method for determining whether null properties should be written
out for a Bean of introspected type.
|
Modifier and Type | Field and Description |
---|---|
protected JsonInclude.Value |
PropertyBuilder._defaultInclusion
Default inclusion mode for properties of the POJO for which
properties are collected; possibly overridden on
per-property basis.
|
Modifier and Type | Method and Description |
---|---|
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 ). |
Modifier and Type | Method and Description |
---|---|
protected static Object |
VirtualBeanPropertyWriter._suppressableValue(JsonInclude.Value inclusion) |
protected static boolean |
VirtualBeanPropertyWriter._suppressNulls(JsonInclude.Value inclusion) |
Constructor and Description |
---|
VirtualBeanPropertyWriter(BeanPropertyDefinition propDef,
Annotations contextAnnotations,
JavaType declaredType,
JsonSerializer<?> ser,
TypeSerializer typeSer,
JavaType serType,
JsonInclude.Value inclusion)
Deprecated.
|
VirtualBeanPropertyWriter(BeanPropertyDefinition propDef,
Annotations contextAnnotations,
JavaType declaredType,
JsonSerializer<?> ser,
TypeSerializer typeSer,
JavaType serType,
JsonInclude.Value inclusion,
Class<?>[] includeInViews)
Pass-through constructor that may be used by sub-classes that
want full control over implementation.
|
Constructor and Description |
---|
AttributePropertyWriter(String attrName,
BeanPropertyDefinition propDef,
Annotations contextAnnotations,
JavaType declaredType,
JsonInclude.Value inclusion) |
Modifier and Type | Method and Description |
---|---|
protected JsonInclude.Value |
StdSerializer.findIncludeOverrides(SerializerProvider provider,
BeanProperty prop,
Class<?> typeForDefaults) |
Modifier and Type | Field and Description |
---|---|
protected JsonInclude.Value |
SimpleBeanPropertyDefinition._inclusion |
Modifier and Type | Method and Description |
---|---|
JsonInclude.Value |
SimpleBeanPropertyDefinition.findInclusion() |
Modifier and Type | Method and Description |
---|---|
static SimpleBeanPropertyDefinition |
SimpleBeanPropertyDefinition.construct(MapperConfig<?> config,
AnnotatedMember member,
PropertyName name,
PropertyMetadata metadata,
JsonInclude.Value inclusion) |
BeanPropertyDefinition |
SimpleBeanPropertyDefinition.withInclusion(JsonInclude.Value inclusion) |
Constructor and Description |
---|
SimpleBeanPropertyDefinition(AnnotationIntrospector intr,
AnnotatedMember member,
PropertyName fullName,
PropertyMetadata metadata,
JsonInclude.Value inclusion) |
Modifier and Type | Method and Description |
---|---|
JsonInclude.Value |
JaxbAnnotationIntrospector.findPropertyInclusion(Annotated a) |
Copyright © 2018 JBoss by Red Hat. All rights reserved.