|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpmp.AbstractMacro
pmp.macro.str.UUID
public class UUID
Generates random UUID/GUID.
For generating random numbers is used
SecureRandom
with algorithm "SHA1PRNG"
.
If not available, then standard Random
class is used.
Title: PMP: Macroprocessor
Description: Java macroprocessor
Copyright: Copyright (c) 2005
UUID
Field Summary | |
---|---|
static java.lang.String |
COMPACT
Returns new UUID without hyphens. |
static int |
PARAMS_REQUIRED
|
static java.lang.String |
REGISTRY
Returns new UUID in Windows registry format (ie: surrounded with curly brackets). |
static java.lang.String |
UUID_SCHEME
Returns new UUID with "uuid:" prefix |
Constructor Summary | |
---|---|
UUID()
|
Method Summary | |
---|---|
static java.lang.String |
generate(java.lang.String format)
Generates new UUID. |
java.lang.String |
run(Macroprocessor mp,
java.lang.String[] params)
Main method of macro. |
Methods inherited from class pmp.AbstractMacro |
---|
getRequiredParams, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PARAMS_REQUIRED
public static final java.lang.String COMPACT
public static final java.lang.String REGISTRY
public static final java.lang.String UUID_SCHEME
"uuid:"
prefix
Constructor Detail |
---|
public UUID()
Method Detail |
---|
public static java.lang.String generate(java.lang.String format)
run(Macroprocessor,String[])
method.
format
- format of generated uuid
public java.lang.String run(Macroprocessor mp, java.lang.String[] params)
AbstractMacro
run
in class AbstractMacro
mp
- reference to Macroprocessorparams
- parameters of macro. In args[0] is stored name of macro.
Subclasses are free to modify this array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |