|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultMatchingRuleRegistry
public class DefaultMatchingRuleRegistry
A MatchingRuleRegistry service used to lookup matching rules by OID.
Constructor Summary | |
---|---|
DefaultMatchingRuleRegistry(OidRegistry oidRegistry)
Creates a DefaultMatchingRuleRegistry using existing MatchingRulees for lookups. |
Method Summary | |
---|---|
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
boolean |
hasMatchingRule(java.lang.String id)
Checks to see if a MatchingRule exists. |
java.util.Iterator<org.apache.directory.shared.ldap.schema.MatchingRule> |
iterator()
Gets an Iterator over the MatchingRules within this registry. |
org.apache.directory.shared.ldap.schema.MatchingRule |
lookup(java.lang.String id)
Looks up a MatchingRule by its unique Object Identifier or by name. |
void |
register(org.apache.directory.shared.ldap.schema.MatchingRule matchingRule)
Registers a MatchingRule with this registry. |
void |
unregister(java.lang.String numericOid)
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 DefaultMatchingRuleRegistry(OidRegistry oidRegistry)
oidRegistry
- used by this registry for OID to name resolution of
dependencies and to automatically register and unregister it's aliases and OIDsMethod Detail |
---|
public org.apache.directory.shared.ldap.schema.MatchingRule lookup(java.lang.String id) throws javax.naming.NamingException
MatchingRuleRegistry
lookup
in interface MatchingRuleRegistry
id
- the object identifier or the name identifier
javax.naming.NamingException
- if there is a backing store failure or the
MatchingRule does not exist.MatchingRuleRegistry.lookup(String)
public void register(org.apache.directory.shared.ldap.schema.MatchingRule matchingRule) throws javax.naming.NamingException
MatchingRuleRegistry
register
in interface MatchingRuleRegistry
matchingRule
- the MatchingRule to register
javax.naming.NamingException
- if the matchingRule is already registered or the
registration operation is not supportedMatchingRuleRegistry.register(MatchingRule)
public boolean hasMatchingRule(java.lang.String id)
MatchingRuleRegistry
hasMatchingRule
in interface MatchingRuleRegistry
id
- the object identifier
MatchingRuleRegistry.hasMatchingRule(String)
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.MatchingRule> iterator()
MatchingRuleRegistry
iterator
in interface MatchingRuleRegistry
iterator
in interface SchemaObjectRegistry
public void unregister(java.lang.String numericOid) throws javax.naming.NamingException
SchemaObjectRegistry
unregister
in interface SchemaObjectRegistry
numericOid
- 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 |