|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adobe.repository.infomodel.Uuid
public class Uuid
A DCE 128-bit universally unique identifier (UUID) in hex format, with a prefix to make this object a valid URI.
| Field Summary | |
|---|---|
static java.lang.String |
PREFIX_URN_UUID
The default prefix. |
static java.lang.String |
PREFIX_URN_UUID_ID
The prefix applied to Id objects. |
static java.lang.String |
PREFIX_URN_UUID_LID
The prefix applied to Lid objects. |
| Constructor Summary | |
|---|---|
Uuid()
Default constructor that uses the default prefix of Uuid.PREFIX_URN_UUID. |
|
Uuid(java.lang.String uuid)
Constructor that uses the specified UUID. |
|
Uuid(java.lang.String uuid,
boolean checkPrefix)
Constructor that uses the specified UUID, which may contain a prefix. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the current object with the specified instance in obj. |
java.lang.String |
getDefaultPrefix()
Retrieves the default prefix that will be applied to new and un-prefixed UUIDs. |
java.lang.String |
getPrefix()
Retrieves the prefix string. |
java.lang.String |
getUuid()
Retrieves the 36-character UUID string. |
int |
hashCode()
Retrieves the hash code for the prefix. |
void |
setPrefix(java.lang.String prefix)
Sets the prefix string. |
void |
setUuid(java.lang.String uuid)
Sets the 36-character UUID string. |
java.lang.String |
toString()
Creates a String comprised of the prefix and UUID. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PREFIX_URN_UUID
public static final java.lang.String PREFIX_URN_UUID_ID
Id objects.
public static final java.lang.String PREFIX_URN_UUID_LID
Lid objects.
| Constructor Detail |
|---|
public Uuid()
Uuid.PREFIX_URN_UUID.
public Uuid(java.lang.String uuid)
uuid.
uuid - The UUID from which to create the object.
public Uuid(java.lang.String uuid,
boolean checkPrefix)
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 |
|---|
public java.lang.String toString()
String comprised of the prefix and UUID.
toString in class java.lang.ObjectString comprised of the prefix and the 36-character
UUID string.public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix - The prefix string.public java.lang.String getUuid()
public void setUuid(java.lang.String uuid)
uuid - The 36-character UUID string.public java.lang.String getDefaultPrefix()
public boolean equals(java.lang.Object obj)
obj.
equals in class java.lang.Objectobj - The object with which to compare the current instance.
true if the objects are equivalent, false
otherwise.public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||