|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.registries.OidRegistry<T>
public class OidRegistry<T extends SchemaObject>
Object identifier registry. It stores the OIDs for AT, OC, MR, LS, MRU, DSR, DCR and NF. An OID is unique, and associated with a SO.
| Constructor Summary | |
|---|---|
OidRegistry()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
contains(String oid)
Tells if the given OID is present on this registry |
OidRegistry<T> |
copy()
Copy the OidRegistry, without the contained values |
List<String> |
getNameSet(String oid)
Gets the names associated with an OID. |
String |
getPrimaryName(String oid)
Gets the primary name associated with an OID. |
T |
getSchemaObject(String oid)
Gets the SchemaObject associated with an OID. |
Iterator<T> |
iterator()
Lists all the SchemaObjects within the registry. |
Iterator<String> |
iteratorOids()
Lists all the OIDs within the registry. |
void |
register(T schemaObject)
Adds an OID name pair to the registry. |
int |
size()
|
String |
toString()
|
void |
unregister(String oid)
Removes an oid from this registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OidRegistry()
| Method Detail |
|---|
public boolean contains(String oid)
oid - The OID to lookup
public String getPrimaryName(String oid)
throws LdapException
oid - the object identifier
LdapException - if oid does not exist
public T getSchemaObject(String oid)
throws LdapException
oid - the object identifier
LdapException - if oid does not exist
public List<String> getNameSet(String oid)
throws LdapException
oid - the OID for which we return the set of common names
LdapException - if oid does not existpublic Iterator<String> iteratorOids()
public Iterator<T> iterator()
iterator in interface Iterable<T extends SchemaObject>
public void register(T schemaObject)
throws LdapException
schemaObject - The SchemaObject the oid belongs to
LdapException
public void unregister(String oid)
throws LdapException
oid - the numeric identifier for the object
LdapException - if the identifier is not numericpublic OidRegistry<T> copy()
public int size()
public void clear()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||