public abstract class ConcreteBeanPropertyBase extends java.lang.Object implements BeanProperty, java.io.Serializable
BeanProperty
class shared by concrete readable- and
writable property implementations for sharing common functionality.BeanProperty.Bogus, BeanProperty.Std
EMPTY_FORMAT, EMPTY_INCLUDE
Modifier and Type | Method and Description |
---|---|
java.util.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,
java.lang.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,
java.lang.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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
depositSchemaProperty, getAnnotation, getContextAnnotation, getFullName, getMember, getName, getType, getWrapperName
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, java.lang.Class<?> baseType)
BeanProperty
findPropertyFormat
in interface BeanProperty
public JsonInclude.Value findPropertyInclusion(MapperConfig<?> config, java.lang.Class<?> baseType)
BeanProperty
return config.getAnnotationIntrospector().findPropertyInclusion(getMember());but also considers global default settings for inclusion
findPropertyInclusion
in interface BeanProperty
public java.util.List<PropertyName> findAliases(MapperConfig<?> config)
BeanProperty
findAliases
in interface BeanProperty
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"