|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task com.legstar.codegen.CodeGenMake
public class CodeGenMake
This Ant task iteratively calls the Velocity template engine to create a list of artifacts described in an xml file. The xml file typically describes a target as a sequential list of steps. Each step is associated with a velocity template and produces an artifact. TODO describe the format of xml make in an xsd
Field Summary | |
---|---|
static String |
CODEGEN_STEP_XML_E
XML element representing a code generation step with a template. |
static String |
CODEGEN_TARGET_DIR_XML_A
XML attribute representing a code generation target directory. |
static String |
CODEGEN_TARGET_NAME_XML_A
XML attribute representing a code generation target name. |
static String |
CODEGEN_TARGET_XML_E
XML element representing a code generation target. |
static String |
CODEGEN_TEMPLATE_NAME_XML_A
XML attribute representing a code generation template name. |
static String |
CODEGEN_TEMPLATE_TARGET_CHARSETNAME_XML_A
XML attribute representing a code generation target character set. |
static String |
CODEGEN_TEMPLATE_TARGET_FILE_XML_A
XML attribute representing a code generation target file. |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
CodeGenMake()
|
Method Summary | |
---|---|
void |
execute()
|
String |
getCodeGenMakeFileName()
|
String |
getGeneratorName()
|
Object |
getModel()
|
String |
getModelName()
|
void |
init()
|
Document |
load(File makeFile)
Loads code generation make file from a serialized XML. |
void |
setCodeGenMakeFileName(String codeGenMakeFileName)
|
void |
setGeneratorName(String generatorName)
|
void |
setModel(Object model)
|
void |
setModelName(String modelName)
|
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CODEGEN_TARGET_XML_E
public static final String CODEGEN_TARGET_NAME_XML_A
public static final String CODEGEN_TARGET_DIR_XML_A
public static final String CODEGEN_STEP_XML_E
public static final String CODEGEN_TEMPLATE_NAME_XML_A
public static final String CODEGEN_TEMPLATE_TARGET_FILE_XML_A
public static final String CODEGEN_TEMPLATE_TARGET_CHARSETNAME_XML_A
Constructor Detail |
---|
public CodeGenMake()
Method Detail |
---|
public void init()
init
in class org.apache.tools.ant.Task
public void execute()
execute
in class org.apache.tools.ant.Task
public Document load(File makeFile) throws CodeGenMakeException
makeFile
- the serialized file
CodeGenMakeException
- if load failspublic String getCodeGenMakeFileName()
public void setCodeGenMakeFileName(String codeGenMakeFileName)
codeGenMakeFileName
- the code generation Make File name to setpublic String getModelName()
public void setModelName(String modelName)
modelName
- the model name to setpublic Object getModel()
public void setModel(Object model)
model
- the model to setpublic String getGeneratorName()
public void setGeneratorName(String generatorName)
generatorName
- the name of the calling generator to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |