Package org.codehaus.jackson.map
Class BeanDescription
- java.lang.Object
-
- org.codehaus.jackson.map.BeanDescription
-
- Direct Known Subclasses:
BasicBeanDescription
public abstract class BeanDescription extends java.lang.ObjectBasic container for information gathered byClassIntrospectorto help in constructing serializers and deserializers. Note that the main implementation type isBasicBeanDescription, meaning that it is safe to upcast to this type.- Author:
- tatu
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBeanDescription(JavaType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract TypeBindingsbindingsForBeanType()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.abstract AnnotatedMethodfindAnyGetter()abstract AnnotatedMethodfindAnySetter()abstract AnnotatedConstructorfindDefaultConstructor()abstract java.util.LinkedHashMap<java.lang.String,AnnotatedField>findDeserializableFields(VisibilityChecker<?> visibilityChecker, java.util.Collection<java.lang.String> ignoredProperties)Deprecated.Since 1.9 usefindProperties()abstract java.util.LinkedHashMap<java.lang.String,AnnotatedMethod>findGetters(VisibilityChecker<?> visibilityChecker, java.util.Collection<java.lang.String> ignoredProperties)Deprecated.Since 1.9 usefindProperties()abstract java.util.Map<java.lang.Object,AnnotatedMember>findInjectables()abstract AnnotatedMethodfindJsonValueMethod()abstract java.util.List<BeanPropertyDefinition>findProperties()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 versionabstract java.util.LinkedHashMap<java.lang.String,AnnotatedMethod>findSetters(VisibilityChecker<?> visibilityChecker)Deprecated.Since 1.9 usefindProperties()java.lang.Class<?>getBeanClass()abstract AnnotationsgetClassAnnotations()Method for accessing collection of annotations the bean class has.abstract AnnotatedClassgetClassInfo()abstract java.util.Set<java.lang.String>getIgnoredPropertyNames()JavaTypegetType()Method for accessing declared type of bean being introspected, including full generic type information (from declaration)abstract booleanhasKnownClassAnnotations()abstract JavaTyperesolveType(java.lang.reflect.Type jdkType)Method for resolving given JDK type, using this bean as the generic type resolution context.
-
-
-
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()
-
getClassInfo
public abstract AnnotatedClass getClassInfo()
-
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
-
findDefaultConstructor
public abstract AnnotatedConstructor findDefaultConstructor()
- 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 usefindProperties()
-
findSetters
@Deprecated public abstract java.util.LinkedHashMap<java.lang.String,AnnotatedMethod> findSetters(VisibilityChecker<?> visibilityChecker)
Deprecated.Since 1.9 usefindProperties()
-
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 usefindProperties()
-
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
-
-