Interface NormalizerRegistry
- All Superinterfaces:
Iterable<Normalizer>, SchemaObjectRegistry<Normalizer>
- All Known Implementing Classes:
DefaultNormalizerRegistry, ImmutableNormalizerRegistry
Normalizer registry service class.
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy the NormalizerRegistryvoidregister(Normalizer normalizer) Registers a new Normalizer with this registry.unregister(String numericOid) Removes the Normalizer registered with this registry, using its numeric OID.voidunregisterSchemaElements(String schemaName) Unregisters all Normalizers 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 Normalizer with this registry.- Specified by:
registerin interfaceSchemaObjectRegistry<Normalizer>- Parameters:
normalizer- the Normalizer to register- Throws:
LdapException- if the Normalizer is already registered or the registration operation is not supported
-
unregister
Removes the Normalizer registered with this registry, using its numeric OID.- Specified by:
unregisterin interfaceSchemaObjectRegistry<Normalizer>- Parameters:
numericOid- the numeric identifier- Returns:
- The unregistred schema object
- Throws:
LdapException- if the numeric identifier is invalid
-
unregisterSchemaElements
Unregisters all Normalizers defined for a specific schema from this registry.- Specified by:
unregisterSchemaElementsin interfaceSchemaObjectRegistry<Normalizer>- Parameters:
schemaName- the name of the schema whose Normalizers will be removed from- Throws:
LdapException- If we had a problem while unregistering the schema
-
copy
NormalizerRegistry copy()Copy the NormalizerRegistry- Specified by:
copyin interfaceSchemaObjectRegistry<Normalizer>- Returns:
- The copied registry
-