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

All Known Implementing Classes:
BootstrapObjectClassRegistry, GlobalObjectClassRegistry

public interface ObjectClassRegistry

ObjectClass registry service interface.

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

Method Summary
 java.lang.String getSchemaName(java.lang.String id)
          Gets the name of the schema this schema object is associated with.
 boolean hasObjectClass(java.lang.String id)
          Checks to see if an objectClass exists.
 java.util.Iterator list()
          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(java.lang.String schema, org.apache.directory.shared.ldap.schema.ObjectClass objectClass)
          Registers an ObjectClass with this registry.
 

Method Detail

register

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

Parameters:
schema - the name of the schema the ObjectClass is associated with
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

getSchemaName

java.lang.String getSchemaName(java.lang.String id)
                               throws javax.naming.NamingException
Gets the name of the schema this schema object is associated with.

Parameters:
id - the object identifier or the name
Returns:
the schema name
Throws:
javax.naming.NamingException - if the schema object 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

list

java.util.Iterator list()
Gets an Iterator over the ObjectClasses within this ObjectClassRegistry.

Returns:
an iterator over all ObjectClasses in registry


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