|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxgene.util.cdata.xmark.Names
This class implements a simple CDATA generator that produces random
person names according to the rules specified by the
XMark benchmark.
This code is provided as part of ToXgene - (c) 2001 University of Toronto
and IBM Corporation.
Field Summary | |
static java.lang.String[] |
data
|
static int |
len
|
static boolean |
loaded
|
Constructor Summary | |
Names()
Constructor. |
Method Summary | |
java.lang.String |
getCdata(int length)
Generates random text whose length is determined by the parameter length. |
static void |
init()
This method does all the work of loading the words into memory. |
void |
setRandomSeed(int seed)
Specifies a seed for the random generator so that repeated executions always produce the same content, if the same seed is provided. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int len
public static java.lang.String[] data
public static boolean loaded
Constructor Detail |
public Names()
Method Detail |
public void setRandomSeed(int seed)
setRandomSeed
in interface ToXgeneCdataGenerator
seed
- random seed to initialize the random generatorpublic java.lang.String getCdata(int length)
getCdata
in interface ToXgeneCdataGenerator
length
- specifies the length of the CDATA value to be returned.public static void init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |