|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultComparatorRegistry
public class DefaultComparatorRegistry
A simple POJO implementation of the ComparatorRegistry service interface.
| Constructor Summary | |
|---|---|
DefaultComparatorRegistry()
Creates a DefaultComparatorRegistry by initializing the maps |
|
| Method Summary | |
|---|---|
java.util.Iterator<org.apache.directory.shared.ldap.schema.parsers.ComparatorDescription> |
comparatorDescriptionIterator()
Iterates over the numeric OID strings of this registry. |
java.lang.String |
getSchemaName(java.lang.String oid)
Gets the name of the schema this schema object is associated with. |
boolean |
hasComparator(java.lang.String oid)
Checks to see if a Comparator exists. |
java.util.Iterator<java.lang.String> |
iterator()
Iterates over the numeric OID strings of this registry. |
java.util.Comparator<?> |
lookup(java.lang.String oid)
Looks up a Comparator by its unique Object Identifier. |
void |
register(org.apache.directory.shared.ldap.schema.parsers.ComparatorDescription description,
java.util.Comparator<?> comparator)
Registers a Comparator with this registry. |
void |
renameSchema(java.lang.String originalSchemaName,
java.lang.String newSchemaName)
Renames the schemaName associated with entities within this registry to a new schema name. |
void |
unregister(java.lang.String oid)
Removes a registered comparator from this registry. |
void |
unregisterSchemaElements(java.lang.String schemaName)
Unregisters comparators from this registry associated with a schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultComparatorRegistry()
| Method Detail |
|---|
public void register(org.apache.directory.shared.ldap.schema.parsers.ComparatorDescription description,
java.util.Comparator<?> comparator)
throws javax.naming.NamingException
register in interface ComparatorRegistrydescription - the comparatorDescription for the comparator to registercomparator - the Comparator to register
javax.naming.NamingException - if the Comparator is already registered or the
registration operation is not supported
public java.util.Comparator<?> lookup(java.lang.String oid)
throws javax.naming.NamingException
lookup in interface ComparatorRegistryoid - the object identifier
javax.naming.NamingException - if there is a backing store failure or the
Comparator does not exist.public boolean hasComparator(java.lang.String oid)
hasComparator in interface ComparatorRegistryoid - the object identifier
public java.lang.String getSchemaName(java.lang.String oid)
throws javax.naming.NamingException
getSchemaName in interface ComparatorRegistryoid - the object identifier
javax.naming.NamingException - if the schema object does not existpublic java.util.Iterator<java.lang.String> iterator()
iterator in interface java.lang.Iterable<java.lang.String>iterator in interface ComparatorRegistry
public void unregister(java.lang.String oid)
throws javax.naming.NamingException
unregister in interface ComparatorRegistryoid - the numeric oid of the comparator to remove.
javax.naming.NamingException - if the oid is not a numeric idpublic void unregisterSchemaElements(java.lang.String schemaName)
unregisterSchemaElements in interface ComparatorRegistryschemaName - the name of the schema whose comparators are removed
from this registry
public void renameSchema(java.lang.String originalSchemaName,
java.lang.String newSchemaName)
renameSchema in interface ComparatorRegistryoriginalSchemaName - the original schema namenewSchemaName - the new name to give to the schemapublic java.util.Iterator<org.apache.directory.shared.ldap.schema.parsers.ComparatorDescription> comparatorDescriptionIterator()
comparatorDescriptionIterator in interface ComparatorRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||