|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OidRegistry
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 |
---|
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 OIDboolean hasOid(java.lang.String id)
id
- the oid or name to look for
java.lang.String getPrimaryName(java.lang.String oid) throws javax.naming.NamingException
oid
- the object identifier
javax.naming.NamingException
- if oid does not existjava.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 existjava.util.Iterator list()
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 withjava.util.Map getOidByName()
java.util.Map getNameByOid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |