|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.schema.GlobalOidRegistry
public class GlobalOidRegistry
Default OID registry implementation used to resolve a schema object OID to a name and vice-versa.
| Constructor Summary | |
|---|---|
GlobalOidRegistry(BootstrapOidRegistry bootstrap)
Creates a default OidRegistry by initializing the map and the montior. |
|
| Method Summary | |
|---|---|
java.util.Map |
getNameByOid()
Get the map of all the oids by their name |
java.util.List |
getNameSet(java.lang.String oid)
Gets the names associated with an OID. |
java.lang.String |
getOid(java.lang.String name)
Gets the object identifier for a common name or returns the argument as-is if it is an object identifier. |
java.util.Map |
getOidByName()
Get the map of all the oids by their name |
java.lang.String |
getPrimaryName(java.lang.String oid)
Gets the primary name associated with an OID. |
boolean |
hasOid(java.lang.String name)
Checks to see if an identifier, oid or name exists within this registry. |
java.util.Iterator |
list()
Lists all the OIDs within the registry. |
void |
register(java.lang.String name,
java.lang.String oid)
Adds an OID name pair to the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalOidRegistry(BootstrapOidRegistry bootstrap)
| Method Detail |
|---|
public java.lang.String getOid(java.lang.String name)
throws javax.naming.NamingException
OidRegistry
getOid in interface OidRegistryname - the name to lookup an OID for
javax.naming.NamingException - if name does not map to an OIDOidRegistry.getOid(String)public boolean hasOid(java.lang.String name)
OidRegistry
hasOid in interface OidRegistryname - the oid or name to look for
OidRegistry.hasOid(String)
public java.lang.String getPrimaryName(java.lang.String oid)
throws javax.naming.NamingException
OidRegistry
getPrimaryName in interface OidRegistryoid - the object identifier
javax.naming.NamingException - if oid does not existOidRegistry.getPrimaryName(String)
public java.util.List getNameSet(java.lang.String oid)
throws javax.naming.NamingException
OidRegistry
getNameSet in interface OidRegistryoid - the OID for which we return the set of common names
javax.naming.NamingException - if oid does not existOidRegistry.getNameSet(String)public java.util.Iterator list()
OidRegistry
list in interface OidRegistryOidRegistry.list()
public void register(java.lang.String name,
java.lang.String oid)
OidRegistry
register in interface OidRegistryname - the name to associate with the OIDoid - the OID to add or associate a new name withOidRegistry.register(String, String)public java.util.Map getOidByName()
getOidByName in interface OidRegistrypublic java.util.Map getNameByOid()
getNameByOid in interface OidRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||