Form Builder NG Model 6.0.0-SNAPSHOT

org.jbpm.form.builder.ng.model.client.form
Class FormIDGenerator

java.lang.Object
  extended by org.jbpm.form.builder.ng.model.client.form.FormIDGenerator

public class FormIDGenerator
extends Object


Constructor Summary
FormIDGenerator()
           
 
Method Summary
static String nextId()
           
static String uuid()
          Generate a RFC4122, version 4 ID.
static String uuid(int len)
          Generate a random uuid of the specified length.
static String uuid(int len, int radix)
          Generate a random uuid of the specified length, and radix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormIDGenerator

public FormIDGenerator()
Method Detail

nextId

public static String nextId()

uuid

public static String uuid(int len)
Generate a random uuid of the specified length. Example: uuid(15) returns "VcydxgltxrVZSTV"

Parameters:
len - the desired number of characters

uuid

public static String uuid(int len,
                          int radix)
Generate a random uuid of the specified length, and radix. Examples:

Parameters:
len - the desired number of characters
radix - the number of allowable values for each character (must be <= 62)

uuid

public static String uuid()
Generate a RFC4122, version 4 ID. Example: "92329D39-6F5C-4520-ABFC-AAB64544E172"


Form Builder NG Model 6.0.0-SNAPSHOT

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.