com.adobe.repository.infomodel
Class Lid

java.lang.Object
  extended by com.adobe.repository.infomodel.Uuid
      extended by com.adobe.repository.infomodel.Lid
All Implemented Interfaces:
java.io.Serializable

public class Lid
extends Uuid
implements java.io.Serializable

A UUID with a default prefix of "urn:uuid:lid:".

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.adobe.repository.infomodel.Uuid
PREFIX_URN_UUID, PREFIX_URN_UUID_ID, PREFIX_URN_UUID_LID
 
Constructor Summary
Lid()
          Default constructor that uses the default prefix of Uuid.PREFIX_URN_UUID_LID.
Lid(java.lang.String uuid)
          Constructor that creates an instance based on the UUID specified in uuid.
Lid(java.lang.String uuid, boolean checkPrefix)
          Creates an object from the supplied uuid, which may contain a prefix.
 
Method Summary
 java.lang.String getDefaultPrefix()
          Retrieves the default prefix that will be applied to new and un-prefixed UUIDs.
 
Methods inherited from class com.adobe.repository.infomodel.Uuid
equals, getPrefix, getUuid, hashCode, setPrefix, setUuid, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lid

public Lid()
Default constructor that uses the default prefix of Uuid.PREFIX_URN_UUID_LID.


Lid

public Lid(java.lang.String uuid)
Constructor that creates an instance based on the UUID specified in uuid.

Parameters:
uuid - The UUID from which to create the object.

Lid

public Lid(java.lang.String uuid,
           boolean checkPrefix)
Creates an object from the supplied uuid, which may contain a prefix.

Parameters:
uuid - The UUID from which to create the object.
checkPrefix - If true, the constructor sets the default prefix if a prefix is not found in uuid. If checkPrefix is false, the default prefix is used without checking uuid.
Method Detail

getDefaultPrefix

public java.lang.String getDefaultPrefix()
Retrieves the default prefix that will be applied to new and un-prefixed UUIDs.

Overrides:
getDefaultPrefix in class Uuid
Returns:
The default prefix to apply to new and un-prefixed UUIDs.