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