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
-
-
Constructor Summary
Constructors Constructor Description DefaultComparatorRegistry()
Creates a new default ComparatorRegistry instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultComparatorRegistry
copy()
Copy the ComparatorRegistryString
toString()
void
unregisterSchemaElements(String schemaName)
Unregisters all SchemaObjects defined for a specific schema from this registry.-
Methods inherited from class org.apache.directory.api.ldap.model.schema.registries.DefaultSchemaObjectRegistry
clear, contains, copy, get, getErrorHandler, getOidByName, getSchemaName, getType, isRelaxed, isStrict, iterator, lookup, oidsIterator, register, renameSchema, setErrorHandler, setRelaxed, setStrict, size, unregister, unregister
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.schema.registries.ComparatorRegistry
register, unregister
-
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
-
-
-
-
Constructor Detail
-
DefaultComparatorRegistry
public DefaultComparatorRegistry()
Creates a new default ComparatorRegistry instance.
-
-
Method Detail
-
unregisterSchemaElements
public void unregisterSchemaElements(String schemaName) throws LdapException
Unregisters all SchemaObjects defined for a specific schema from this registry.- Specified by:
unregisterSchemaElements
in interfaceComparatorRegistry
- Specified by:
unregisterSchemaElements
in interfaceSchemaObjectRegistry<LdapComparator<?>>
- Overrides:
unregisterSchemaElements
in 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
public DefaultComparatorRegistry copy()
Copy the ComparatorRegistry- Specified by:
copy
in interfaceComparatorRegistry
- Specified by:
copy
in interfaceSchemaObjectRegistry<LdapComparator<?>>
- Returns:
- The copied registry
-
toString
public String toString()
- Overrides:
toString
in classDefaultSchemaObjectRegistry<LdapComparator<?>>
- See Also:
Object.toString()
-
-