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 NormalizerRegistry
copy()
Copy the NormalizerRegistryvoid
register(Normalizer normalizer)
Registers a new Normalizer with this registry.Normalizer
unregister(String numericOid)
Removes the Normalizer registered with this registry, using its numeric OID.void
unregisterSchemaElements(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:
register
in 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:
unregister
in 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:
unregisterSchemaElements
in 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:
copy
in interfaceSchemaObjectRegistry<Normalizer>
- Returns:
- The copied registry
-
-