|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultMatchingRuleUseRegistry
public class DefaultMatchingRuleUseRegistry
A plain old java object implementation of an MatchingRuleUseRegistry.
Constructor Summary | |
---|---|
DefaultMatchingRuleUseRegistry()
Creates an empty DefaultMatchingRuleUseRegistry. |
Method Summary | |
---|---|
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
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. |
void |
unregister(java.lang.String name)
Removes the SchemaObject registered with this registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMatchingRuleUseRegistry()
Method Detail |
---|
public void register(org.apache.directory.shared.ldap.schema.MatchingRuleUse matchingRuleUse) throws javax.naming.NamingException
MatchingRuleUseRegistry
register
in interface MatchingRuleUseRegistry
matchingRuleUse
- the matchingRuleUse to register
javax.naming.NamingException
- if the MatchingRuleUse is already registered or
the registration operation is not supportedpublic org.apache.directory.shared.ldap.schema.MatchingRuleUse lookup(java.lang.String name) throws javax.naming.NamingException
MatchingRuleUseRegistry
lookup
in interface MatchingRuleUseRegistry
name
- the name of the matchingRuleUse
javax.naming.NamingException
- if the MatchingRuleUse does not existpublic boolean hasMatchingRuleUse(java.lang.String name)
MatchingRuleUseRegistry
hasMatchingRuleUse
in interface MatchingRuleUseRegistry
name
- the name of the matchingRuleUse
public java.lang.String getSchemaName(java.lang.String id) throws javax.naming.NamingException
SchemaObjectRegistry
getSchemaName
in interface SchemaObjectRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator<org.apache.directory.shared.ldap.schema.MatchingRuleUse> iterator()
MatchingRuleUseRegistry
iterator
in interface MatchingRuleUseRegistry
iterator
in interface SchemaObjectRegistry
public void unregister(java.lang.String name) throws javax.naming.NamingException
SchemaObjectRegistry
unregister
in interface SchemaObjectRegistry
name
- the numeric identifier
javax.naming.NamingException
- if the numeric identifier is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |