com.adobe.repository.infomodel
Class Id
java.lang.Object
com.adobe.repository.infomodel.Uuid
com.adobe.repository.infomodel.Id
All Implemented Interfaces: Serializable
public class Id extends Uuid implements Serializable
A Uuid
with a default prefix of
"urn:uuid:id:"
.
See Also: Serialized Form
Constructor Summary
Id ()
Default constructor that uses the default prefix of Uuid.PREFIX_URN_UUID_ID
.
Id (String uuid)
Constructor that creates an instance based on the UUID specified in
uuid
.
Id (String uuid,
boolean checkPrefix)
Creates an object from the supplied uuid
, which may contain a
prefix.
Method Summary
String
getDefaultPrefix ()
Retrieves the default prefix that will be applied to new and un-prefixed
UUIDs.
Id
public Id ()
Default constructor that uses the default prefix of Uuid.PREFIX_URN_UUID_ID
.
Id
public Id (String uuid)
Constructor that creates an instance based on the UUID specified in
uuid
.
Parameters: uuid
- The UUID from which to create the object.
Id
public Id (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
.
getDefaultPrefix
public 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.
[an error occurred while processing this directive] [an error occurred while processing this directive]