|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evelopers.unimod.transform.source.ModelToSource
Generate source file from given templates. Requires velocity templates.
Method Summary | |
static ModelToSource |
create(Logger log)
|
void |
generate(java.io.File templateFile,
Model model,
java.io.File outputFile,
java.util.Map additionalParameters)
Generates source file based on given template file |
void |
generate(java.io.File jarFile,
java.lang.String templateName,
Model model,
java.io.File outputFile,
java.util.Map additionalParameters)
Generates source file based on given template from given jar file |
void |
generate(java.lang.String templateResourceName,
Model model,
java.io.File outputFile,
java.util.Map additionalParameters)
Generates source file based on given template from class path |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ModelToSource create(Logger log)
public void generate(java.io.File jarFile, java.lang.String templateName, Model model, java.io.File outputFile, java.util.Map additionalParameters) throws TransformException
jarFile
- jar fle with templatestemplateName
- templte name inside jar filemodel
- model to generate source fromoutputFile
- output fileadditionalParameters
- additional templates parameters
TransformException
public void generate(java.lang.String templateResourceName, Model model, java.io.File outputFile, java.util.Map additionalParameters) throws TransformException
templateResourceName
- template file in classpathmodel
- outputFile
- additionalParameters
-
TransformException
public void generate(java.io.File templateFile, Model model, java.io.File outputFile, java.util.Map additionalParameters) throws TransformException
templateFile
- template filemodel
- outputFile
- additionalParameters
-
TransformException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |