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 ofAttributeValueMutatorand aDnValueMutator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractClassDescriptor.SimpleAttributeValueMutatorStores anAttributeconfiguration in anLdapAttributeobject.protected static classAbstractClassDescriptor.SimpleDnValueMutatorStores the DN value from aEntryconfiguration.
-
Field Summary
Fields Modifier and Type Field Description private Map<String,AttributeValueMutator>attributeMutatorsAttribute value mutators for this class.private DnValueMutatordnMutatorDn value mutator for this class.protected LoggerloggerLogger for this class.
-
Constructor Summary
Constructors Constructor Description AbstractClassDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributeValueMutator(Collection<AttributeValueMutator> mutators)Adds attribute value mutators to this class descriptor.protected voidaddAttributeValueMutator(AttributeValueMutator mutator)Adds an attribute value mutator to this class descriptor.AttributeValueMutatorgetAttributeValueMutator(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.DnValueMutatorgetDnValueMutator()Returns the DN value mutator for this type.protected voidsetDnValueMutator(DnValueMutator mutator)Sets the dn value mutator.StringtoString()-
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:ClassDescriptorReturns the DN value mutator for this type.- Specified by:
getDnValueMutatorin interfaceClassDescriptor- Returns:
- dn value mutator
-
getAttributeValueMutators
public Collection<AttributeValueMutator> getAttributeValueMutators()
Description copied from interface:ClassDescriptorReturns the attribute value mutators for this type.- Specified by:
getAttributeValueMutatorsin interfaceClassDescriptor- Returns:
- value mutators
-
getAttributeValueMutator
public AttributeValueMutator getAttributeValueMutator(String name)
Description copied from interface:ClassDescriptorReturns the attribute value mutator for the attribute with the supplied name.- Specified by:
getAttributeValueMutatorin interfaceClassDescriptor- Parameters:
name- of the attribute- Returns:
- value mutator
-
-