Top Description Fields Constructors Methods
ch.qos.logback.core.joran.util.beans

public Class BeanDescription

extends Object
Class Inheritance
Imports
java.lang.reflect.Method, java.util.Collections, .Map

Lightweight pendant to the java.beans.BeanInfo class. An instance of this class encapsulates the properties of a certain class. The properties are the public setters and getters. In addition the 'add-er'-methods are included, which are the public methods which start with the prefix 'add'.
Author
urechm

Field Summary

Modifier and TypeField and Description
private final Class<?>
private final Map<String, Method>
private final Map<String, Method>
private final Map<String, Method>

Constructor Summary

AccessConstructor and Description
protected
BeanDescription(Class<?>
of the bean.
clazz
,
Map<String, Method>
map of property names to the associated getter.
propertyNameToGetter
,
Map<String, Method>
map of property names to the associated setter.
propertyNameToSetter
,
Map<String, Method>
map of property names to the associated adder.
propertyNameToAdder
)

Scope protected since only the BeanDescriptionFactory must create BeanDescriptions in order to guarantee consistency between the given parameters.

Method Summary

Modifier and TypeMethod and Description
public Method
getAdder(String propertyName)

public Class<?>
public Method
getGetter(String propertyName)

public Map<String, Method>
public Map<String, Method>
public Map<String, Method>
public Method
getSetter(String propertyName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clazzback to summary
private final Class<?> clazz
propertyNameToAdderback to summary
private final Map<String, Method> propertyNameToAdder
propertyNameToGetterback to summary
private final Map<String, Method> propertyNameToGetter
propertyNameToSetterback to summary
private final Map<String, Method> propertyNameToSetter

Constructor Detail

BeanDescriptionback to summary
protected BeanDescription(Class<?> clazz, Map<String, Method> propertyNameToGetter, Map<String, Method> propertyNameToSetter, Map<String, Method> propertyNameToAdder)

Scope protected since only the BeanDescriptionFactory must create BeanDescriptions in order to guarantee consistency between the given parameters.

Parameters
clazz:Class<?>

of the bean.

propertyNameToGetter:Map<String, Method>

map of property names to the associated getter.

propertyNameToSetter:Map<String, Method>

map of property names to the associated setter.

propertyNameToAdder:Map<String, Method>

map of property names to the associated adder.

Method Detail

getAdderback to summary
public Method getAdder(String propertyName)
getClazzback to summary
public Class<?> getClazz()
getGetterback to summary
public Method getGetter(String propertyName)
getPropertyNameToAdderback to summary
public Map<String, Method> getPropertyNameToAdder()
getPropertyNameToGetterback to summary
public Map<String, Method> getPropertyNameToGetter()
getPropertyNameToSetterback to summary
public Map<String, Method> getPropertyNameToSetter()
getSetterback to summary
public Method getSetter(String propertyName)