Package com.unboundid.ldap.sdk.persist
Class OIDAllocator
- java.lang.Object
-
- com.unboundid.ldap.sdk.persist.OIDAllocator
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DefaultOIDAllocator
@Extensible @ThreadSafety(level=INTERFACE_THREADSAFE) public abstract class OIDAllocator extends java.lang.Object implements java.io.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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OIDAllocator()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
allocateAttributeTypeOID(java.lang.String name)
Allocates an OID for the attribute type with the specified name.abstract java.lang.String
allocateObjectClassOID(java.lang.String name)
Allocates an OID for the object class with the specified name.
-
-
-
Constructor Detail
-
OIDAllocator
public OIDAllocator()
-
-
Method Detail
-
allocateAttributeTypeOID
@NotNull public abstract java.lang.String allocateAttributeTypeOID(@NotNull java.lang.String name)
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 benull
or empty.- Returns:
- The OID to use for the attribute type definition.
-
allocateObjectClassOID
@NotNull public abstract java.lang.String allocateObjectClassOID(@NotNull java.lang.String name)
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 benull
or empty.- Returns:
- The OID to use for the object class definition.
-
-