Package org.ldaptive.beans.reflect
Class FieldClassDescriptor
java.lang.Object
org.ldaptive.beans.AbstractClassDescriptor
org.ldaptive.beans.reflect.FieldClassDescriptor
- All Implemented Interfaces:
ClassDescriptor
Creates DN and attribute mutators for the
Field
s on a type.-
Nested Class Summary
Nested classes/interfaces inherited from class org.ldaptive.beans.AbstractClassDescriptor
AbstractClassDescriptor.SimpleAttributeValueMutator, AbstractClassDescriptor.SimpleDnValueMutator
-
Field Summary
Fields inherited from class org.ldaptive.beans.AbstractClassDescriptor
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributeValueMutator
createAttributeValueMutator
(Field field, Attribute attribute) Returns an attribute value mutator for the supplied field.protected DnValueMutator
createDnValueMutator
(Field field) Returns a dn value mutator for the supplied field.getDeclaredFields
(Class<?> type) Returns a map of all the field names to the field.void
initialize
(Class<?> type) Prepare this class descriptor for use.Methods inherited from class org.ldaptive.beans.AbstractClassDescriptor
addAttributeValueMutator, addAttributeValueMutator, getAttributeValueMutator, getAttributeValueMutators, getDnValueMutator, setDnValueMutator, toString
-
Constructor Details
-
FieldClassDescriptor
public FieldClassDescriptor()
-
-
Method Details
-
initialize
Description copied from interface:ClassDescriptor
Prepare this class descriptor for use.- Parameters:
type
- of object to describe
-
getDeclaredFields
Returns a map of all the field names to the field.- Parameters:
type
- to read declared fields from- Returns:
- map of field names to field
-
createDnValueMutator
Returns a dn value mutator for the supplied field.- Parameters:
field
- to create dn value mutator for- Returns:
- dn value mutator
-
createAttributeValueMutator
Returns an attribute value mutator for the supplied field.- Parameters:
field
- to create attribute value mutator forattribute
- attribute containing metadata- Returns:
- attribute value mutator
-