public abstract class ConcreteBeanPropertyBase extends Object implements BeanProperty, Serializable
BeanProperty
class shared by concrete readable- and
writable property implementations for sharing common functionality.BeanProperty.Bogus, BeanProperty.Std
Modifier and Type | Field and Description |
---|---|
protected List<PropertyName> |
_aliases |
protected PropertyMetadata |
_metadata
Additional information about property
|
EMPTY_FORMAT, EMPTY_INCLUDE
Modifier | Constructor and Description |
---|---|
protected |
ConcreteBeanPropertyBase(ConcreteBeanPropertyBase src) |
protected |
ConcreteBeanPropertyBase(PropertyMetadata md) |
Modifier and Type | Method and Description |
---|---|
List<PropertyName> |
findAliases(MapperConfig<?> config)
Method for accessing set of possible alternate names that are accepted
during deserialization.
|
com.fasterxml.jackson.annotation.JsonFormat.Value |
findFormatOverrides(AnnotationIntrospector intr)
Deprecated.
|
com.fasterxml.jackson.annotation.JsonFormat.Value |
findPropertyFormat(MapperConfig<?> config,
Class<?> baseType)
Helper method used to look up format settings applicable to this property,
considering both possible per-type configuration settings
|
com.fasterxml.jackson.annotation.JsonInclude.Value |
findPropertyInclusion(MapperConfig<?> config,
Class<?> baseType)
Convenience method that is roughly equivalent to
|
PropertyMetadata |
getMetadata()
Accessor for additional optional information about property.
|
boolean |
isRequired()
Whether value for property is marked as required using
annotations or associated schema.
|
boolean |
isVirtual()
Accessor for checking whether there is an actual physical property
behind this property abstraction or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
depositSchemaProperty, getAnnotation, getContextAnnotation, getFullName, getMember, getName, getType, getWrapperName
protected final PropertyMetadata _metadata
protected transient List<PropertyName> _aliases
protected ConcreteBeanPropertyBase(PropertyMetadata md)
protected ConcreteBeanPropertyBase(ConcreteBeanPropertyBase src)
public boolean isRequired()
BeanProperty
getMetadata().isRequired()
isRequired
in interface BeanProperty
public PropertyMetadata getMetadata()
BeanProperty
getMetadata
in interface BeanProperty
public boolean isVirtual()
BeanProperty
isVirtual
in interface BeanProperty
@Deprecated public final com.fasterxml.jackson.annotation.JsonFormat.Value findFormatOverrides(AnnotationIntrospector intr)
BeanProperty
return intr.findFormat(getMember());and specifically does NOT try to find per-type format defaults to merge; use
BeanProperty.findPropertyFormat(com.fasterxml.jackson.databind.cfg.MapperConfig<?>, java.lang.Class<?>)
if such defaults would be useful.findFormatOverrides
in interface BeanProperty
public com.fasterxml.jackson.annotation.JsonFormat.Value findPropertyFormat(MapperConfig<?> config, Class<?> baseType)
BeanProperty
findPropertyFormat
in interface BeanProperty
public com.fasterxml.jackson.annotation.JsonInclude.Value findPropertyInclusion(MapperConfig<?> config, Class<?> baseType)
BeanProperty
return config.getAnnotationIntrospector().findPropertyInclusion(getMember());but also considers global default settings for inclusion
findPropertyInclusion
in interface BeanProperty
public List<PropertyName> findAliases(MapperConfig<?> config)
BeanProperty
findAliases
in interface BeanProperty
Copyright © 2008–2024 FasterXML. All rights reserved.