toxgene.interfaces
Interface ToXgeneCdataGenerator

All Known Implementing Classes:
Cities, Countries, Emails, FirstNames, InetDomains, LastNames, Names, Provinces, Text, Text

public interface ToXgeneCdataGenerator

Interface for plugging in different CDATA generators.

Version:
1.0
Author:
Denilson Barbosa

Method Summary
 java.lang.String getCdata(int length)
          Generates random CDATA value whose length is determined by the parameter length.
 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.
 

Method Detail

setRandomSeed

public 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.

Parameters:
seed - random seed to initialize the random generator

getCdata

public java.lang.String getCdata(int length)
Generates random CDATA value whose length is determined by the parameter length. A value of -1 determines that a string of any length can be returned; a positive value means that a string must be truncated if necessary.

Parameters:
length - specifies the length of the CDATA value to be returned.