|
||||||||||
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.BootstrapNameFormRegistry
public class BootstrapNameFormRegistry
A plain old java object implementation of an NameFormRegistry.
Constructor Summary | |
---|---|
BootstrapNameFormRegistry(OidRegistry oidRegistry)
Creates an empty BootstrapNameFormRegistry. |
Method Summary | |
---|---|
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
boolean |
hasNameForm(java.lang.String id)
Checks to see if an nameForm exists. |
java.util.Iterator |
list()
Lists all the NameForms within this registry. |
org.apache.directory.shared.ldap.schema.NameForm |
lookup(java.lang.String id)
Looks up a nameForm by its unique Object Identifier or by name. |
void |
register(java.lang.String schema,
org.apache.directory.shared.ldap.schema.NameForm nameForm)
Registers a NameForm with this registry. |
void |
setMonitor(NameFormRegistryMonitor 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 BootstrapNameFormRegistry(OidRegistry oidRegistry)
Method Detail |
---|
public void setMonitor(NameFormRegistryMonitor monitor)
monitor
- the new monitor to notify of notable eventspublic void register(java.lang.String schema, org.apache.directory.shared.ldap.schema.NameForm nameForm) throws javax.naming.NamingException
NameFormRegistry
register
in interface NameFormRegistry
schema
- the name of the schema the NameForm is associated withnameForm
- the nameForm to register
javax.naming.NamingException
- if the NameForm is already registered or the
registration operation is not supportedpublic org.apache.directory.shared.ldap.schema.NameForm lookup(java.lang.String id) throws javax.naming.NamingException
NameFormRegistry
lookup
in interface NameFormRegistry
id
- the object identifier or name
javax.naming.NamingException
- if the NameForm does not existpublic boolean hasNameForm(java.lang.String id)
NameFormRegistry
hasNameForm
in interface NameFormRegistry
id
- the object identifier or name
public java.lang.String getSchemaName(java.lang.String id) throws javax.naming.NamingException
NameFormRegistry
getSchemaName
in interface NameFormRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator list()
NameFormRegistry
list
in interface NameFormRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |