com.unboundid.ldap.sdk.persist
Class OIDAllocator

java.lang.Object
  extended by 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
OIDAllocator()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OIDAllocator

public OIDAllocator()
Method Detail

allocateAttributeTypeOID

public abstract java.lang.String allocateAttributeTypeOID(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 be null or empty.
Returns:
The OID to use for the attribute type definition.

allocateObjectClassOID

public abstract java.lang.String allocateObjectClassOID(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 be null or empty.
Returns:
The OID to use for the object class definition.