Interface ComparatorRegistry
- All Superinterfaces:
Iterable<LdapComparator<?>>, SchemaObjectRegistry<LdapComparator<?>>
- All Known Implementing Classes:
DefaultComparatorRegistry, ImmutableComparatorRegistry
public interface ComparatorRegistry
extends SchemaObjectRegistry<LdapComparator<?>>, Iterable<LdapComparator<?>>
Comparator registry component's service class.
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy the ComparatorRegistryvoidregister(LdapComparator<?> comparator) Registers a new LdapComparator with this registry.unregister(String numericOid) Removes the LdapComparator registered with this registry, using its numeric OID.voidunregisterSchemaElements(String schemaName) Unregisters all LdapComparators defined for a specific schema from this registry.Methods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface SchemaObjectRegistry
clear, contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister
-
Method Details
-
register
Registers a new LdapComparator with this registry.- Specified by:
registerin interfaceSchemaObjectRegistry<LdapComparator<?>>- Parameters:
comparator- the LdapComparator to register- Throws:
LdapException- if the LdapComparator is already registered or the registration operation is not supported
-
unregister
Removes the LdapComparator registered with this registry, using its numeric OID.- Specified by:
unregisterin interfaceSchemaObjectRegistry<LdapComparator<?>>- Parameters:
numericOid- the numeric identifier- Returns:
- The unregistred schema object
- Throws:
LdapException- if the numeric identifier is invalid
-
unregisterSchemaElements
Unregisters all LdapComparators defined for a specific schema from this registry.- Specified by:
unregisterSchemaElementsin interfaceSchemaObjectRegistry<LdapComparator<?>>- Parameters:
schemaName- the name of the schema whose LdapComparators will be removed from- Throws:
LdapException- If we had a problem while unregistering the schema
-
copy
ComparatorRegistry copy()Copy the ComparatorRegistry- Specified by:
copyin interfaceSchemaObjectRegistry<LdapComparator<?>>- Returns:
- The copied registry
-