org.apache.directory.shared.ldap.schema.registries
Class DefaultComparatorRegistry

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry<LdapComparator<?>>
      extended by org.apache.directory.shared.ldap.schema.registries.DefaultComparatorRegistry
All Implemented Interfaces:
java.lang.Iterable<LdapComparator<?>>, ComparatorRegistry, SchemaObjectRegistry<LdapComparator<?>>

public class DefaultComparatorRegistry
extends DefaultSchemaObjectRegistry<LdapComparator<?>>
implements ComparatorRegistry

A Comparator registry service default implementation.

Version:
$Rev: 828111 $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry
byName, oidRegistry, schemaObjectType
 
Constructor Summary
DefaultComparatorRegistry()
          Creates a new default ComparatorRegistry instance.
 
Method Summary
 DefaultComparatorRegistry copy()
          Copy the ComparatorRegistry
 java.lang.String toString()
           
 void unregisterSchemaElements(java.lang.String schemaName)
          Unregisters all SchemaObjects defined for a specific schema from this registry.
 
Methods inherited from class org.apache.directory.shared.ldap.schema.registries.DefaultSchemaObjectRegistry
clear, contains, copy, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, register, renameSchema, size, unregister, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.schema.registries.ComparatorRegistry
register, unregister
 
Methods inherited from interface org.apache.directory.shared.ldap.schema.registries.SchemaObjectRegistry
clear, contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

DefaultComparatorRegistry

public DefaultComparatorRegistry()
Creates a new default ComparatorRegistry instance.

Method Detail

unregisterSchemaElements

public void unregisterSchemaElements(java.lang.String schemaName)
                              throws LdapException
Unregisters all SchemaObjects defined for a specific schema from this registry.

Specified by:
unregisterSchemaElements in interface ComparatorRegistry
Specified by:
unregisterSchemaElements in interface SchemaObjectRegistry<LdapComparator<?>>
Overrides:
unregisterSchemaElements in class DefaultSchemaObjectRegistry<LdapComparator<?>>
Parameters:
schemaName - the name of the schema whose SchemaObjects will be removed from
Throws:
LdapException

copy

public DefaultComparatorRegistry copy()
Copy the ComparatorRegistry

Specified by:
copy in interface ComparatorRegistry
Specified by:
copy in interface SchemaObjectRegistry<LdapComparator<?>>
Returns:
SchemaObjectRegistry The copied registry

toString

public java.lang.String toString()
Overrides:
toString in class DefaultSchemaObjectRegistry<LdapComparator<?>>
See Also:
Object.toString()


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.