|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultNameFormRegistry
public class DefaultNameFormRegistry
A plain old java object implementation of an NameFormRegistry.
| Constructor Summary | |
|---|---|
DefaultNameFormRegistry(OidRegistry oidRegistry)
Creates an empty DefaultNameFormRegistry. |
|
| 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<org.apache.directory.shared.ldap.schema.NameForm> |
iterator()
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(org.apache.directory.shared.ldap.schema.NameForm nameForm)
Registers a NameForm 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 DefaultNameFormRegistry(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.NameForm nameForm)
throws javax.naming.NamingException
NameFormRegistry
register in interface NameFormRegistrynameForm - the nameForm to register
javax.naming.NamingException - if the NameForm is already registered or the
registration operation is not supported
public org.apache.directory.shared.ldap.schema.NameForm lookup(java.lang.String id)
throws javax.naming.NamingException
NameFormRegistry
lookup in interface NameFormRegistryid - the object identifier or name
javax.naming.NamingException - if the NameForm does not existpublic boolean hasNameForm(java.lang.String id)
NameFormRegistry
hasNameForm in interface NameFormRegistryid - 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.NameForm> iterator()
NameFormRegistry
iterator in interface NameFormRegistryiterator 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 | |||||||||