public class PreviousEngine extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PreviousEngine.StopFileReachedException |
Constructor and Description |
---|
PreviousEngine() |
Modifier and Type | Method and Description |
---|---|
String |
enableDynaImports() |
String |
getCurrentAbstract()
Returns "abstract" if the current class is extended by the user, an empty string otherwise.
|
String |
getCurrentClass()
Java files (except test file) generated from velocity must use this method to get their class name.
|
String |
getCurrentClassWithout_() |
String |
getCurrentFullFilename() |
String |
getCurrentRootCast(String... generics) |
String |
getCurrentRootClass() |
com.jaxio.celerio.output.OutputResult |
getOutputResult() |
boolean |
isCurrentEnableDynamicImport() |
void |
processDynamicFile(Map<String,Object> context,
TemplatePack templatePack,
Template template) |
String |
setCurrentFilename(String filePath,
String filename,
String userDomainPath,
String generatedDomainPath)
In your velocity template, call this method to set the path and filename of the generated file.
|
void |
setOutputResult(com.jaxio.celerio.output.OutputResult outputResult) |
void |
stopFileGeneration() |
public String enableDynaImports()
public String setCurrentFilename(String filePath, String filename, String userDomainPath, String generatedDomainPath) throws Exception
filePath
- for example com.acme.myapp or com/acme/myappfilename
- for example for example MyClass.java or MyClassTest.javauserDomainPath
- for example src/main/java or src/test/javageneratedDomainPath
- for example src/main/generated-java or src/test/generated-javaIllegalArgumentException
- if file extension is not .java, .htm or .htmlException
public String getCurrentClass()
public String getCurrentRootClass()
public String getCurrentClassWithout_()
public String getCurrentAbstract()
public void processDynamicFile(Map<String,Object> context, TemplatePack templatePack, Template template) throws Exception
Exception
public void setOutputResult(com.jaxio.celerio.output.OutputResult outputResult)
public com.jaxio.celerio.output.OutputResult getOutputResult()
public void stopFileGeneration()
public String getCurrentFullFilename()
public boolean isCurrentEnableDynamicImport()
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.