|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.tool.codegen.TemplateDrivenGenerator | +--org.enhydra.tool.codegen.ProjectGenerator
Field Summary |
Fields inherited from class org.enhydra.tool.codegen.TemplateDrivenGenerator |
res |
Fields inherited from interface org.enhydra.tool.codegen.Constants |
CLIENT_SUFFIX, CONTENT_HTML, CONTENT_WML, DIR_AT_PACKAGE_DIR_AT, DIR_INPUT, DIR_LIB, DIR_MEDIA, DIR_OUTPUT, DIR_PRESENTATION, DIR_RESOURCES, DIR_SRC, DIR_TEMPLATE, DIR_TOOL, FILE_BUILD_XML, FILE_ENHYDRA_JAR, FILE_MAKEFILE, FILE_README_HTML, FILE_RUN_BAT_IN, FILE_RUN_IN, SYS_JAVA_VENDOR, SYS_JAVA_VERSION, SYS_USER_HOME, TAB4, TYPE_BAT, TYPE_CONF, TYPE_HTML, TYPE_IN, TYPE_JAVA, TYPE_MK, TYPE_TEMPLATE, TYPE_WML, TYPE_XML, XMLC_DEFAULT, XMLC_SUFFIX |
Constructor Summary | |
ProjectGenerator()
|
Method Summary | |
TemplateFilter |
createCopyFilter(TemplateTool tool)
|
Replacement[] |
createReplacementsForDirectory(PathHandle path)
Method declaration |
TemplateFilter |
createTemplateFilter(TemplateTool tool)
|
java.io.File[] |
generate()
Generate application files from a set of templates. |
java.lang.String[] |
getAddinSteps()
Get steps required to build the project with the an IDE Addin. |
protected abstract java.lang.String[] |
getDefaultAddinSteps()
|
protected abstract java.lang.String[] |
getDefaultShellSteps()
|
java.lang.String |
getDestination()
|
java.lang.String |
getJavaPath()
|
java.lang.String[] |
getOutputExcludes()
|
java.lang.String |
getProjectSourcePath()
Get the path where Java source files were generated. |
java.lang.String[] |
getShellSteps()
Get steps required to build the project from a unix shell. |
void |
initReplacementSet()
Method declaration |
void |
onTemplate(TemplateEvent event)
|
void |
setAddinSteps(java.lang.String[] steps)
Set the steps required to build the project from within an IDE. |
void |
setJavaPath(java.lang.String p)
|
void |
setProperties(java.util.Properties p)
Set CodeGen customization properties. |
void |
setShellSteps(java.lang.String[] steps)
Set the steps required to build the project from a unix shell. |
void |
storeProperties()
Method declaration |
Methods inherited from class org.enhydra.tool.codegen.TemplateDrivenGenerator |
getInputIncludes, getOptionSet, getProperties, getReplacementSet, getTemplateRoot, isEcho, isOverwrite, isSwing, setEcho, setOptionSet, setOverwrite, setReplacementSet, setSwing, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.enhydra.tool.codegen.Generator |
getCommandName, getDescription, getDisplayName, getWizardPanels, getWizardTitle |
Constructor Detail |
public ProjectGenerator()
Method Detail |
public java.lang.String[] getOutputExcludes()
public java.io.File[] generate() throws GeneratorException
TemplateDrivenGenerator
generate
in interface Generator
generate
in class TemplateDrivenGenerator
GeneratorException
public void storeProperties()
TemplateDrivenGenerator
storeProperties
in class TemplateDrivenGenerator
public void setProperties(java.util.Properties p) throws GeneratorException
TemplateDrivenGenerator
setProperties
in interface Generator
setProperties
in class TemplateDrivenGenerator
GeneratorException
public TemplateFilter createCopyFilter(TemplateTool tool) throws GeneratorException
createCopyFilter
in class TemplateDrivenGenerator
GeneratorException
public TemplateFilter createTemplateFilter(TemplateTool tool) throws GeneratorException
createTemplateFilter
in class TemplateDrivenGenerator
GeneratorException
public java.lang.String getDestination() throws GeneratorException
getDestination
in class TemplateDrivenGenerator
GeneratorException
public void setJavaPath(java.lang.String p)
public java.lang.String getJavaPath()
public void setShellSteps(java.lang.String[] steps)
setShellSteps
in interface Generator
steps
- An array of strings, each string will be inserted into
a readme.html file as numbered step for building the
project from a unix shell.public java.lang.String[] getShellSteps()
getShellSteps
in interface Generator
public java.lang.String[] getAddinSteps()
getAddinSteps
in interface Generator
public void setAddinSteps(java.lang.String[] steps)
setAddinSteps
in interface Generator
steps
- An array of strings, each string will be inserted into
a readme.html file as numbered step for building the
project within an IDE.public java.lang.String getProjectSourcePath() throws GeneratorException
GeneratorException
public void initReplacementSet() throws GeneratorException
initReplacementSet
in class TemplateDrivenGenerator
GeneratorException
public void onTemplate(TemplateEvent event)
onTemplate
in interface TemplateListener
protected abstract java.lang.String[] getDefaultShellSteps()
protected abstract java.lang.String[] getDefaultAddinSteps()
public Replacement[] createReplacementsForDirectory(PathHandle path) throws GeneratorException
createReplacementsForDirectory
in class TemplateDrivenGenerator
GeneratorException
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |