|
||||||||||
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.BootstrapObjectClassRegistry
public class BootstrapObjectClassRegistry
A plain old java object implementation of an ObjectClassRegistry.
Constructor Summary | |
---|---|
BootstrapObjectClassRegistry(OidRegistry oidRegistry)
Creates an empty BootstrapObjectClassRegistry. |
Method Summary | |
---|---|
java.lang.String |
getSchemaName(java.lang.String id)
Gets the name of the schema this schema object is associated with. |
boolean |
hasObjectClass(java.lang.String id)
Checks to see if an objectClass exists. |
java.util.Iterator |
list()
Gets an Iterator over the ObjectClasses within this ObjectClassRegistry. |
ObjectClass |
lookup(java.lang.String id)
Looks up an objectClass by its unique Object Identifier or by name. |
void |
register(java.lang.String schema,
ObjectClass objectClass)
Registers an ObjectClass with this registry. |
void |
setMonitor(ObjectClassRegistryMonitor 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 BootstrapObjectClassRegistry(OidRegistry oidRegistry)
Method Detail |
---|
public void setMonitor(ObjectClassRegistryMonitor monitor)
monitor
- the new monitor to notify of notable eventspublic void register(java.lang.String schema, ObjectClass objectClass) throws javax.naming.NamingException
ObjectClassRegistry
register
in interface ObjectClassRegistry
schema
- the name of the schema the ObjectClass is associated withobjectClass
- the objectClass to register
javax.naming.NamingException
- if the ObjectClass is already registered or the
registration operation is not supportedpublic ObjectClass lookup(java.lang.String id) throws javax.naming.NamingException
ObjectClassRegistry
lookup
in interface ObjectClassRegistry
id
- the object identifier or name
javax.naming.NamingException
- if the ObjectClass does not existpublic boolean hasObjectClass(java.lang.String id)
ObjectClassRegistry
hasObjectClass
in interface ObjectClassRegistry
id
- the object identifier or name
public java.lang.String getSchemaName(java.lang.String id) throws javax.naming.NamingException
ObjectClassRegistry
getSchemaName
in interface ObjectClassRegistry
id
- the object identifier or the name
javax.naming.NamingException
- if the schema object does not existpublic java.util.Iterator list()
ObjectClassRegistry
list
in interface ObjectClassRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |