org.identityconnectors.ldap.commons
Class AppendingAttributes

java.lang.Object
  extended by org.identityconnectors.ldap.commons.AppendingAttributes
All Implemented Interfaces:
Serializable, Cloneable, Attributes

public abstract class AppendingAttributes
extends Object
implements Attributes

An implementation of Attributes which delegates to a given Attributes instance while adding some attributes to the list if already not present, or replacing the existing values if such attributes are present.

See Also:
Serialized Form

Field Summary
protected  Attributes delegate
           
 
Constructor Summary
AppendingAttributes(Attributes delegate)
           
 
Method Summary
abstract  Object clone()
           
 Attribute get(String attrID)
           
 NamingEnumeration<? extends Attribute> getAll()
           
protected abstract  Set<String> getAttributeIDsToAppend()
           
protected abstract  Attribute getAttributeToAppend(String attrID)
           
 NamingEnumeration<String> getIDs()
           
 boolean isCaseIgnored()
           
 Attribute put(Attribute attr)
           
 Attribute put(String attrID, Object val)
           
 Attribute remove(String attrID)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected final Attributes delegate
Constructor Detail

AppendingAttributes

public AppendingAttributes(Attributes delegate)
Method Detail

getAttributeIDsToAppend

protected abstract Set<String> getAttributeIDsToAppend()

getAttributeToAppend

protected abstract Attribute getAttributeToAppend(String attrID)

clone

public abstract Object clone()
Specified by:
clone in interface Attributes
Overrides:
clone in class Object

get

public final Attribute get(String attrID)
Specified by:
get in interface Attributes

getAll

public final NamingEnumeration<? extends Attribute> getAll()
Specified by:
getAll in interface Attributes

getIDs

public final NamingEnumeration<String> getIDs()
Specified by:
getIDs in interface Attributes

isCaseIgnored

public final boolean isCaseIgnored()
Specified by:
isCaseIgnored in interface Attributes

put

public final Attribute put(Attribute attr)
Specified by:
put in interface Attributes

put

public final Attribute put(String attrID,
                           Object val)
Specified by:
put in interface Attributes

remove

public final Attribute remove(String attrID)
Specified by:
remove in interface Attributes

size

public final int size()
Specified by:
size in interface Attributes


Copyright © 2012. All Rights Reserved.