|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.schema.registries.OidRegistry
public class OidRegistry
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(java.lang.String oid)
Tells if the given OID is present on this registry |
OidRegistry |
copy()
Copy the OidRegistry, without the contained values |
java.util.List<java.lang.String> |
getNameSet(java.lang.String oid)
Gets the names associated with an OID. |
java.lang.String |
getPrimaryName(java.lang.String oid)
Gets the primary name associated with an OID. |
SchemaObject |
getSchemaObject(java.lang.String oid)
Gets the SchemaObject associated with an OID. |
java.util.Iterator<SchemaObject> |
iterator()
Lists all the SchemaObjects within the registry. |
java.util.Iterator<java.lang.String> |
iteratorOids()
Lists all the OIDs within the registry. |
void |
register(SchemaObject schemaObject)
Adds an OID name pair to the registry. |
int |
size()
|
java.lang.String |
toString()
|
void |
unregister(java.lang.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(java.lang.String oid)
oid
- The OID to lookup
public java.lang.String getPrimaryName(java.lang.String oid) throws LdapException
oid
- the object identifier
LdapException
- if oid does not existpublic SchemaObject getSchemaObject(java.lang.String oid) throws LdapException
oid
- the object identifier
LdapException
- if oid does not existpublic java.util.List<java.lang.String> getNameSet(java.lang.String oid) throws LdapException
oid
- the OID for which we return the set of common names
LdapException
- if oid does not existpublic java.util.Iterator<java.lang.String> iteratorOids()
public java.util.Iterator<SchemaObject> iterator()
iterator
in interface java.lang.Iterable<SchemaObject>
public void register(SchemaObject schemaObject) throws LdapException
type
- The SchemaObjectType the oid belongs tooid
- the OID to add or associate a new name with
LdapException
public void unregister(java.lang.String oid) throws LdapException
oid
- the numeric identifier for the object
LdapException
- if the identifier is not numericpublic OidRegistry copy()
public int size()
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |