Class BeanDescription

  • Direct Known Subclasses:
    BasicBeanDescription

    public abstract class BeanDescription
    extends java.lang.Object
    Basic container for information gathered by ClassIntrospector to help in constructing serializers and deserializers. Note that the main implementation type is BasicBeanDescription, meaning that it is safe to upcast to this type.
    Author:
    tatu
    • Field Detail

      • _type

        protected final JavaType _type
        Bean type information, including raw class and possible * generics information
    • Constructor Detail

      • BeanDescription

        protected BeanDescription​(JavaType type)
    • Method Detail

      • getType

        public JavaType getType()
        Method for accessing declared type of bean being introspected, including full generic type information (from declaration)
      • getBeanClass

        public java.lang.Class<?> getBeanClass()
      • hasKnownClassAnnotations

        public abstract boolean hasKnownClassAnnotations()
      • bindingsForBeanType

        public abstract TypeBindings bindingsForBeanType()
        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.
      • resolveType

        public abstract JavaType resolveType​(java.lang.reflect.Type jdkType)
        Method for resolving given JDK type, using this bean as the generic type resolution context.
        Since:
        1.9
      • getClassAnnotations

        public abstract Annotations getClassAnnotations()
        Method for accessing collection of annotations the bean class has.
        Since:
        1.7
      • findProperties

        public abstract java.util.List<BeanPropertyDefinition> findProperties()
        Returns:
        Ordered Map with logical property name as key, and matching getter method as value.
        Since:
        1.9
      • findInjectables

        public abstract java.util.Map<java.lang.Object,​AnnotatedMember> findInjectables()
        Since:
        1.9
      • findAnyGetter

        public abstract AnnotatedMethod findAnyGetter()
        Since:
        1.9
      • findAnySetter

        public abstract AnnotatedMethod findAnySetter()
        Since:
        1.9
      • findJsonValueMethod

        public abstract AnnotatedMethod findJsonValueMethod()
        Since:
        1.9
      • getIgnoredPropertyNames

        public abstract java.util.Set<java.lang.String> getIgnoredPropertyNames()
        Since:
        1.9
      • findGetters

        @Deprecated
        public abstract java.util.LinkedHashMap<java.lang.String,​AnnotatedMethod> findGetters​(VisibilityChecker<?> visibilityChecker,
                                                                                                    java.util.Collection<java.lang.String> ignoredProperties)
        Deprecated.
        Since 1.9 use findProperties()
      • findDeserializableFields

        @Deprecated
        public abstract java.util.LinkedHashMap<java.lang.String,​AnnotatedField> findDeserializableFields​(VisibilityChecker<?> visibilityChecker,
                                                                                                                java.util.Collection<java.lang.String> ignoredProperties)
        Deprecated.
        Since 1.9 use findProperties()
      • findSerializableFields

        @Deprecated
        public abstract java.util.Map<java.lang.String,​AnnotatedField> findSerializableFields​(VisibilityChecker<?> visibilityChecker,
                                                                                                    java.util.Collection<java.lang.String> ignoredProperties)
        Deprecated.
        Since 1.9 use the non-deprecated version