public class ObjectDataGenerator extends DataGenerator
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
urlPath
The path to a file to parse.
|
| Constructor and Description |
|---|
ObjectDataGenerator(org.licas_xml.abs.Element adminXml)
Create a new instance of ObjectDataGenerator.
|
ObjectDataGenerator(long thisSeed,
java.lang.String thisDataType)
Create a new instance of ObjectDataGenerator.
|
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
dataTypeOK(java.lang.String theDataType)
Return true if the data type is allowed by the data generator.
|
java.lang.Object |
getNextValue()
Generate the next data value.
|
void |
parseGenXml(org.licas_xml.abs.Element genXml)
Parse the data generator script to set the appropriate variable values.
|
void |
setDataType(java.lang.String thisDataType)
Set the object data type, or its class name.
|
void |
setUrlPath(java.lang.String thisUrlPath)
Set the file path to the file to parse.
|
conditionsToXml, conditionsToXml, conditionsToXml, generateStringRange, getBaseElement, getDataType, getGeneratorClass, isAllowedDataType, setMaxValue, setMinValuepublic ObjectDataGenerator(long thisSeed,
java.lang.String thisDataType)
throws java.lang.Exception
thisDataType - the generator data type.thisSeed - to seed a random number generator. Can be 0 if not used.java.lang.Exception - any error.public ObjectDataGenerator(org.licas_xml.abs.Element adminXml)
throws java.lang.Exception
adminXml - a script including the value ranges for the data. This
would now be a full admin script, with an Const.PARAMETERS
section for these values.java.lang.Exception - any error.public void parseGenXml(org.licas_xml.abs.Element genXml)
parseGenXml in class DataGeneratorgenXml - the script to parsepublic java.lang.Object getNextValue()
throws java.lang.Exception
getNextValue in class DataGeneratorjava.lang.Exception - any error.public void setDataType(java.lang.String thisDataType)
thisDataType - the object data type.public void setUrlPath(java.lang.String thisUrlPath)
thisUrlPath - the path to the object file to parse.protected static boolean dataTypeOK(java.lang.String theDataType)
theDataType - the data type to check for.