Interface NormalizerRegistry
-
- All Superinterfaces:
Iterable<Normalizer>,SchemaObjectRegistry<Normalizer>
- All Known Implementing Classes:
DefaultNormalizerRegistry,ImmutableNormalizerRegistry
public interface NormalizerRegistry extends SchemaObjectRegistry<Normalizer>, Iterable<Normalizer>
Normalizer registry service class.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NormalizerRegistrycopy()Copy the NormalizerRegistryvoidregister(Normalizer normalizer)Registers a new Normalizer with this registry.Normalizerunregister(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 java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.apache.directory.api.ldap.model.schema.registries.SchemaObjectRegistry
clear, contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister
-
-
-
-
Method Detail
-
register
void register(Normalizer normalizer) throws LdapException
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
Normalizer unregister(String numericOid) throws LdapException
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
void unregisterSchemaElements(String schemaName) throws LdapException
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
-
-