org.apache.directory.shared.ldap.schema.registries
Interface NormalizerRegistry

All Superinterfaces:
java.lang.Iterable<Normalizer>, SchemaObjectRegistry<Normalizer>
All Known Implementing Classes:
DefaultNormalizerRegistry, ImmutableNormalizerRegistry

public interface NormalizerRegistry
extends SchemaObjectRegistry<Normalizer>, java.lang.Iterable<Normalizer>

Normalizer registry service class.

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

Method Summary
 NormalizerRegistry copy()
          Copy the NormalizerRegistry
 void register(Normalizer normalizer)
          Registers a new Normalizer with this registry.
 Normalizer unregister(java.lang.String numericOid)
          Removes the Normalizer registered with this registry, using its numeric OID.
 void unregisterSchemaElements(java.lang.String schemaName)
          Unregisters all Normalizers defined for a specific schema from this registry.
 
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
 

Method Detail

register

void register(Normalizer normalizer)
              throws LdapException
Registers a new Normalizer with this registry.

Specified by:
register in interface SchemaObjectRegistry<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(java.lang.String numericOid)
                      throws LdapException
Removes the Normalizer registered with this registry, using its numeric OID.

Specified by:
unregister in interface SchemaObjectRegistry<Normalizer>
Parameters:
numericOid - the numeric identifier
Throws:
LdapException - if the numeric identifier is invalid

unregisterSchemaElements

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

Specified by:
unregisterSchemaElements in interface SchemaObjectRegistry<Normalizer>
Parameters:
schemaName - the name of the schema whose Normalizers will be removed from
Throws:
LdapException

copy

NormalizerRegistry copy()
Copy the NormalizerRegistry

Specified by:
copy in interface SchemaObjectRegistry<Normalizer>
Returns:
SchemaObjectRegistry The copied registry


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