Class EMFTVMTask

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String RESOURCE_SET
      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
      EMFTVMTask()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Metamodel getMetamodel​(java.lang.String name)
      Returns the loaded metamodel with the given
      Model getModel​(java.lang.String name)
      Returns the loaded model with the given
      org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
      Returns the ResourceSet object for this project.
      protected abstract void innerExecute()
      Performs the actual execution.
      void setModel​(java.lang.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 Detail

      • RESOURCE_SET

        public static final java.lang.String RESOURCE_SET
        The EMFTVM ResourceSet reference from within Ant.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EMFTVMTask

        public EMFTVMTask()
    • Method Detail

      • 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​(java.lang.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​(java.lang.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​(java.lang.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 java.lang.Exception
        Performs the actual execution.
        Throws:
        java.lang.Exception