com.filenet.rm.bds

Class GUID

  1. java.lang.Object
  2. extended bycom.filenet.rm.bds.GUID
All implemented interfaces:
java.lang.Cloneable

  1. public class GUID
  2. extends java.lang.Object
  3. implements java.lang.Cloneable
This class encapsulates the concept of a GUID

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
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
  1. java.lang.Object
clone()
Overrides the protected Object.clone() in order to implement the Cloneable interface.
  1. static
  2. GUID
createGUID()
Static method to create a new instance of a GUID and auto-generate its internal value.
  1. boolean
equals(java.lang.Object o)
  1. int
hashCode()
  1. static
  2. boolean
isValidGuidString(java.lang.String guidString)
Helper method to determine if a given string is a valid GUID string.
  1. 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]).
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Field Detail

EMPTY_GUID

  1. public static final java.lang.String EMPTY_GUID
Default empty GUID String value.
See Also:

Constructor Detail

GUID

  1. 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

  1. public GUID(byte[] guidBytes)
Constructor for GUID class.
Parameters:
guidBytes - byte[] of GUID data.

Method Detail

createGUID

  1. 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

  1. 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

  1. 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

  1. public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

  1. public int hashCode()
Overrides:
hashCode in class java.lang.Object

isValidGuidString

  1. 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.