BeanDescription implementation used by Jackson.
Although sub-classing is a theoretical possibility there are no known use cases for that, nor is such usage tested or supported. Separation from API is mostly to isolate some implementation details here and keep API simple.
| Modifier and Type | Field and Description |
|---|---|
| protected final AnnotationIntrospector | |
| protected final AnnotatedClass | _classInfo
Information collected about the class introspected. |
| protected final MapperConfig | |
| protected Class | |
| protected boolean | |
| protected ObjectIdInfo | _objectIdInfo
Details of Object Id to include, if any |
| protected final POJOPropertiesCollector | _propCollector
We will hold a reference to the collector in cases where information is lazily accessed and constructed; properties are only accessed when they are actually needed. |
| protected List | _properties
Properties collected for the POJO; initialized as needed. |
| private static final Class |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | BasicBeanDescription(MapperConfig<?> config, JavaType type, AnnotatedClass classDef, List<BeanPropertyDefinition> props)
Alternate constructor used in cases where property information is not needed, only class info. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Converter | |
| protected List | |
| public boolean | |
| public AnnotatedMember | findAnyGetter()
Implements abstract com. Method used to locate the method of introspected class that
implements |
| public AnnotatedMember | findAnySetterAccessor()
Implements abstract com. Method used to locate a mutator (settable field, or 2-argument set method)
of introspected class that
implements |
| public List | findBackReferences()
Implements abstract com. Method for locating all back-reference properties (setters, fields) bean has |
| public String | findClassDescription()
Overrides com. Accessor for possible description for the bean type, used for constructing documentation. |
| public AnnotatedConstructor | findDefaultConstructor()
Implements abstract com. Method that will locate the no-arg constructor for this class, if it has one, and that constructor has not been marked as ignorable. |
| public Class | findDefaultViews()
Implements abstract com. Method for finding out if the POJO specifies default view(s) to use for properties, considering both per-type annotations and global default settings. |
| public Converter | findDeserializationConverter()
Implements abstract com. Method for finding |
| public JsonFormat. | findExpectedFormat()
Implements abstract com. Method for checking what is the expected format for POJO, as defined by defaults and possible annotations. |
| protected AnnotatedAndMetadata | |
| public Map | findInjectables()
Implements abstract com.
|
| public AnnotatedMember | findJsonKeyAccessor()
Overrides com. Method for locating accessor (readable field, or "getter" method)
that has
|
| public AnnotatedMember | findJsonValueAccessor()
Implements abstract com. Method for locating accessor (readable field, or "getter" method)
that has
|
| public AnnotatedMethod | findMethod(String name, Class<?>[] paramTypes)
Implements abstract com.
|
| public Class | findPOJOBuilder()
Implements abstract com. Method for checking if the POJO type has annotations to indicate that a builder is to be used for instantiating instances and handling data binding, instead of standard bean deserializer. |
| public JsonPOJOBuilder. | findPOJOBuilderConfig()
Implements abstract com. Method for finding configuration for POJO Builder class. |
| public List | |
| public BeanPropertyDefinition | |
| public JsonInclude. | findPropertyInclusion(JsonInclude.
Implements abstract com. Method for determining whether null properties should be written out for a Bean of introspected type. |
| public Converter | findSerializationConverter()
Implements abstract com. Method for finding |
| public static BasicBeanDescription | forDeserialization(POJOPropertiesCollector coll)
Factory method to use for constructing an instance to use for building deserializers. |
| public static BasicBeanDescription | forOtherUse(MapperConfig<?> config, JavaType type, AnnotatedClass ac)
Factory method to use for constructing an instance to use for purposes other than building serializers or deserializers; will only have information on class, not on properties. |
| public static BasicBeanDescription | forSerialization(POJOPropertiesCollector coll)
Factory method to use for constructing an instance to use for building serializers. |
| public Annotations | getClassAnnotations()
Implements abstract com. Method for accessing collection of annotations the bean class has. |
| public AnnotatedClass | getClassInfo()
Implements abstract com. Method for accessing low-level information about Class this item describes. |
| public List | getConstructors()
Implements abstract com. Helper method that will return all non-default constructors (that is, constructors that take one or more arguments) this class has. |
| public List | getConstructorsWithMode()
Implements abstract com. Method similar to |
| public List | getFactoryMethods()
Implements abstract com. Helper method that will check all static methods of the bean class that seem like factory methods eligible to be used as Creators. |
| public List | getFactoryMethodsWithMode()
Implements abstract com. Method similar to |
| public Set | |
| public ObjectIdInfo | getObjectIdInfo()
Implements abstract com. Accessor for getting information about Object Id expected to be used for this POJO type, if any. |
| public PotentialCreators | getPotentialCreators()
Implements abstract com. Method that is replacing earlier Creator introspection access methods. |
| public boolean | hasKnownClassAnnotations()
Implements abstract com. Method for checking whether class being described has any annotations recognized by registered annotation introspector. |
| public boolean | |
| public Object | instantiateBean(boolean
If true, method is allowed to fix access to the
default constructor (to be able to call non-public constructor);
if false, has to use constructor as is. fixAccess)Implements abstract com. Method called to create a "default instance" of the bean, currently only needed for obtaining default field values which may be used for suppressing serialization of fields that have "not changed". |
| protected boolean | |
| public boolean | removeProperty(String propName)
Method that can be used to prune unwanted properties, during construction of serializers and deserializers. |
| _annotationIntrospector | back to summary |
|---|---|
| protected final AnnotationIntrospector _annotationIntrospector | |
| _classInfo | back to summary |
|---|---|
| protected final AnnotatedClass _classInfo Information collected about the class introspected. | |
| _config | back to summary |
|---|---|
| protected final MapperConfig<?> _config | |
| _defaultViews | back to summary |
|---|---|
protected Class<?>[] _defaultViews
| |
| _defaultViewsResolved | back to summary |
|---|---|
protected boolean _defaultViewsResolved
| |
| _objectIdInfo | back to summary |
|---|---|
| protected ObjectIdInfo _objectIdInfo Details of Object Id to include, if any | |
| _propCollector | back to summary |
|---|---|
| protected final POJOPropertiesCollector _propCollector We will hold a reference to the collector in cases where information is lazily accessed and constructed; properties are only accessed when they are actually needed. | |
| _properties | back to summary |
|---|---|
| protected List<BeanPropertyDefinition> _properties Properties collected for the POJO; initialized as needed. | |
| NO_VIEWS | back to summary |
|---|---|
| private static final Class<?>[] NO_VIEWS | |
| BasicBeanDescription | back to summary |
|---|---|
| protected BasicBeanDescription(POJOPropertiesCollector coll, JavaType type, AnnotatedClass classDef) | |
| BasicBeanDescription | back to summary |
|---|---|
| protected BasicBeanDescription(MapperConfig<?> config, JavaType type, AnnotatedClass classDef, List<BeanPropertyDefinition> props) Alternate constructor used in cases where property information is not needed, only class info. | |
| BasicBeanDescription | back to summary |
|---|---|
| protected BasicBeanDescription(POJOPropertiesCollector coll) | |
| _createConverter | back to summary |
|---|---|
protected Converter
| |
| _properties | back to summary |
|---|---|
| protected List | |
| addProperty | back to summary |
|---|---|
| public boolean addProperty(BeanPropertyDefinition def) | |
| findAnyGetter | back to summary |
|---|---|
| public AnnotatedMember findAnyGetter() throws IllegalArgumentException Implements abstract com. Method used to locate the method of introspected class that
implements
| |
| findAnySetterAccessor | back to summary |
|---|---|
| public AnnotatedMember findAnySetterAccessor() throws IllegalArgumentException Implements abstract com. Doc from com. Method used to locate a mutator (settable field, or 2-argument set method)
of introspected class that
implements
| |
| findBackReferences | back to summary |
|---|---|
| public List Implements abstract com. Doc from com. Method for locating all back-reference properties (setters, fields) bean has
| |
| findClassDescription | back to summary |
|---|---|
| public String findClassDescription() Overrides com. Doc from com. Accessor for possible description for the bean type, used for constructing documentation.
| |
| findDefaultConstructor | back to summary |
|---|---|
| public AnnotatedConstructor findDefaultConstructor() Implements abstract com. Doc from com. Method that will locate the no-arg constructor for this class, if it has one, and that constructor has not been marked as ignorable.
| |
| findDefaultViews | back to summary |
|---|---|
| public Class Implements abstract com. Doc from com. Method for finding out if the POJO specifies default view(s) to use for properties, considering both per-type annotations and global default settings.
| |
| findDeserializationConverter | back to summary |
|---|---|
| public Converter Implements abstract com. Doc from com. Method for finding
| |
| findExpectedFormat | back to summary |
|---|---|
| public JsonFormat. Implements abstract com. Doc from com. Method for checking what is the expected format for POJO, as defined by defaults and possible annotations. Note that this may be further refined by per-property annotations.
| |
| findFactoryMethodMetadata | back to summary |
|---|---|
| protected AnnotatedAndMetadata | |
| findInjectables | back to summary |
|---|---|
| public Map Implements abstract com.
| |
| findJsonKeyAccessor | back to summary |
|---|---|
| public AnnotatedMember findJsonKeyAccessor() Overrides com. Doc from com. Method for locating accessor (readable field, or "getter" method)
that has
| |
| findJsonValueAccessor | back to summary |
|---|---|
| public AnnotatedMember findJsonValueAccessor() Implements abstract com. Doc from com. Method for locating accessor (readable field, or "getter" method)
that has
| |
| findMethod | back to summary |
|---|---|
| public AnnotatedMethod findMethod(String name, Class<?>[] paramTypes) Implements abstract com.
| |
| findPOJOBuilder | back to summary |
|---|---|
| public Class Implements abstract com. Doc from com. Method for checking if the POJO type has annotations to indicate that a builder is to be used for instantiating instances and handling data binding, instead of standard bean deserializer.
| |
| findPOJOBuilderConfig | back to summary |
|---|---|
| public JsonPOJOBuilder. Implements abstract com. Doc from com. Method for finding configuration for POJO Builder class.
| |
| findProperties | back to summary |
|---|---|
| public List Implements abstract com.
| |
| findProperty | back to summary |
|---|---|
public BeanPropertyDefinition findProperty(PropertyName name)
| |
| findPropertyInclusion | back to summary |
|---|---|
| public JsonInclude. Implements abstract com. Method for determining whether null properties should be written out for a Bean of introspected type. This is based on global feature (lowest priority, passed as argument) and per-class annotation (highest priority).
| |
| findSerializationConverter | back to summary |
|---|---|
| public Converter Implements abstract com. Doc from com. Method for finding
| |
| forDeserialization | back to summary |
|---|---|
| public static BasicBeanDescription forDeserialization(POJOPropertiesCollector coll) Factory method to use for constructing an instance to use for building deserializers. | |
| forOtherUse | back to summary |
|---|---|
| public static BasicBeanDescription forOtherUse(MapperConfig<?> config, JavaType type, AnnotatedClass ac) Factory method to use for constructing an instance to use for purposes other than building serializers or deserializers; will only have information on class, not on properties. | |
| forSerialization | back to summary |
|---|---|
| public static BasicBeanDescription forSerialization(POJOPropertiesCollector coll) Factory method to use for constructing an instance to use for building serializers. | |
| getClassAnnotations | back to summary |
|---|---|
| public Annotations getClassAnnotations() Implements abstract com. Doc from com. Method for accessing collection of annotations the bean class has.
| |
| getClassInfo | back to summary |
|---|---|
| public AnnotatedClass getClassInfo() Implements abstract com. Doc from com. Method for accessing low-level information about Class this item describes.
| |
| getConstructors | back to summary |
|---|---|
| public List Implements abstract com. Doc from com. Helper method that will return all non-default constructors (that is, constructors that take one or more arguments) this class has.
| |
| getConstructorsWithMode | back to summary |
|---|---|
| public List Implements abstract com. Doc from com. Method similar to Note that no other filtering (regarding visibility or other annotations) is performed
| |
| getFactoryMethods | back to summary |
|---|---|
| public List Implements abstract com. Doc from com. Helper method that will check all static methods of the bean class that seem like factory methods eligible to be used as Creators. This requires that the static method:
| |
| getFactoryMethodsWithMode | back to summary |
|---|---|
| public List Implements abstract com. Doc from com. Method similar to
| |
| getIgnoredPropertyNames | back to summary |
|---|---|
| public Set Implements abstract com.
| |
| getObjectIdInfo | back to summary |
|---|---|
| public ObjectIdInfo getObjectIdInfo() Implements abstract com. Doc from com. Accessor for getting information about Object Id expected to be used for this POJO type, if any.
| |
| getPotentialCreators | back to summary |
|---|---|
| public PotentialCreators getPotentialCreators() Implements abstract com. Doc from com. Method that is replacing earlier Creator introspection access methods.
| |
| hasKnownClassAnnotations | back to summary |
|---|---|
| public boolean hasKnownClassAnnotations() Implements abstract com. Doc from com. Method for checking whether class being described has any annotations recognized by registered annotation introspector.
| |
| hasProperty | back to summary |
|---|---|
public boolean hasProperty(PropertyName name)
| |
| instantiateBean | back to summary |
|---|---|
| public Object instantiateBean(boolean fixAccess) Implements abstract com. Doc from com. Method called to create a "default instance" of the bean, currently only needed for obtaining default field values which may be used for suppressing serialization of fields that have "not changed".
| |
| isFactoryMethod | back to summary |
|---|---|
| protected boolean isFactoryMethod(AnnotatedMethod am) | |
| removeProperty | back to summary |
|---|---|
| public boolean removeProperty(String propName) Method that can be used to prune unwanted properties, during construction of serializers and deserializers. Use with utmost care, if at all...
| |