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

All Known Subinterfaces:
AttributeTypeRegistry, DITContentRuleRegistry, DITStructureRuleRegistry, MatchingRuleRegistry, MatchingRuleUseRegistry, NameFormRegistry, ObjectClassRegistry, SyntaxRegistry
All Known Implementing Classes:
DefaultAttributeTypeRegistry, DefaultDitContentRuleRegistry, DefaultDitStructureRuleRegistry, DefaultMatchingRuleRegistry, DefaultMatchingRuleUseRegistry, DefaultNameFormRegistry, DefaultObjectClassRegistry, DefaultSyntaxRegistry

public interface SchemaObjectRegistry

Common schema object registry interface.

Version:
$Rev$, $Date$
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.
 java.util.Iterator<? extends org.apache.directory.shared.ldap.schema.SchemaObject> iterator()
          Gets an iterator over the registered schema objects in the registry.
 void unregister(java.lang.String numericOid)
          Removes the SchemaObject registered with this registry.
 

Method Detail

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

iterator

java.util.Iterator<? extends org.apache.directory.shared.ldap.schema.SchemaObject> iterator()
Gets an iterator over the registered schema objects in the registry.

Returns:
an Iterator of homogenious schema objects

unregister

void unregister(java.lang.String numericOid)
                throws javax.naming.NamingException
Removes the SchemaObject registered with this registry.

Parameters:
numericOid - the numeric identifier
Throws:
javax.naming.NamingException - if the numeric identifier is invalid


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