|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultDitContentRuleRegistry
public class DefaultDitContentRuleRegistry
A plain old java object implementation of an DITContentRuleRegistry.
Constructor Summary | |
---|---|
DefaultDitContentRuleRegistry(OidRegistry oidRegistry)
Creates an empty DefaultDitContentRuleRegistry. |
Method Summary | |
---|---|
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
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. |
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 DefaultDitContentRuleRegistry(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 void register(org.apache.directory.shared.ldap.schema.DITContentRule dITContentRule) throws javax.naming.NamingException
DITContentRuleRegistry
register
in interface DITContentRuleRegistry
dITContentRule
- the DITContentRule to register
javax.naming.NamingException
- if the DITContentRule is already registered or
the registration operation is not supportedpublic org.apache.directory.shared.ldap.schema.DITContentRule lookup(java.lang.String id) throws javax.naming.NamingException
DITContentRuleRegistry
lookup
in interface DITContentRuleRegistry
id
- the object identifier or name of the DITContentRule
javax.naming.NamingException
- if the DITContentRule does not existpublic boolean hasDITContentRule(java.lang.String id)
DITContentRuleRegistry
hasDITContentRule
in interface DITContentRuleRegistry
id
- the object identifier or name of the DITContentRule
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.DITContentRule> iterator()
DITContentRuleRegistry
iterator
in interface DITContentRuleRegistry
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 |