Package eu.bandm.tools.muli
Class CatalogToJava
java.lang.Object
eu.bandm.tools.muli.CatalogToJava
Code generator for translating the current state of a given
CatalogByString
into java code to reconstruct it.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Tool for converting an xml-encoded catalog data file into a java source file.makeClassCode
(CatalogByString data, String classname, GeneratedContext container, @Opt String[] args) Generates code for a java class derived from CatalogByString from the current state of a Catalog.
-
Field Details
-
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
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
-