public class BeanDescriptionFactory extends Object
BeanPropertyDescription objects for a given class.
The returned bean field objects are required to be writable properties, i.e. any fields which don't have an associated setter (or getter) will be ignored.
| Constructor and Description |
|---|
BeanDescriptionFactory() |
| Modifier and Type | Method and Description |
|---|---|
Collection<BeanPropertyDescription> |
collectWritableFields(Class<?> clazz)
Returns all properties of the given bean class for which there exists a getter and setter.
|
protected BeanPropertyDescription |
convert(PropertyDescriptor descriptor)
Converts a
PropertyDescriptor to a BeanPropertyDescription object. |
protected String |
getPropertyName(PropertyDescriptor descriptor) |
protected TypeInformation |
getTypeInfo(PropertyDescriptor descriptor) |
protected void |
validateProperties(Class<?> clazz,
Collection<BeanPropertyDescription> properties)
Validates the class' properties.
|
public Collection<BeanPropertyDescription> collectWritableFields(Class<?> clazz)
clazz - the bean property to process@Nullable protected BeanPropertyDescription convert(PropertyDescriptor descriptor)
PropertyDescriptor to a BeanPropertyDescription object.descriptor - the descriptor to convertprotected void validateProperties(Class<?> clazz, Collection<BeanPropertyDescription> properties)
clazz - the class to which the properties belongproperties - the properties that will be used on the classprotected String getPropertyName(PropertyDescriptor descriptor)
protected TypeInformation getTypeInfo(PropertyDescriptor descriptor)
Copyright © 2016–2018 The AuthMe Team. All rights reserved.