Class DefaultComparatorRegistry
java.lang.Object
org.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry<LdapComparator<?>>
org.apache.directory.api.ldap.model.schema.registries.DefaultComparatorRegistry
- All Implemented Interfaces:
Iterable<LdapComparator<?>>, ComparatorRegistry, SchemaObjectRegistry<LdapComparator<?>>
public class DefaultComparatorRegistry
extends DefaultSchemaObjectRegistry<LdapComparator<?>>
implements ComparatorRegistry
A Comparator registry service default implementation.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class DefaultSchemaObjectRegistry
byName, oidRegistry, schemaObjectType -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new default ComparatorRegistry instance. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy a DefaultSchemaObjectRegistry.toString()voidunregisterSchemaElements(String schemaName) Unregisters all SchemaObjects defined for a specific schema from this registry.Methods inherited from class DefaultSchemaObjectRegistry
clear, contains, copy, get, getErrorHandler, getOidByName, getSchemaName, getType, isRelaxed, isStrict, iterator, lookup, oidsIterator, register, renameSchema, setErrorHandler, setRelaxed, setStrict, size, unregister, unregisterMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ComparatorRegistry
register, unregisterMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface SchemaObjectRegistry
clear, contains, get, getOidByName, getSchemaName, getType, iterator, lookup, oidsIterator, renameSchema, size, unregister
-
Constructor Details
-
DefaultComparatorRegistry
public DefaultComparatorRegistry()Creates a new default ComparatorRegistry instance.
-
-
Method Details
-
unregisterSchemaElements
Unregisters all SchemaObjects defined for a specific schema from this registry.- Specified by:
unregisterSchemaElementsin interfaceComparatorRegistry- Specified by:
unregisterSchemaElementsin interfaceSchemaObjectRegistry<LdapComparator<?>>- Overrides:
unregisterSchemaElementsin classDefaultSchemaObjectRegistry<LdapComparator<?>>- Parameters:
schemaName- the name of the schema whose SchemaObjects will be removed from- Throws:
LdapException- If we had a problem while unregistering the schema
-
copy
Copy a DefaultSchemaObjectRegistry. All the stored SchemaObject will also be copied, by the cross references will be lost.- Specified by:
copyin interfaceComparatorRegistry- Specified by:
copyin interfaceSchemaObjectRegistry<LdapComparator<?>>- Returns:
- The copied registry
-
toString
- Overrides:
toStringin classDefaultSchemaObjectRegistry<LdapComparator<?>>- See Also:
-