Class ModelOutputTask


  • public class ModelOutputTask
    extends org.apache.tools.ant.Task
    Creates and runs a ModelOutput process to generate java or config files.
    Author:
    Richard Smith
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.File destDir  
      protected Model model  
      protected java.lang.String type  
      • 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

      Constructors 
      Constructor Description
      ModelOutputTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      void setDestDir​(java.io.File destDir)
      Sets the directory that output should be written to.
      void setModel​(java.lang.String modelName)
      Set the model to be used.
      void setType​(java.lang.String type)
      Set the type of model output required.
      • Methods inherited from class org.apache.tools.ant.Task

        getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, 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

      • destDir

        protected java.io.File destDir
      • model

        protected Model model
      • type

        protected java.lang.String type
    • Constructor Detail

      • ModelOutputTask

        public ModelOutputTask()
    • Method Detail

      • setDestDir

        public void setDestDir​(java.io.File destDir)
        Sets the directory that output should be written to.
        Parameters:
        destDir - the directory location
      • setType

        public void setType​(java.lang.String type)
        Set the type of model output required.
        Parameters:
        type - the type of output
      • setModel

        public void setModel​(java.lang.String modelName)
        Set the model to be used.
        Parameters:
        modelName - the model to be used
      • execute

        public void execute()
        Overrides:
        execute in class org.apache.tools.ant.Task