org.apache.juddi.uuidgen
Class DefaultUUIDGen

java.lang.Object
  extended by org.apache.juddi.uuidgen.DefaultUUIDGen
All Implemented Interfaces:
UUIDGen

public class DefaultUUIDGen
extends java.lang.Object
implements UUIDGen

Used to create new universally unique identifiers or UUID's (sometimes called GUID's). UDDI UUID's are allways formmated according to DCE UUID conventions.

Author:
Maarten Coene, Steve Viens (sviens@apache.org)

Constructor Summary
DefaultUUIDGen()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 java.lang.String uuidgen()
          Generates a UUID and returns it's value as a String
 java.lang.String[] uuidgen(int nmbr)
          Generates a collection of UUID's and returns thier values as an array of Strings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUUIDGen

public DefaultUUIDGen()
Method Detail

uuidgen

public java.lang.String uuidgen()
Description copied from interface: UUIDGen
Generates a UUID and returns it's value as a String

Specified by:
uuidgen in interface UUIDGen
Returns:
The new UUID value as a String

uuidgen

public java.lang.String[] uuidgen(int nmbr)
Description copied from interface: UUIDGen
Generates a collection of UUID's and returns thier values as an array of Strings

Specified by:
uuidgen in interface UUIDGen
Parameters:
nmbr - The number of UUID's to generate
Returns:
An array of UUID's as String objects

main

public static void main(java.lang.String[] args)


Copyright © 2004-2007. All Rights Reserved.