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

All Superinterfaces:
SchemaObjectRegistry
All Known Implementing Classes:
DefaultDitContentRuleRegistry

public interface DITContentRuleRegistry
extends SchemaObjectRegistry

An DITContentRule registry's service interface.

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

Method Summary
 boolean hasDITContentRule(java.lang.String id)
          Checks to see if a DITContentRule exists.
 java.util.Iterator<org.apache.directory.shared.ldap.schema.DITContentRule> iterator()
          Lists the DITContentRules registered in this registry.
 org.apache.directory.shared.ldap.schema.DITContentRule lookup(java.lang.String id)
          Looks up a DITContentRule by its object identifier or by its name.
 void register(org.apache.directory.shared.ldap.schema.DITContentRule dITContentRule)
          Registers a DITContentRule 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.DITContentRule dITContentRule)
              throws javax.naming.NamingException
Registers a DITContentRule with this registry.

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

lookup

org.apache.directory.shared.ldap.schema.DITContentRule lookup(java.lang.String id)
                                                              throws javax.naming.NamingException
Looks up a DITContentRule by its object identifier or by its name.

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

hasDITContentRule

boolean hasDITContentRule(java.lang.String id)
Checks to see if a DITContentRule exists.

Parameters:
id - the object identifier or name of the DITContentRule
Returns:
true if a DITContentRule definition exists for the id, false otherwise

iterator

java.util.Iterator<org.apache.directory.shared.ldap.schema.DITContentRule> iterator()
Lists the DITContentRules registered in this registry.

Specified by:
iterator in interface SchemaObjectRegistry
Returns:
an Iterator of DITContentRules


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