1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.uuidgen;
17
18 /***
19 * A Universally Unique Identifier (UUID) is a 128 bit number generated
20 * according to an algorithm that is garanteed to be unique in time and space
21 * from all other UUIDs. It consists of an IEEE 802 Internet Address and
22 * various time stamps to ensure uniqueness. For a complete specification,
23 * see ftp://ietf.org/internet-drafts/draft-leach-uuids-guids-01.txt [leach].
24 *
25 * @author Steve Viens (sviens@apache.org)
26 */
27 public interface UUIDGen
28 {
29 /***
30 * Generates a UUID and returns it's value as a String
31 * @return The new UUID value as a String
32 */
33 String uuidgen();
34
35 /***
36 * Generates a collection of UUID's and returns thier
37 * values as an array of Strings
38 * @param nmbr The number of UUID's to generate
39 * @return An array of UUID's as String objects
40 */
41 String[] uuidgen(int nmbr);
42 }