|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.schema.registries.DefaultOidRegistry
public class DefaultOidRegistry
Default OID registry implementation used to resolve a schema object OID to a name and vice-versa.
| Constructor Summary | |
|---|---|
DefaultOidRegistry()
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getNameByOid()
Get the map of all the oids by their name |
java.util.List<java.lang.String> |
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<java.lang.String,java.lang.String> |
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. |
void |
unregister(java.lang.String numericOid)
Removes an oid from this registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultOidRegistry()
| 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(java.lang.String)public boolean hasOid(java.lang.String name)
OidRegistry
hasOid in interface OidRegistryname - 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 OidRegistryoid - the object identifier
javax.naming.NamingException - if oid does not existOidRegistry.getPrimaryName(java.lang.String)
public java.util.List<java.lang.String> 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(java.lang.String)public java.util.Iterator list()
OidRegistry
list in interface OidRegistryOidRegistry.list()public java.util.Map<java.lang.String,java.lang.String> getOidByName()
getOidByName in interface OidRegistrypublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getNameByOid()
getNameByOid in interface OidRegistry
public void register(java.lang.String name,
java.lang.String oid)
throws javax.naming.NamingException
OidRegistry
register in interface OidRegistryname - the name to associate with the OIDoid - the OID to add or associate a new name with
javax.naming.NamingExceptionOidRegistry.register(String, String)
public void unregister(java.lang.String numericOid)
throws javax.naming.NamingException
OidRegistry
unregister in interface OidRegistrynumericOid - the numeric identifier for the object
javax.naming.NamingException - if the identifier is not numeric
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||