Class SCMOperatorImpl<T>

  • All Implemented Interfaces:
    org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, SCMOperator<T>
    Direct Known Subclasses:
    GitSCMOperator

    public abstract class SCMOperatorImpl<T>
    extends org.eclipse.emf.ecore.impl.EObjectImpl
    implements SCMOperator<T>
    An implementation of the model object 'SCM Operator'. An API gateway.

    The following features are implemented:

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
      • Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject

        org.eclipse.emf.ecore.InternalEObject.EStore
    • Field Summary

      • Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

        ELAST_EOBJECT_FLAG
      • Fields inherited from interface org.eclipse.emf.ecore.InternalEObject

        EOPPOSITE_FEATURE_BASE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void add​(java.lang.String filepattern)
      SCMRegistry<T> basicGetRegistry()
      abstract void checkout​(java.lang.String branch, java.lang.String commitId, boolean forced)
      abstract void checkoutOrphan​(java.lang.String branch, long timestamp)
      abstract java.lang.String commit​(java.lang.String commitMessage)
      abstract long decodeTimestamp​(java.lang.String commitMessage)
      abstract org.osgi.framework.Version decodeVersion​(java.lang.String commitMessage)
      abstract void deleteProject()
      java.lang.Object eGet​(int featureID, boolean resolve, boolean coreType)
      boolean eIsSet​(int featureID)
      abstract java.lang.String encodeCommitMessage​(State state)
      void eSet​(int featureID, java.lang.Object newValue)
      void eUnset​(int featureID)
      java.lang.String getProjectName()
      SCMRegistry<T> getRegistry()
      abstract T getRepositorySCM()
      void setProjectName​(java.lang.String newProjectName)
      void setRegistry​(SCMRegistry<T> newRegistry)
      java.lang.String toString()
      abstract void ungetRepositorySCM()
      • Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

        eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
      • Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
      • Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        eNotificationRequired, eNotify
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • 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.ecore.InternalEObject

        eNotificationRequired
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
    • Method Detail

      • basicGetRegistry

        public SCMRegistry<T> basicGetRegistry()
      • getRepositorySCM

        public abstract T getRepositorySCM()
                                    throws java.lang.Exception
        Specified by:
        getRepositorySCM in interface SCMOperator<T>
        Throws:
        java.lang.Exception
      • ungetRepositorySCM

        public abstract void ungetRepositorySCM()
                                         throws java.lang.Exception
        Specified by:
        ungetRepositorySCM in interface SCMOperator<T>
        Throws:
        java.lang.Exception
      • add

        public abstract void add​(java.lang.String filepattern)
                          throws java.lang.Exception
        Specified by:
        add in interface SCMOperator<T>
        Throws:
        java.lang.Exception
      • commit

        public abstract java.lang.String commit​(java.lang.String commitMessage)
                                         throws java.lang.Exception
        Specified by:
        commit in interface SCMOperator<T>
        Throws:
        java.lang.Exception
      • decodeTimestamp

        public abstract long decodeTimestamp​(java.lang.String commitMessage)
        Specified by:
        decodeTimestamp in interface SCMOperator<T>
      • decodeVersion

        public abstract org.osgi.framework.Version decodeVersion​(java.lang.String commitMessage)
        Specified by:
        decodeVersion in interface SCMOperator<T>
      • checkout

        public abstract void checkout​(java.lang.String branch,
                                      java.lang.String commitId,
                                      boolean forced)
                               throws java.lang.Exception,
                                      java.io.IOException
        Specified by:
        checkout in interface SCMOperator<T>
        Parameters:
        branch - the branch name
        commitId - the commit identifier
        Throws:
        java.lang.Exception
        java.io.IOException
      • checkoutOrphan

        public abstract void checkoutOrphan​(java.lang.String branch,
                                            long timestamp)
                                     throws java.lang.Exception
        Specified by:
        checkoutOrphan in interface SCMOperator<T>
        Parameters:
        branch - the branch name
        commitId - the commit identifier
        Throws:
        java.lang.Exception
      • eGet

        public java.lang.Object eGet​(int featureID,
                                     boolean resolve,
                                     boolean coreType)
        Specified by:
        eGet in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eSet

        public void eSet​(int featureID,
                         java.lang.Object newValue)
        Specified by:
        eSet in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eUnset

        public void eUnset​(int featureID)
        Specified by:
        eUnset in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • eIsSet

        public boolean eIsSet​(int featureID)
        Specified by:
        eIsSet in interface org.eclipse.emf.ecore.InternalEObject
        Overrides:
        eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl