|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.bootstrap.BootstrapDitContentRuleRegistry
public class BootstrapDitContentRuleRegistry
A plain old java object implementation of an DITContentRuleRegistry.
Constructor Summary | |
---|---|
BootstrapDitContentRuleRegistry(OidRegistry oidRegistry)
Creates an empty BootstrapDitContentRuleRegistry. |
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 |
list()
Lists all the DITContentRules within this registry. |
DITContentRule |
lookup(java.lang.String id)
Looks up a DITContentRule by its object identifier or by its name. |
void |
register(java.lang.String schema,
DITContentRule dITContentRule)
Registers a DITContentRule with this registry. |
void |
setMonitor(DITContentRuleRegistryMonitor monitor)
Sets the monitor that is to be notified via callback events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapDitContentRuleRegistry(OidRegistry oidRegistry)
Method Detail |
---|
public void setMonitor(DITContentRuleRegistryMonitor monitor)
monitor
- the new monitor to notify of notable eventspublic void register(java.lang.String schema, DITContentRule dITContentRule) throws javax.naming.NamingException
DITContentRuleRegistry
register
in interface DITContentRuleRegistry
schema
- the name of the schema the DITContentRule is associated withdITContentRule
- the DITContentRule to register
javax.naming.NamingException
- if the DITContentRule is already registered or
the registration operation is not supportedpublic 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
DITContentRuleRegistry
getSchemaName
in interface DITContentRuleRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator list()
DITContentRuleRegistry
list
in interface DITContentRuleRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |