|
||||||||||
| 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 OIDs| Method Detail |
|---|
public void register(org.apache.directory.shared.ldap.schema.DITContentRule dITContentRule)
throws javax.naming.NamingException
DITContentRuleRegistry
register in interface DITContentRuleRegistrydITContentRule - the DITContentRule to register
javax.naming.NamingException - if the DITContentRule is already registered or
the registration operation is not supported
public org.apache.directory.shared.ldap.schema.DITContentRule lookup(java.lang.String id)
throws javax.naming.NamingException
DITContentRuleRegistry
lookup in interface DITContentRuleRegistryid - 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 DITContentRuleRegistryid - 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 SchemaObjectRegistryid - 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 DITContentRuleRegistryiterator in interface SchemaObjectRegistry
public void unregister(java.lang.String numericOid)
throws javax.naming.NamingException
SchemaObjectRegistry
unregister in interface SchemaObjectRegistrynumericOid - 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 | |||||||||