com.ashridgetech.jamda.config
Class Jamda

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--com.ashridgetech.jamda.config.Jamda

public class Jamda
extends org.apache.tools.ant.Task

The Ant Task for running Jamda.

Author:
Paul Boocock version 1.0

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

DEFAULT_OUTPUT_FILENAME

public static final java.lang.String DEFAULT_OUTPUT_FILENAME
See Also:
Constant Field Values
Constructor Detail

Jamda

public Jamda()
Method Detail

setInputFile

public void setInputFile(java.io.File inputFile)
Set the name of the XMI input file.

Parameters:
inputFile - the path to the input file

setOutputFile

public void setOutputFile(java.io.File outputFile)
Set the name of the output file that contains a record of the transformations applied

Parameters:
outputFile - the path to the output file

setStylesheet

public void setStylesheet(java.io.File stylesheet)
Set the name of the stylesheet file that is used to process the XMI input file

Parameters:
stylesheet - the path to the stylesheet file

setLog4jProperties

public void setLog4jProperties(java.io.File log4jProperties)
Set the name of the log4j properties file used to set up the log4j configuration


addTransformer

public void addTransformer(ModelTransformerSpec spec)
Add a transformer element to this task.

Parameters:
spec - the specification for the ModelTransformer required

addElementTransformer

public void addElementTransformer(BasicTransformerSpec spec)
Add an elementTransformer element to this task.

Parameters:
spec - the specification for the BasicTransformer required

addCodeGen

public void addCodeGen(CodeGenTransformerSpec spec)
Add a codeGen element to this task.

Parameters:
spec - the specification for the CodeGenTransformer required

getTransformation

public Transformation getTransformation()
                                 throws org.apache.tools.ant.BuildException
Get the Transformation for this configuration.

org.apache.tools.ant.BuildException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute the task by running the transformation.

Overrides:
execute in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException

log

public 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.

Overrides:
log in class org.apache.tools.ant.Task
Parameters:
msg - The message to be logged. Should not be null.


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.