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 PropertyName | |
| public LinkedHashMap | Returns: Ordered Map with logical property name as key, and matching field as value.(optional) names of properties to ignore;
any fields that would be recognized as one of these properties
is ignored. ignoredProperties, boolean If true, will collect serializable property
fields; if false, deserializable forSerialization)
Deprecated
Since 2.7.2, does not seem to be used?
|
| protected List | |
| public boolean | |
| public TypeBindings | bindingsForBeanType()
Implements abstract com.
Deprecated
Accessor for type bindings that may be needed to fully resolve
types of member object, such as return and argument types of
methods and constructors, and types of fields.
|
| public AnnotatedMember | findAnyGetter()
Implements abstract com. com..
|
| public AnnotatedMember | findAnySetterAccessor()
Implements abstract com. com..
|
| public Map | findBackReferenceProperties()
Implements abstract com.
Deprecated
Method for locating all back-reference properties (setters, fields) bean has
|
| public List | findBackReferences()
Implements abstract com. |
| public String | findClassDescription()
Overrides com. |
| public AnnotatedConstructor | findDefaultConstructor()
Implements abstract com. |
| public Class | findDefaultViews()
Implements abstract com. |
| public Converter | findDeserializationConverter()
Implements abstract com. Converter used for serializing instances
of this class.
|
| public JsonFormat. | findExpectedFormat(JsonFormat.
Implements abstract com. |
| public Method | findFactoryMethod(Class<?>... expArgTypes)
Implements abstract com.
Deprecated
|
| protected AnnotatedAndMetadata | |
| public Map | findInjectables()
Implements abstract com. |
| public AnnotatedMember | findJsonKeyAccessor()
Overrides com. com. annotation,
if any.
|
| public AnnotatedMember | findJsonValueAccessor()
Implements abstract com. com. annotation,
if any.
|
| public AnnotatedMethod | findJsonValueMethod()
Implements abstract com.
Deprecated
|
| public AnnotatedMethod | findMethod(String name, Class<?>[] paramTypes)
Implements abstract com. |
| public Class | findPOJOBuilder()
Implements abstract com. |
| public JsonPOJOBuilder. | findPOJOBuilderConfig()
Implements abstract com. |
| public List | |
| public BeanPropertyDefinition | |
| public JsonInclude. | findPropertyInclusion(JsonInclude.
Implements abstract com. |
| public Converter | findSerializationConverter()
Implements abstract com. Converter used for serializing instances
of this class.
|
| public Constructor | findSingleArgConstructor(Class<?>... argTypes)
Implements abstract com.
Deprecated
|
| 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. |
| public AnnotatedClass | getClassInfo()
Implements abstract com. |
| public List | getConstructors()
Implements abstract com. |
| public List | getConstructorsWithMode()
Implements abstract com. getConstructors() except will also introspect
JsonCreator.Mode and filter out ones marked as not applicable and
include mode (or lack thereof) for remaining constructors.
|
| public List | getFactoryMethods()
Implements abstract com. |
| public List | getFactoryMethodsWithMode()
Implements abstract com. getFactoryMethods() but will return JsonCreator.Mode
metadata along with qualifying factory method candidates.
|
| public Set | |
| public ObjectIdInfo | getObjectIdInfo()
Implements abstract com. |
| public boolean | hasKnownClassAnnotations()
Implements abstract com. |
| 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. |
| protected boolean | |
| public boolean | removeProperty(String propName)
Method that can be used to prune unwanted properties, during construction of serializers and deserializers. |
| public JavaType | resolveType(Type jdkType)
Implements abstract com.
Deprecated
Method for resolving given JDK type, using this bean as the
generic type resolution context.
|
| _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
| |
| _findCreatorPropertyName | back to summary |
|---|---|
| protected PropertyName _findCreatorPropertyName(AnnotatedParameter param)
Deprecated since 2.8
| |
| _findPropertyFields | back to summary |
|---|---|
| public LinkedHashMap Deprecated Since 2.7.2, does not seem to be used?
| |
| _properties | back to summary |
|---|---|
| protected List | |
| addProperty | back to summary |
|---|---|
| public boolean addProperty(BeanPropertyDefinition def) | |
| bindingsForBeanType | back to summary |
|---|---|
| public TypeBindings bindingsForBeanType() Implements abstract com. Doc from com. Deprecated
Accessor for type bindings that may be needed to fully resolve types of member object, such as return and argument types of methods and constructors, and types of fields.
| |
| 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
| |
| findBackReferenceProperties | back to summary |
|---|---|
| public Map Implements abstract com. Doc from com. Deprecated
Method for locating all back-reference properties (setters, fields) bean has
| |
| 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.
| |
| findFactoryMethod | back to summary |
|---|---|
| public Method findFactoryMethod(Class<?>... expArgTypes) Implements abstract com. Deprecated
| |
| 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
| |
| findJsonValueMethod | back to summary |
|---|---|
| public AnnotatedMethod findJsonValueMethod() Implements abstract com. Deprecated
| |
| 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
| |
| findSingleArgConstructor | back to summary |
|---|---|
| public Constructor Implements abstract com. Deprecated
| |
| 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.
| |
| 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...
| |
| resolveType | back to summary |
|---|---|
| public JavaType resolveType(Type jdkType) Implements abstract com. Doc from com. Deprecated
Method for resolving given JDK type, using this bean as the generic type resolution context.
| |