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

All Superinterfaces:
java.lang.Iterable<SyntaxChecker>, SchemaObjectRegistry<SyntaxChecker>
All Known Implementing Classes:
DefaultSyntaxCheckerRegistry, ImmutableSyntaxCheckerRegistry

public interface SyntaxCheckerRegistry
extends SchemaObjectRegistry<SyntaxChecker>, java.lang.Iterable<SyntaxChecker>

SyntaxChecker registry component's service interface.

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

Method Summary
 SyntaxCheckerRegistry copy()
          Copy the SyntaxCheckerRegistry
 void register(SyntaxChecker syntaxChecker)
          Registers a new SyntaxChecker with this registry.
 SyntaxChecker unregister(java.lang.String numericOid)
          Removes the SyntaxChecker registered with this registry, using its numeric OID.
 void unregisterSchemaElements(java.lang.String schemaName)
          Unregisters all SyntaxCheckers 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(SyntaxChecker syntaxChecker)
              throws LdapException
Registers a new SyntaxChecker with this registry.

Specified by:
register in interface SchemaObjectRegistry<SyntaxChecker>
Parameters:
syntaxChecker - the SyntaxChecker to register
Throws:
LdapException - if the SyntaxChecker is already registered or the registration operation is not supported

unregister

SyntaxChecker unregister(java.lang.String numericOid)
                         throws LdapException
Removes the SyntaxChecker registered with this registry, using its numeric OID.

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

unregisterSchemaElements

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

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

copy

SyntaxCheckerRegistry copy()
Copy the SyntaxCheckerRegistry

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


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