@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 TypeResolverBuilder | |
protected Class | |
public JsonCreator. | findCreatorAnnotation(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, Annotated Annotated accessor (usually constructor or static method) to check a)Overrides com. 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(Annotated am)
Overrides com. Method for getting a deserializer definition on specified method or field. |
public PropertyName | findNameForDeserialization(Annotated
Annotated entity to check a)Overrides com. 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(Annotated
Property accessor to check a)Overrides com. Method for checking whether given property accessors (method, field) has an annotation that suggests property name to use for serialization. |
public List | findPropertyAliases(Annotated m)
Overrides com. Method called to find if given property has alias(es) defined. |
public TypeResolverBuilder | findPropertyContentTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedMember Annotated member (field or method) to check for annotations am, JavaType Type of property for which resolver is to be found (must be a container type) containerType)Overrides com. Method for checking if given structured property entity (field or method that has nominal value of Map, Collection or array type) has annotations that indicate that specific type resolver is to be used for handling type information of contained values. |
public String | findPropertyDefaultValue(Annotated m)
Overrides com. Method for finding suggested default value (as simple textual serialization) for the property. |
public TypeResolverBuilder | findPropertyTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedMember Annotated member (field or method) to check for annotations am, JavaType Base java type of property for which resolver is to be found baseType)Overrides com. Method for checking if given property entity (field or method) has annotations that indicate that specific type resolver is to be used for handling instances. |
public Object | findSerializer(Annotated a)
Overrides com. Method for getting a serializer definition on specified method or field. |
public List | findSubtypes(Annotated
Annotated entity (class, field/method) to check for annotations a)Overrides com. Method for locating annotation-specified subtypes related to annotated entity (class, method, field). |
public TypeResolverBuilder | findTypeResolver(MapperConfig<?>
Configuration settings in effect (for serialization or deserialization) config, AnnotatedClass Annotated class to check for annotations ac, JavaType Base java type of value for which resolver is to be found baseType)Overrides com. Method for checking if given class has annotations that indicate that specific type resolver is to be used for handling instances. |
public boolean | hasIgnoreMarker(AnnotatedMember m)
Overrides com. Method called to check whether given property is marked to be ignored. |
public Boolean | hasRequiredMarker(AnnotatedMember m)
Overrides com. 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 com. Implements com. 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) |
_findTypeResolver | back to summary |
---|---|
protected TypeResolverBuilder |
_getUnionTypes | back to summary |
---|---|
protected Class |
findCreatorAnnotation | back to summary |
---|---|
public JsonCreator. Overrides com. Doc from com. 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(Annotated am) Overrides com. Doc from com. 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(Annotated a) Overrides com. Doc from com. 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(Annotated a) Overrides com. Doc from com. 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 com. Doc from com. Method called to find if given property has alias(es) defined.
|
findPropertyContentTypeResolver | back to summary |
---|---|
public TypeResolverBuilder Overrides com. Doc from com. Method for checking if given structured property entity (field or method that
has nominal value of Map, Collection or array type) has annotations
that indicate that specific type resolver is to be used for handling type
information of contained values.
This includes not only
instantiating resolver builder, but also configuring it based on
relevant annotations (not including ones checked with a call to
|
findPropertyDefaultValue | back to summary |
---|---|
public String findPropertyDefaultValue(Annotated m) Overrides com. Doc from com. 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.
|
findPropertyTypeResolver | back to summary |
---|---|
public TypeResolverBuilder Overrides com. Doc from com. Method for checking if given property entity (field or method) has annotations
that indicate that specific type resolver is to be used for handling instances.
This includes not only
instantiating resolver builder, but also configuring it based on
relevant annotations (not including ones checked with a call to
|
findSerializer | back to summary |
---|---|
public Object findSerializer(Annotated a) Overrides com. Doc from com. 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 com. Doc from com. 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) |
findTypeResolver | back to summary |
---|---|
public TypeResolverBuilder Overrides com. Doc from com. Method for checking if given class has annotations that indicate
that specific type resolver is to be used for handling instances.
This includes not only
instantiating resolver builder, but also configuring it based on
relevant annotations (not including ones checked with a call to
|
hasIgnoreMarker | back to summary |
---|---|
public boolean hasIgnoreMarker(AnnotatedMember m) Overrides com. Doc from com. 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(AnnotatedMember m) Overrides com. Doc from com. 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 com. Implements com. Doc from com. 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 |