Interface SCMOperator<T>

  • All Superinterfaces:
    org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
    All Known Implementing Classes:
    GitSCMOperator, SCMOperatorImpl

    public interface SCMOperator<T>
    extends org.eclipse.emf.ecore.EObject
    A representation of the model object 'SCM Operator'. Operator of Source Code Management system.

    The following features are supported:

    See Also:
    ClassMakerPackage.getSCMOperator()
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MASTER_BRANCH  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(java.lang.String filepattern)
      void checkout​(java.lang.String branch, java.lang.String commitId, boolean forced)
      void checkoutOrphan​(java.lang.String branch, long timestamp)
      java.lang.String commit​(java.lang.String commitMessage)
      long decodeTimestamp​(java.lang.String commitMessage)
      org.osgi.framework.Version decodeVersion​(java.lang.String commitMessage)
      void deleteProject()
      java.lang.String encodeCommitMessage​(State state)
      java.lang.String getProjectName()
      Returns the value of the 'Project Name' attribute.
      SCMRegistry<T> getRegistry()
      Returns the value of the 'Registry' reference.
      T getRepositorySCM()
      void setProjectName​(java.lang.String value)
      Sets the value of the 'Project Name' attribute.
      void setRegistry​(SCMRegistry<T> value)
      Sets the value of the 'Registry' reference.
      void ungetRepositorySCM()
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
    • Method Detail

      • getProjectName

        java.lang.String getProjectName()
        Returns the value of the 'Project Name' attribute. The default value is "".

        If the meaning of the 'Project Name' attribute isn't clear, there really should be more of a description here...

        A name of the IProject contained in SCM repo.
        Returns:
        the value of the 'Project Name' attribute.
        See Also:
        setProjectName(String), ClassMakerPackage.getSCMOperator_ProjectName()
      • setProjectName

        void setProjectName​(java.lang.String value)
        Sets the value of the 'Project Name' attribute.
        Parameters:
        value - the new value of the 'Project Name' attribute.
        See Also:
        getProjectName()
      • setRegistry

        void setRegistry​(SCMRegistry<T> value)
        Sets the value of the 'Registry' reference.
        Parameters:
        value - the new value of the 'Registry' reference.
        See Also:
        getRegistry()
      • getRepositorySCM

        T getRepositorySCM()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • ungetRepositorySCM

        void ungetRepositorySCM()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • add

        void add​(java.lang.String filepattern)
          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • commit

        java.lang.String commit​(java.lang.String commitMessage)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • decodeTimestamp

        long decodeTimestamp​(java.lang.String commitMessage)
      • decodeVersion

        org.osgi.framework.Version decodeVersion​(java.lang.String commitMessage)
      • encodeCommitMessage

        java.lang.String encodeCommitMessage​(State state)
      • deleteProject

        void deleteProject()
      • checkout

        void checkout​(java.lang.String branch,
                      java.lang.String commitId,
                      boolean forced)
               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkoutOrphan

        void checkoutOrphan​(java.lang.String branch,
                            long timestamp)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception