Package com.unboundid.ldap.sdk.persist
Class OIDAllocator
java.lang.Object
com.unboundid.ldap.sdk.persist.OIDAllocator
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DefaultOIDAllocator
@Extensible
@ThreadSafety(level=INTERFACE_THREADSAFE)
public abstract class OIDAllocator
extends Object
implements Serializable
This class provides a mechanism that can be used for generating object
identifiers (OIDs) for use in attribute type and object class definitions
constructed for use in representing an object in the directory.
Note that OIDs generated are not necessarily required to be valid, nor are they required to be unique. As such, OIDs included in generated attribute type and object class definitions may need to be edited before the definitions can be added to the directory server.
Note that OIDs generated are not necessarily required to be valid, nor are they required to be unique. As such, OIDs included in generated attribute type and object class definitions may need to be edited before the definitions can be added to the directory server.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringAllocates an OID for the attribute type with the specified name.abstract StringallocateObjectClassOID(String name) Allocates an OID for the object class with the specified name.
-
Constructor Details
-
OIDAllocator
public OIDAllocator()
-
-
Method Details
-
allocateAttributeTypeOID
Allocates an OID for the attribute type with the specified name.- Parameters:
name- The name of the attribute type for which to generate an OID. It must not benullor empty.- Returns:
- The OID to use for the attribute type definition.
-
allocateObjectClassOID
Allocates an OID for the object class with the specified name.- Parameters:
name- The name of the object class for which to generate an OID. It must not benullor empty.- Returns:
- The OID to use for the object class definition.
-