Package com.unboundid.util
Class OIDRegistry
- java.lang.Object
-
- com.unboundid.util.OIDRegistry
-
- All Implemented Interfaces:
java.io.Serializable
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class OIDRegistry extends java.lang.Object implements java.io.Serializable
This class represents a data structure with information about a variety of object identifiers (OIDs) used in LDAP-related contexts.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OIDRegistryItem
get(OID oid)
Retrieves the OID registry item for the specified OID, if available.OIDRegistryItem
get(java.lang.String oid)
Retrieves the OID registry item for the specified OID, if available.static OIDRegistry
getDefault()
Retrieves the default instance of this OID registry.java.util.Map<OID,OIDRegistryItem>
getItems()
Retrieves an unmodifiable map of all items in the OID registry, indexed by OID.OIDRegistry
withSchema(Schema schema)
Retrieves a copy of this OID registry that has been augmented with information from the provided schema.
-
-
-
Method Detail
-
getDefault
@NotNull public static OIDRegistry getDefault()
Retrieves the default instance of this OID registry.- Returns:
- The default instance of this OID registry.
-
withSchema
@NotNull public OIDRegistry withSchema(@NotNull Schema schema)
Retrieves a copy of this OID registry that has been augmented with information from the provided schema.- Parameters:
schema
- The schema that may be used to augment the information in this OID registry. It must not benull
.- Returns:
- A copy of this OID registry that has been augmented with information from the provided schema.
-
getItems
@NotNull public java.util.Map<OID,OIDRegistryItem> getItems()
Retrieves an unmodifiable map of all items in the OID registry, indexed by OID.- Returns:
- An unmodifiable map of all items in the OID registry, indexed by OID.
-
get
@Nullable public OIDRegistryItem get(@NotNull java.lang.String oid)
Retrieves the OID registry item for the specified OID, if available.- Parameters:
oid
- The OID for the item to retrieve.- Returns:
- The OID registry item for the specified OID, or
null
if this registry does not have any information about the specified OID.
-
get
@Nullable public OIDRegistryItem get(@NotNull OID oid)
Retrieves the OID registry item for the specified OID, if available.- Parameters:
oid
- The OID for the item to retrieve.- Returns:
- The OID registry item for the specified OID, or
null
if this registry does not have any information about the specified OID.
-
-