|
|||||||||||
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.ashridgetech.jamda.config.Jamda
The Ant Task for running Jamda.
Field Summary | |
static java.lang.String |
DEFAULT_OUTPUT_FILENAME
|
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 | |
Jamda()
|
Method Summary | |
void |
addCodeGen(CodeGenTransformerSpec spec)
Add a codeGen element to this task. |
void |
addElementTransformer(BasicTransformerSpec spec)
Add an elementTransformer element to this task. |
void |
addTransformer(ModelTransformerSpec spec)
Add a transformer element to this task. |
void |
execute()
Execute the task by running the transformation. |
Transformation |
getTransformation()
Get the Transformation for this configuration. |
void |
log(java.lang.String msg)
Logs a message with the default (INFO) priority, if attached to a ll#Project#, otherwise prints to System.out. |
void |
setInputFile(java.io.File inputFile)
Set the name of the XMI input file. |
void |
setLog4jProperties(java.io.File log4jProperties)
Set the name of the log4j properties file used to set up the log4j configuration |
void |
setOutputFile(java.io.File outputFile)
Set the name of the output file that contains a record of the transformations applied |
void |
setStylesheet(java.io.File stylesheet)
Set the name of the stylesheet file that is used to process the XMI input file |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
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 java.lang.String DEFAULT_OUTPUT_FILENAME
Constructor Detail |
public Jamda()
Method Detail |
public void setInputFile(java.io.File inputFile)
inputFile
- the path to the input filepublic void setOutputFile(java.io.File outputFile)
outputFile
- the path to the output filepublic void setStylesheet(java.io.File stylesheet)
stylesheet
- the path to the stylesheet filepublic void setLog4jProperties(java.io.File log4jProperties)
public void addTransformer(ModelTransformerSpec spec)
transformer
element to this task.
spec
- the specification for the ModelTransformer
requiredpublic void addElementTransformer(BasicTransformerSpec spec)
elementTransformer
element to this task.
spec
- the specification for the BasicTransformer
requiredpublic void addCodeGen(CodeGenTransformerSpec spec)
codeGen
element to this task.
spec
- the specification for the CodeGenTransformer
requiredpublic Transformation getTransformation() throws org.apache.tools.ant.BuildException
Transformation
for this configuration.
org.apache.tools.ant.BuildException
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void log(java.lang.String msg)
log
in class org.apache.tools.ant.Task
msg
- The message to be logged. Should not be null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |