org.openanzo.common.ldap.container.map
Class BasicEntrySetBinding

java.lang.Object
  extended by org.openanzo.common.ldap.container.map.BasicEntrySetBinding
All Implemented Interfaces:
EntryBinding<BasicAttributeBinding>

public class BasicEntrySetBinding
extends java.lang.Object
implements EntryBinding<BasicAttributeBinding>


Constructor Summary
BasicEntrySetBinding()
          Create a new entry binding.
 
Method Summary
 void addBinding(BasicEntrySet entrySet, BasicAttributeBinding binding)
          Add a binding.
 BasicAttributeBinding findBinding(EntrySet entrySet, java.lang.String attribute, java.net.URI uri)
          Finds the binding for the given entry set, attribute and URI.
 java.util.Set<java.lang.String> getAllAttributes()
          Gets all the bound attributes for all the entry sets.
 java.util.List<BasicAttributeBinding> getBinding(EntrySet entrySet)
          Get the attribute binding that applies to the provided EntrySet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicEntrySetBinding

public BasicEntrySetBinding()
Create a new entry binding.

Method Detail

addBinding

public void addBinding(BasicEntrySet entrySet,
                       BasicAttributeBinding binding)
Description copied from interface: EntryBinding
Add a binding.

Specified by:
addBinding in interface EntryBinding<BasicAttributeBinding>
Parameters:
entrySet - EntrySet the attribute bindings apply to.
binding - Attribute bindings to apply for the provided EntrySet.

getBinding

public java.util.List<BasicAttributeBinding> getBinding(EntrySet entrySet)
Description copied from interface: EntryBinding
Get the attribute binding that applies to the provided EntrySet.

Specified by:
getBinding in interface EntryBinding<BasicAttributeBinding>
Parameters:
entrySet - EntrySet.
Returns:
T.

findBinding

public BasicAttributeBinding findBinding(EntrySet entrySet,
                                         java.lang.String attribute,
                                         java.net.URI uri)
Description copied from interface: EntryBinding
Finds the binding for the given entry set, attribute and URI.

Specified by:
findBinding in interface EntryBinding<BasicAttributeBinding>
Parameters:
entrySet - The entry set to scan for a match
attribute - the attribute of the binding to match
uri - the uri of the binding to match
Returns:
the matched binding or null if it is not found

getAllAttributes

public java.util.Set<java.lang.String> getAllAttributes()
Description copied from interface: EntryBinding
Gets all the bound attributes for all the entry sets.

Specified by:
getAllAttributes in interface EntryBinding<BasicAttributeBinding>
Returns:
Complete list of bound attributes for all entry sets.


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.