Package org.ldaptive.beans
Class AbstractClassDescriptor
- java.lang.Object
-
- org.ldaptive.beans.AbstractClassDescriptor
-
- All Implemented Interfaces:
ClassDescriptor
- Direct Known Subclasses:
DefaultClassDescriptor
,FieldClassDescriptor
,MethodClassDescriptor
,SpringClassDescriptor
public abstract class AbstractClassDescriptor extends Object implements ClassDescriptor
Base implementation of a class descriptor. Stores a map ofAttributeValueMutator
and aDnValueMutator
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractClassDescriptor.SimpleAttributeValueMutator
Stores anAttribute
configuration in anLdapAttribute
object.protected static class
AbstractClassDescriptor.SimpleDnValueMutator
Stores the DN value from aEntry
configuration.
-
Field Summary
Fields Modifier and Type Field Description private Map<String,AttributeValueMutator>
attributeMutators
Attribute value mutators for this class.private DnValueMutator
dnMutator
Dn value mutator for this class.protected Logger
logger
Logger for this class.
-
Constructor Summary
Constructors Constructor Description AbstractClassDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAttributeValueMutator(Collection<AttributeValueMutator> mutators)
Adds attribute value mutators to this class descriptor.protected void
addAttributeValueMutator(AttributeValueMutator mutator)
Adds an attribute value mutator to this class descriptor.AttributeValueMutator
getAttributeValueMutator(String name)
Returns the attribute value mutator for the attribute with the supplied name.Collection<AttributeValueMutator>
getAttributeValueMutators()
Returns the attribute value mutators for this type.DnValueMutator
getDnValueMutator()
Returns the DN value mutator for this type.protected void
setDnValueMutator(DnValueMutator mutator)
Sets the dn value mutator.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ldaptive.beans.ClassDescriptor
initialize
-
-
-
-
Field Detail
-
logger
protected final Logger logger
Logger for this class.
-
attributeMutators
private final Map<String,AttributeValueMutator> attributeMutators
Attribute value mutators for this class.
-
dnMutator
private DnValueMutator dnMutator
Dn value mutator for this class.
-
-
Method Detail
-
setDnValueMutator
protected void setDnValueMutator(DnValueMutator mutator)
Sets the dn value mutator.- Parameters:
mutator
- to set
-
addAttributeValueMutator
protected void addAttributeValueMutator(AttributeValueMutator mutator)
Adds an attribute value mutator to this class descriptor.- Parameters:
mutator
- to add
-
addAttributeValueMutator
protected void addAttributeValueMutator(Collection<AttributeValueMutator> mutators)
Adds attribute value mutators to this class descriptor.- Parameters:
mutators
- to add
-
getDnValueMutator
public DnValueMutator getDnValueMutator()
Description copied from interface:ClassDescriptor
Returns the DN value mutator for this type.- Specified by:
getDnValueMutator
in interfaceClassDescriptor
- Returns:
- dn value mutator
-
getAttributeValueMutators
public Collection<AttributeValueMutator> getAttributeValueMutators()
Description copied from interface:ClassDescriptor
Returns the attribute value mutators for this type.- Specified by:
getAttributeValueMutators
in interfaceClassDescriptor
- Returns:
- value mutators
-
getAttributeValueMutator
public AttributeValueMutator getAttributeValueMutator(String name)
Description copied from interface:ClassDescriptor
Returns the attribute value mutator for the attribute with the supplied name.- Specified by:
getAttributeValueMutator
in interfaceClassDescriptor
- Parameters:
name
- of the attribute- Returns:
- value mutator
-
-