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
    This class encapsulates the concept of a GUID
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String EMPTY_GUID
      Default empty GUID String value.
    • Constructor Summary

      Constructors 
      Constructor and Description
      GUID(byte[] guidBytes)
      Constructor for GUID class.
      GUID(java.lang.String guidString)
      Constructor for GUID class.
    • Method Summary

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

        public static final java.lang.String EMPTY_GUID
        Default empty GUID String value.
        See Also:
        Constant Field Values
    • 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.

© Copyright IBM Corp. 2006, 2013. All Rights Reserved.