|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Object identifier registry.
| 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 id)
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. |
| Method Detail |
public java.lang.String getOid(java.lang.String name)
throws javax.naming.NamingException
name - the name to lookup an OID for
javax.naming.NamingException - if name does not map to an OIDpublic boolean hasOid(java.lang.String id)
id - the oid or name to look for
public java.lang.String getPrimaryName(java.lang.String oid)
throws javax.naming.NamingException
oid - the object identifier
javax.naming.NamingException - if oid does not exist
public java.util.List getNameSet(java.lang.String oid)
throws javax.naming.NamingException
oid - the OID for which we return the set of common names
javax.naming.NamingException - if oid does not existpublic java.util.Iterator list()
public void register(java.lang.String name,
java.lang.String oid)
name - the name to associate with the OIDoid - the OID to add or associate a new name withpublic java.util.Map getOidByName()
public java.util.Map getNameByOid()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||