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

All Superinterfaces:
SchemaObjectRegistry
All Known Implementing Classes:
DefaultNameFormRegistry

public interface NameFormRegistry
extends SchemaObjectRegistry

An NameForm registry service interface.

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

Method Summary
 boolean hasNameForm(java.lang.String id)
          Checks to see if an nameForm exists.
 java.util.Iterator<org.apache.directory.shared.ldap.schema.NameForm> iterator()
          Lists all the NameForms within this registry.
 org.apache.directory.shared.ldap.schema.NameForm lookup(java.lang.String id)
          Looks up a nameForm by its unique Object Identifier or by name.
 void register(org.apache.directory.shared.ldap.schema.NameForm nameForm)
          Registers a NameForm 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.NameForm nameForm)
              throws javax.naming.NamingException
Registers a NameForm with this registry.

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

lookup

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

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

hasNameForm

boolean hasNameForm(java.lang.String id)
Checks to see if an nameForm exists.

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

iterator

java.util.Iterator<org.apache.directory.shared.ldap.schema.NameForm> iterator()
Lists all the NameForms within this registry.

Specified by:
iterator in interface SchemaObjectRegistry
Returns:
an Iterator over all the NameForms within this registry


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