Class SaveModelTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class SaveModelTask
    extends EMFTVMTask
    Saves a Model.
    • Field Summary

      • 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
      SaveModelTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the model name.
      java.lang.String getUri()
      Returns the model URI.
      java.lang.String getWspath()
      Returns the workspace path.
      protected void innerExecute()
      Performs the actual execution.
      boolean isDerived()
      Returns whether this model file is derived.
      protected void saveToNsuri​(java.lang.String uri)
      Saves model to
      protected void saveToURI​(org.eclipse.emf.common.util.URI uri)
      Saves model to EMF URI.
      protected void saveToWspath​(java.lang.String wspath)
      Saves model to
      void setDerived​(boolean derived)
      Sets this model file as derived.
      void setName​(java.lang.String name)
      Sets the model name.
      void setUri​(java.lang.String uri)
      Sets the model URI.
      void setWspath​(java.lang.String wspath)
      Sets the workspace path.
      • 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
    • Constructor Detail

      • SaveModelTask

        public SaveModelTask()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Sets the model name.
        Parameters:
        name - the name to set
      • getName

        public java.lang.String getName()
        Returns the model name.
        Returns:
        the name
      • setWspath

        public void setWspath​(java.lang.String wspath)
        Sets the workspace path.
        Parameters:
        wspath - the wspath to set
      • getWspath

        public java.lang.String getWspath()
        Returns the workspace path.
        Returns:
        the wspath
      • setUri

        public void setUri​(java.lang.String uri)
        Sets the model URI.
        Parameters:
        uri - the uri to set
      • getUri

        public java.lang.String getUri()
        Returns the model URI.
        Returns:
        the uri
      • setDerived

        public void setDerived​(boolean derived)
        Sets this model file as derived.
        Parameters:
        derived - the derived to set
      • isDerived

        public boolean isDerived()
        Returns whether this model file is derived.
        Returns:
        the derived
      • innerExecute

        protected void innerExecute()
                             throws java.lang.Exception
        Performs the actual execution.
        Specified by:
        innerExecute in class EMFTVMTask
        Throws:
        java.lang.Exception
      • saveToNsuri

        protected void saveToNsuri​(java.lang.String uri)
        Saves model to
        uri
        .
        Parameters:
        uri - the EMF URI
      • saveToWspath

        protected void saveToWspath​(java.lang.String wspath)
        Saves model to
        wspath
        .
        Parameters:
        wspath - the workspace path
      • saveToURI

        protected void saveToURI​(org.eclipse.emf.common.util.URI uri)
        Saves model to EMF URI.
        Parameters:
        uri - the EMF URI