Package org.ldaptive.beans
Class AbstractClassDescriptor
java.lang.Object
org.ldaptive.beans.AbstractClassDescriptor
- All Implemented Interfaces:
ClassDescriptor
- Direct Known Subclasses:
DefaultClassDescriptor,FieldClassDescriptor,MethodClassDescriptor,SpringClassDescriptor
Base implementation of a class descriptor. Stores a map of
AttributeValueMutator and a DnValueMutator.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classStores anAttributeconfiguration in anLdapAttributeobject.protected static classStores the DN value from aEntryconfiguration. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,AttributeValueMutator> Attribute value mutators for this class.private DnValueMutatorDn value mutator for this class.protected final LoggerLogger for this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds attribute value mutators to this class descriptor.protected voidAdds an attribute value mutator to this class descriptor.Returns the attribute value mutator for the attribute with the supplied name.Returns the attribute value mutators for this type.Returns the DN value mutator for this type.protected voidsetDnValueMutator(DnValueMutator mutator) Sets the dn value mutator.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.beans.ClassDescriptor
initialize
-
Field Details
-
logger
Logger for this class. -
attributeMutators
Attribute value mutators for this class. -
dnMutator
Dn value mutator for this class.
-
-
Constructor Details
-
AbstractClassDescriptor
public AbstractClassDescriptor()
-
-
Method Details
-
setDnValueMutator
Sets the dn value mutator.- Parameters:
mutator- to set
-
addAttributeValueMutator
Adds an attribute value mutator to this class descriptor.- Parameters:
mutator- to add
-
addAttributeValueMutator
Adds attribute value mutators to this class descriptor.- Parameters:
mutators- to add
-
getDnValueMutator
Description copied from interface:ClassDescriptorReturns the DN value mutator for this type.- Specified by:
getDnValueMutatorin interfaceClassDescriptor- Returns:
- dn value mutator
-
getAttributeValueMutators
Description copied from interface:ClassDescriptorReturns the attribute value mutators for this type.- Specified by:
getAttributeValueMutatorsin interfaceClassDescriptor- Returns:
- value mutators
-
getAttributeValueMutator
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
-
toString
-