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
|
protected JsonFormat.Value |
_propertyFormat
Lazily accessed value for per-property format override definition.
|
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, wait
depositSchemaProperty, getAnnotation, getContextAnnotation, getFullName, getMember, getName, getType, getWrapperName
protected final PropertyMetadata _metadata
protected transient JsonFormat.Value _propertyFormat
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 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 JsonFormat.Value findPropertyFormat(MapperConfig<?> config, Class<?> baseType)
BeanProperty
findPropertyFormat
in interface BeanProperty
public 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–2018 FasterXML. All rights reserved.