org.ldaptive.beans
Class AbstractClassDescriptor.SimpleAttributeValueMutator

java.lang.Object
  extended by org.ldaptive.beans.AbstractClassDescriptor.SimpleAttributeValueMutator
All Implemented Interfaces:
AttributeValueMutator
Enclosing class:
AbstractClassDescriptor

protected class AbstractClassDescriptor.SimpleAttributeValueMutator
extends Object
implements AttributeValueMutator

Stores an Attribute configuration in an LdapAttribute object. Setter methods are no-ops.


Constructor Summary
AbstractClassDescriptor.SimpleAttributeValueMutator(String name, String[] values, boolean binary, org.ldaptive.SortBehavior behavior)
          Creates a new simple attribute value mutator.
 
Method Summary
 Collection<byte[]> getBinaryValues(Object object)
          Returns the binary values of the attribute.
 String getName()
          Returns the name of the attribute.
 org.ldaptive.SortBehavior getSortBehavior()
          Returns the sort behavior of the attribute.
 Collection<String> getStringValues(Object object)
          Returns the string values of the attribute.
 boolean isBinary()
          Returns whether the attribute is binary.
 void setBinaryValues(Object object, Collection<byte[]> values)
          Sets the binary values of the attribute.
 void setStringValues(Object object, Collection<String> values)
          Sets the string values of the attribute.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractClassDescriptor.SimpleAttributeValueMutator

public AbstractClassDescriptor.SimpleAttributeValueMutator(String name,
                                                           String[] values,
                                                           boolean binary,
                                                           org.ldaptive.SortBehavior behavior)
Creates a new simple attribute value mutator.

Parameters:
name - of the attribute
values - of the attribute
binary - whether values contains base64 encoded data
behavior - sort behavior of the attribute
Method Detail

getName

public String getName()
Returns the name of the attribute.

Specified by:
getName in interface AttributeValueMutator
Returns:
attribute name

isBinary

public boolean isBinary()
Returns whether the attribute is binary.

Specified by:
isBinary in interface AttributeValueMutator
Returns:
whether the attribute is binary

getSortBehavior

public org.ldaptive.SortBehavior getSortBehavior()
Returns the sort behavior of the attribute.

Specified by:
getSortBehavior in interface AttributeValueMutator
Returns:
sort behavior of the attribute

getStringValues

public Collection<String> getStringValues(Object object)
Returns the string values of the attribute.

Specified by:
getStringValues in interface AttributeValueMutator
Parameters:
object - containing attribute values
Returns:
attribute values

getBinaryValues

public Collection<byte[]> getBinaryValues(Object object)
Returns the binary values of the attribute.

Specified by:
getBinaryValues in interface AttributeValueMutator
Parameters:
object - containing attribute values
Returns:
attribute values

setStringValues

public void setStringValues(Object object,
                            Collection<String> values)
Sets the string values of the attribute.

Specified by:
setStringValues in interface AttributeValueMutator
Parameters:
object - to set values on
values - to set

setBinaryValues

public void setBinaryValues(Object object,
                            Collection<byte[]> values)
Sets the binary values of the attribute.

Specified by:
setBinaryValues in interface AttributeValueMutator
Parameters:
object - to set values on
values - to set

toString

public String toString()

Overrides:
toString in class Object


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