Class CatalogToJava

java.lang.Object
eu.bandm.tools.muli.CatalogToJava

public class CatalogToJava extends Object
Code generator for translating the current state of a given CatalogByString into java code to reconstruct it.
  • Field Details

    • putformat

      protected final Format putformat
  • Constructor Details

    • CatalogToJava

      public CatalogToJava()
  • Method Details

    • makeClassCode

      public GeneratedClass makeClassCode(CatalogByString data, String classname, GeneratedContext container, @Opt @Opt String[] args)
      Generates code for a java class derived from CatalogByString from the current state of a Catalog. The generated class will start with that's content as its initial state.
      Parameters:
      args - may be null if called programmatically / not from main
    • main

      public static void main(String[] args)
      Tool for converting an xml-encoded catalog data file into a java source file.
      Additionally the xml source is copied into the "doc-files" subdirectory of that directory to where the package code is written (roughly spoken = "concat(args[3]+args[2])"). arg[0] the path to a catalog data file.
      (encoded following muli.dtd)
      arg[1] the name of the class
      arg[2] the name of the package into which to generate.
      arg[3] file system mount point of source tree.
      arg[4] == "--nolf" iff to suppress newlines