org.codehaus.jackson.map
Class BeanDescription
java.lang.Object
org.codehaus.jackson.map.BeanDescription
- Direct Known Subclasses:
- BasicBeanDescription
public abstract class BeanDescription
- extends Object
Basic container for information gathered by ClassIntrospector
to
help in constructing serializers and deserializers.
- Author:
- tatu
Field Summary |
protected JavaType |
_type
Bean type information, including raw class and possible
* generics information |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_type
protected final JavaType _type
- Bean type information, including raw class and possible
* generics information
BeanDescription
protected BeanDescription(JavaType type)
getType
public JavaType getType()
- Method for accessing declared type of bean being introspected,
including full generic type information (from declaration)
getBeanClass
public Class<?> getBeanClass()
findGetters
public abstract LinkedHashMap<String,AnnotatedMethod> findGetters(VisibilityChecker<?> visibilityChecker,
Collection<String> ignoredProperties)
- Parameters:
visibilityChecker
- Object that determines whether
methods have enough visibility to be auto-detectable as gettersignoredProperties
- (optional, may be null) Names of properties
to ignore; getters for these properties are not to be returned.
- Returns:
- Ordered Map with logical property name as key, and
matching getter method as value.
findSetters
public abstract LinkedHashMap<String,AnnotatedMethod> findSetters(VisibilityChecker<?> vchecker)
- Parameters:
vchecker
- (optional) Object that determines whether specific methods
have enough visibility to be considered as auto-detectable setters.
If null, auto-detection is disabled
- Returns:
- Ordered Map with logical property name as key, and
matching setter method as value.