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

All Superinterfaces:
SchemaObjectRegistry
All Known Implementing Classes:
DefaultMatchingRuleUseRegistry

public interface MatchingRuleUseRegistry
extends SchemaObjectRegistry

A MatchingRuleUse registry service interface. MatchingRuleUse objects are special in that they do not have unique OID's specifically assigned to them. Their OID is really the OID of the MatchingRule they refer to.

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

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

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

lookup

org.apache.directory.shared.ldap.schema.MatchingRuleUse lookup(java.lang.String name)
                                                               throws javax.naming.NamingException
Looks up an matchingRuleUse by its name.

Parameters:
name - the name of the matchingRuleUse
Returns:
the MatchingRuleUse instance for the name
Throws:
javax.naming.NamingException - if the MatchingRuleUse does not exist

hasMatchingRuleUse

boolean hasMatchingRuleUse(java.lang.String name)
Checks to see if an matchingRuleUse exists.

Parameters:
name - the name of the matchingRuleUse
Returns:
true if an matchingRuleUse definition exists for the name, false otherwise

iterator

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

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


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