com.filenet.rm.bds
Class GUID
- java.lang.Object
com.filenet.rm.bds.GUID
All implemented interfaces:
java.lang.Cloneable
- public class GUID
- extends java.lang.Object
- implements java.lang.Cloneable
Field Summary
Modifier and Type | Field and Description |
---|---|
|
EMPTY_GUID
Default empty GUID
String value.
|
Constructor Summary
Constructor and Description |
---|
GUID(byte[] guidBytes)
Constructor for GUID class.
|
GUID(java.lang.String guidString)
Constructor for GUID class.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
clone()
Overrides the protected
Object.clone() in order to implement the Cloneable interface.
|
|
createGUID()
Static method to create a new instance of a GUID and auto-generate
its internal value.
|
|
equals(java.lang.Object o)
|
|
hashCode()
|
|
isValidGuidString(java.lang.String guidString)
Helper method to determine if a given string is a valid
GUID string.
|
|
toString()
Returns GUID value as a String in the format "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
where each 'x' character is a hexidecimal digit ([0-9A-F]).
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail
EMPTY_GUID
- public static final java.lang.String EMPTY_GUID
See Also:
Constructor Detail
GUID
- public GUID(java.lang.String guidString)
Constructor for GUID class.
Parameters:
guidString
- a String of the format "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
where each 'x' character is a hexidecimal digit ([0-9a-fA-F]).
If null
or an empty string, then the GUID will
be initialized to the EMPTY_GUID constant value. GUID
- public GUID(byte[] guidBytes)
Constructor for GUID class.
Parameters:
guidBytes
- byte[]
of GUID data. Method Detail
createGUID
- public static GUID createGUID()
Static method to create a new instance of a GUID and auto-generate
its internal value.
Returns:
a newly created GUID instance.
clone
- public java.lang.Object clone()
Overrides the protected
Object.clone()
in order to implement the
Cloneable
interface.
Overrides:
clone
in class java.lang.Object
toString
- public java.lang.String toString( )
Returns GUID value as a String in the format "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
where each 'x' character is a hexidecimal digit ([0-9A-F]).
Overrides:
toString
in class java.lang.Object
Returns:
GUID
String
value. equals
- public boolean equals(java.lang.Object o)
Overrides:
equals
in class java.lang.Object
hashCode
- public int hashCode()
Overrides:
hashCode
in class java.lang.Object
isValidGuidString
- public static boolean isValidGuidString( java.lang.String guidString)
Helper method to determine if a given string is a valid
GUID string.
Parameters:
guidString
- String
to validate. Returns:
true
if is a valid GUID string;
false
otherwise.
String
value.