org.wegra.net
Class GUID

java.lang.Object
  extended byorg.wegra.net.GUID

public class GUID
extends java.lang.Object

class Guid creates a Global/Universal Unique ID, per DCE RPC specification. Requires seed of MAC address/node identifier (12-digit hex string) for uniqueness. Specification found at the OpenGroup.Org web site.


Nested Class Summary
static class GUID.Test
           
 
Constructor Summary
GUID()
          Guid() - default constructor
GUID(java.lang.String newMac)
          Guid(String) - seeded constructor
 
Method Summary
 java.lang.String getNewGuid()
          getNewGuid calls set to generate a new GUID
 void set()
          set is where all the work is done
 java.lang.String toString()
          toString returns the current values as a single string per RFC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GUID

public GUID()
     throws java.lang.IllegalArgumentException
Guid() - default constructor


GUID

public GUID(java.lang.String newMac)
     throws java.lang.IllegalArgumentException
Guid(String) - seeded constructor

Parameters:
newMac - String as the seed value for fifth element of string GUID
Throws:
java.lang.IllegalArgumentException
Method Detail

getNewGuid

public java.lang.String getNewGuid()
getNewGuid calls set to generate a new GUID

Returns:
the latest GUID

toString

public java.lang.String toString()
toString returns the current values as a single string per RFC

Returns:
the timebase from set() concatenated to the initialization string

set

public void set()
set is where all the work is done