org.apache.directory.server.schema.registries
Interface ObjectClassRegistry

All Superinterfaces:
SchemaObjectRegistry
All Known Implementing Classes:
DefaultObjectClassRegistry

public interface ObjectClassRegistry
extends SchemaObjectRegistry

ObjectClass registry service interface.

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

Method Summary
 boolean hasObjectClass(java.lang.String id)
          Checks to see if an objectClass exists.
 java.util.Iterator<org.apache.directory.shared.ldap.schema.ObjectClass> iterator()
          Gets an Iterator over the ObjectClasses within this ObjectClassRegistry.
 org.apache.directory.shared.ldap.schema.ObjectClass lookup(java.lang.String id)
          Looks up an objectClass by its unique Object Identifier or by name.
 void register(org.apache.directory.shared.ldap.schema.ObjectClass objectClass)
          Registers an ObjectClass with this registry.
 
Methods inherited from interface org.apache.directory.server.schema.registries.SchemaObjectRegistry
getSchemaName, unregister
 

Method Detail

register

void register(org.apache.directory.shared.ldap.schema.ObjectClass objectClass)
              throws javax.naming.NamingException
Registers an ObjectClass with this registry.

Parameters:
objectClass - the objectClass to register
Throws:
javax.naming.NamingException - if the ObjectClass is already registered or the registration operation is not supported

lookup

org.apache.directory.shared.ldap.schema.ObjectClass lookup(java.lang.String id)
                                                           throws javax.naming.NamingException
Looks up an objectClass by its unique Object Identifier or by name.

Parameters:
id - the object identifier or name
Returns:
the ObjectClass instance for the id
Throws:
javax.naming.NamingException - if the ObjectClass does not exist

hasObjectClass

boolean hasObjectClass(java.lang.String id)
Checks to see if an objectClass exists.

Parameters:
id - the object identifier or name
Returns:
true if an objectClass definition exists for the id, false otherwise

iterator

java.util.Iterator<org.apache.directory.shared.ldap.schema.ObjectClass> iterator()
Gets an Iterator over the ObjectClasses within this ObjectClassRegistry.

Specified by:
iterator in interface SchemaObjectRegistry
Returns:
an iterator over all ObjectClasses in registry


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