|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.bootstrap.BootstrapOidRegistry
Default OID registry implementation used to resolve a schema object OID to a name and vice-versa.
Constructor Summary | |
BootstrapOidRegistry()
|
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 BootstrapOidRegistry()
Method Detail |
public java.lang.String getOid(java.lang.String name) throws javax.naming.NamingException
OidRegistry
getOid
in interface OidRegistry
name
- the name to lookup an OID for
javax.naming.NamingException
- if name does not map to an OIDOidRegistry.getOid(java.lang.String)
public boolean hasOid(java.lang.String name)
OidRegistry
hasOid
in interface OidRegistry
name
- the oid or name to look for
OidRegistry.hasOid(java.lang.String)
public java.lang.String getPrimaryName(java.lang.String oid) throws javax.naming.NamingException
OidRegistry
getPrimaryName
in interface OidRegistry
oid
- the object identifier
javax.naming.NamingException
- if oid does not existOidRegistry.getPrimaryName(java.lang.String)
public java.util.List getNameSet(java.lang.String oid) throws javax.naming.NamingException
OidRegistry
getNameSet
in interface OidRegistry
oid
- the OID for which we return the set of common names
javax.naming.NamingException
- if oid does not existOidRegistry.getNameSet(java.lang.String)
public java.util.Iterator list()
OidRegistry
list
in interface OidRegistry
OidRegistry.list()
public java.util.Map getOidByName()
getOidByName
in interface OidRegistry
public java.util.Map getNameByOid()
getNameByOid
in interface OidRegistry
public void register(java.lang.String name, java.lang.String oid)
OidRegistry
register
in interface OidRegistry
name
- the name to associate with the OIDoid
- the OID to add or associate a new name withOidRegistry.register(String, String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |