@AvroIgnore - Alias for JsonIgnore@AvroName("custom Name") - Alias for JsonProperty("custom name")@AvroDefault("default value") - Alias for JsonProperty.defaultValue, to
define default value for generated Schemas
@Nullable - Alias for JsonProperty(required = false)@Stringable - Alias for JsonCreator on the constructor and JsonValue on
the toString() method. @Union - Alias for JsonSubTypes| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected PropertyName | |
| protected Class | |
| public JsonCreator. | findCreatorAnnotation(MapperConfig<?> config, Annotated a)
Overrides tools. Method called to check whether potential Creator (constructor or static factory
method) has explicit annotation to indicate it as actual Creator; and if so,
which |
| public Object | findDeserializer(MapperConfig<?> config, Annotated am)
Overrides tools. Method for getting a deserializer definition on specified method or field. |
| public PropertyName | findNameForDeserialization(MapperConfig<?> config, Annotated a)
Overrides tools. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for deserialization (reading JSON into POJOs). |
| public PropertyName | findNameForSerialization(MapperConfig<?> config, Annotated a)
Overrides tools. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for serialization. |
| public List | findPropertyAliases(MapperConfig<?> config, Annotated m)
Overrides tools. Method called to find if given property has alias(es) defined. |
| public String | findPropertyDefaultValue(MapperConfig<?> config, Annotated m)
Overrides tools. Method for finding suggested default value (as simple textual serialization) for the property. |
| public Object | findSerializer(MapperConfig<?> config, Annotated a)
Overrides tools. Method for getting a serializer definition on specified method or field. |
| public List | findSubtypes(MapperConfig<?> config, Annotated a)
Overrides tools. Method for locating annotation-specified subtypes related to annotated entity (class, method, field). |
| public Object | findTypeResolverBuilder(MapperConfig<?> config, Annotated ann)
Overrides tools.
|
| public boolean | hasIgnoreMarker(MapperConfig<?> config, AnnotatedMember m)
Overrides tools. Method called to check whether given property is marked to be ignored. |
| public Boolean | hasRequiredMarker(MapperConfig<?> config, AnnotatedMember m)
Overrides tools. Method that can be called to check whether this member has an annotation that suggests whether value for matching property is required or not. |
| public Version | version()
Implements abstract tools. Implements tools. Method called to detect version of the component that implements this interface;
returned version should never be null, but may return specific "not available"
instance (see |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AvroAnnotationIntrospector | back to summary |
|---|---|
| public AvroAnnotationIntrospector() | |
| _findName | back to summary |
|---|---|
| protected PropertyName _findName(Annotated a) | |
| _getUnionTypes | back to summary |
|---|---|
| protected Class | |
| findCreatorAnnotation | back to summary |
|---|---|
| public JsonCreator. Overrides tools. Doc from tools. Method called to check whether potential Creator (constructor or static factory
method) has explicit annotation to indicate it as actual Creator; and if so,
which Note caller needs to consider possibility of both `null` (no annotation found)
and
| |
| findDeserializer | back to summary |
|---|---|
| public Object findDeserializer(MapperConfig<?> config, Annotated am) Overrides tools. Doc from tools. Method for getting a deserializer definition on specified method
or field.
Type of definition is either instance (of type
| |
| findNameForDeserialization | back to summary |
|---|---|
| public PropertyName findNameForDeserialization(MapperConfig<?> config, Annotated a) Overrides tools. Doc from tools. Method for checking whether given property accessors (method,
field) has an annotation that suggests property name to use
for deserialization (reading JSON into POJOs).
Should return null if no annotation
is found; otherwise a non-null name (possibly
| |
| findNameForSerialization | back to summary |
|---|---|
| public PropertyName findNameForSerialization(MapperConfig<?> config, Annotated a) Overrides tools. Doc from tools. Method for checking whether given property accessors (method,
field) has an annotation that suggests property name to use
for serialization.
Should return null if no annotation
is found; otherwise a non-null name (possibly
| |
| findPropertyAliases | back to summary |
|---|---|
| public List Overrides tools. Doc from tools. Method called to find if given property has alias(es) defined.
| |
| findPropertyDefaultValue | back to summary |
|---|---|
| public String findPropertyDefaultValue(MapperConfig<?> config, Annotated m) Overrides tools. Doc from tools. Method for finding suggested default value (as simple textual serialization) for the property. While core databind does not make any use of it, it is exposed for extension modules to use: an expected use is generation of schema representations and documentation.
| |
| findSerializer | back to summary |
|---|---|
| public Object findSerializer(MapperConfig<?> config, Annotated a) Overrides tools. Doc from tools. Method for getting a serializer definition on specified method
or field. Type of definition is either instance (of type
| |
| findSubtypes | back to summary |
|---|---|
| public List Overrides tools. Doc from tools. Method for locating annotation-specified subtypes related to annotated entity (class, method, field). Note that this is only guaranteed to be a list of directly declared subtypes, no recursive processing is guarantees (i.e. caller has to do it if/as necessary)
| |
| findTypeResolverBuilder | back to summary |
|---|---|
| public Object findTypeResolverBuilder(MapperConfig<?> config, Annotated ann) Overrides tools.
| |
| hasIgnoreMarker | back to summary |
|---|---|
| public boolean hasIgnoreMarker(MapperConfig<?> config, AnnotatedMember m) Overrides tools. Doc from tools. Method called to check whether given property is marked to be ignored. This is used to determine whether to ignore properties, on per-property basis, usually combining annotations from multiple accessors (getters, setters, fields, constructor parameters).
| |
| hasRequiredMarker | back to summary |
|---|---|
| public Boolean hasRequiredMarker(MapperConfig<?> config, AnnotatedMember m) Overrides tools. Doc from tools. Method that can be called to check whether this member has an annotation that suggests whether value for matching property is required or not.
| |
| version | back to summary |
|---|---|
| public Version version() Implements abstract tools. Implements tools. Doc from tools. Method called to detect version of the component that implements this interface;
returned version should never be null, but may return specific "not available"
instance (see
| |