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.
|
JsonFormat.Value |
findFormatOverrides(AnnotationIntrospector intr)
Deprecated.
|
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
|
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, waitdepositSchemaProperty, getAnnotation, getContextAnnotation, getFullName, getMember, getName, getType, getWrapperNameprotected 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 BeanPropertypublic PropertyMetadata getMetadata()
BeanPropertygetMetadata in interface BeanPropertypublic boolean isVirtual()
BeanPropertyisVirtual in interface BeanProperty@Deprecated public final JsonFormat.Value findFormatOverrides(AnnotationIntrospector intr)
BeanPropertyreturn 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 BeanPropertypublic JsonFormat.Value findPropertyFormat(MapperConfig<?> config, Class<?> baseType)
BeanPropertyfindPropertyFormat in interface BeanPropertypublic JsonInclude.Value findPropertyInclusion(MapperConfig<?> config, Class<?> baseType)
BeanPropertyreturn config.getAnnotationIntrospector().findPropertyInclusion(getMember());but also considers global default settings for inclusion
findPropertyInclusion in interface BeanPropertypublic List<PropertyName> findAliases(MapperConfig<?> config)
BeanPropertyfindAliases in interface BeanPropertyCopyright © 2008–2020 FasterXML. All rights reserved.