org.ldaptive.beans
Class AbstractClassDescriptor

java.lang.Object
  extended by 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 of AttributeValueMutator and a AbstractClassDescriptor.SimpleDnValueMutator.

Version:
$Revision: 3013 $ $Date: 2014-07-02 11:26:52 -0400 (Wed, 02 Jul 2014) $
Author:
Middleware Services

Nested Class Summary
protected  class AbstractClassDescriptor.SimpleAttributeValueMutator
          Stores an Attribute configuration in an LdapAttribute object.
protected  class AbstractClassDescriptor.SimpleDnValueMutator
          Stores the DN value from a Entry configuration.
 
Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
AbstractClassDescriptor()
           
 
Method Summary
protected  void addAttributeValueMutator(AttributeValueMutator mutator)
          Adds an attribute value mutator to this class descriptor.
protected  void addAttributeValueMutator(Collection<AttributeValueMutator> mutators)
          Adds attribute value mutators 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 org.slf4j.Logger logger
Logger for this class.

Constructor Detail

AbstractClassDescriptor

public AbstractClassDescriptor()
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()
Returns the DN value mutator for this type.

Specified by:
getDnValueMutator in interface ClassDescriptor
Returns:
dn value mutator

getAttributeValueMutators

public Collection<AttributeValueMutator> getAttributeValueMutators()
Returns the attribute value mutators for this type.

Specified by:
getAttributeValueMutators in interface ClassDescriptor
Returns:
value mutators

getAttributeValueMutator

public AttributeValueMutator getAttributeValueMutator(String name)
Returns the attribute value mutator for the attribute with the supplied name.

Specified by:
getAttributeValueMutator in interface ClassDescriptor
Parameters:
name - of the attribute
Returns:
value mutator

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.