Class GeneratorXMLSpec


  • public class GeneratorXMLSpec
    extends AbstractApplication
    Generate a data set based on a specified model (using an XML specification)
    Since:
    0.2
    Author:
    Erich Schubert
    • Field Detail

      • LOG

        private static final Logging LOG
        The logger for this class.
      • LINE_SEPARATOR

        public static final java.lang.String LINE_SEPARATOR
        Line separator for output
      • outputFile

        private java.nio.file.Path outputFile
        Output file.
    • Constructor Detail

      • GeneratorXMLSpec

        public GeneratorXMLSpec​(java.nio.file.Path output,
                                GeneratorXMLDatabaseConnection generator)
        Constructor.
        Parameters:
        output - Output file
        generator - GeneratorXMLDatabaseConnection
    • Method Detail

      • writeClusters

        public void writeClusters​(java.io.BufferedWriter outStream,
                                  MultipleObjectsBundle data)
                           throws java.io.IOException
        Write the resulting clusters to an output stream.
        Parameters:
        outStream - output stream
        data - Generated data
        Throws:
        java.io.IOException - thrown on write errors
      • main

        public static void main​(java.lang.String[] args)
        Main method to run this application.
        Parameters:
        args - the arguments to run this application