Class EMFTVMTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CompileTask, LoadModelTask, RegisterMetamodelTask, RunTask, SaveModelTask

public abstract class EMFTVMTask extends org.apache.tools.ant.Task
General superclass for EMFTVM Ant tasks.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The EMFTVM ResourceSet reference from within Ant.

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    Returns the loaded metamodel with the given
    Returns the loaded model with the given
    org.eclipse.emf.ecore.resource.ResourceSet
    Returns the ResourceSet object for this project.
    protected abstract void
    Performs the actual execution.
    void
    setModel(String name, Model model)
    Sets a reference to the model by name.

    Methods inherited from class org.apache.tools.ant.Task

    bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RESOURCE_SET

      public static final String RESOURCE_SET
      The EMFTVM ResourceSet reference from within Ant.
      See Also:
  • Constructor Details

    • EMFTVMTask

      public EMFTVMTask()
  • Method Details

    • getResourceSet

      public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
      Returns the ResourceSet object for this project.
      Returns:
      the ResourceSet object for this project.
    • getModel

      public Model getModel(String name)
      Returns the loaded model with the given
      name
      .
      Parameters:
      name - the model name
      Returns:
      the loaded model with the given
      name
    • getMetamodel

      public Metamodel getMetamodel(String name)
      Returns the loaded metamodel with the given
      name
      .
      Parameters:
      name - the metamodel name
      Returns:
      the loaded metamodel with the given
      name
    • setModel

      public void setModel(String name, Model model)
      Sets a reference to the model by name.
      Parameters:
      name - the model name
      model - the model
    • execute

      public final void execute() throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • innerExecute

      protected abstract void innerExecute() throws Exception
      Performs the actual execution.
      Throws:
      Exception