|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultObjectClassRegistry
public class DefaultObjectClassRegistry
A plain old java object implementation of an ObjectClassRegistry.
| Constructor Summary | |
|---|---|
DefaultObjectClassRegistry(OidRegistry oidRegistry)
Creates an empty DefaultObjectClassRegistry. |
|
| 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<org.apache.directory.shared.ldap.schema.ObjectClass> |
iterator()
Gets an Iterator over the ObjectClasses within this ObjectClassRegistry. |
org.apache.directory.shared.ldap.schema.ObjectClass |
lookup(java.lang.String id)
Looks up an objectClass by its unique Object Identifier or by name. |
void |
register(org.apache.directory.shared.ldap.schema.ObjectClass objectClass)
Registers an ObjectClass 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 DefaultObjectClassRegistry(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.ObjectClass objectClass)
throws javax.naming.NamingException
ObjectClassRegistry
register in interface ObjectClassRegistryobjectClass - the objectClass to register
javax.naming.NamingException - if the ObjectClass is already registered or the
registration operation is not supported
public org.apache.directory.shared.ldap.schema.ObjectClass lookup(java.lang.String id)
throws javax.naming.NamingException
ObjectClassRegistry
lookup in interface ObjectClassRegistryid - the object identifier or name
javax.naming.NamingException - if the ObjectClass does not existpublic boolean hasObjectClass(java.lang.String id)
ObjectClassRegistry
hasObjectClass in interface ObjectClassRegistryid - the object identifier or name
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.ObjectClass> iterator()
ObjectClassRegistry
iterator in interface ObjectClassRegistryiterator 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 | |||||||||