| java.lang.Object org.ontoware.rdfreactor.generator.SourceCodeWriter
SourceCodeWriter | public class SourceCodeWriter (Code) | | Write the JModel via Velocity templates to Java source code.
author: $Author: xamde $ version: $Id: SourceCodeWriter.java,v 1.9 2006/07/01 10:35:09 xamde Exp $ |
Method Summary | |
public static void | write(JModel jm, File outdir, String methodnamePrefix) Writes model 'jm' to 'outdir' creating sub-directories for packages as
needed. | public static void | write(JModel jm, File outdir, String templateName, String methodnamePrefix) Writes model 'jm' to 'outdir' creating sub-directories for packages as
needed. |
TEMPLATE_CLASS | final public static String TEMPLATE_CLASS(Code) | | |
write | public static void write(JModel jm, File outdir, String methodnamePrefix) throws Exception(Code) | | Writes model 'jm' to 'outdir' creating sub-directories for packages as
needed. Uses the default template. Prefixes all methods with 'prefix', e.g.
with prefix="Sioc" one gets "getSiocName"
Parameters: jm - Parameters: outdir - Parameters: methodnamePrefix - throws: IOException - |
write | public static void write(JModel jm, File outdir, String templateName, String methodnamePrefix) throws IOException(Code) | | Writes model 'jm' to 'outdir' creating sub-directories for packages as
needed. Uses 'templateName'. Prefixes all methods with 'prefix', e.g.
with prefix="Sioc" one gets "getSiocName"
Parameters: jm - Parameters: outdir - Parameters: templateName - in resource-syntax, e.g. "com/example/myname.vm" Parameters: methodnamePrefix - throws: IOException - |
|
|