org.eclipse.emf.emfstore.internal.server.model.versioning.impl
Class VersionImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.emfstore.internal.server.model.versioning.impl.VersionImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Version

public class VersionImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements Version

An implementation of the model object ' Version'.

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 Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
static String CHANGEPACKAGES_SEGMENT
          The EMFStore URI segment for a changepackage.
static String FILE_EXTENSION_CHANGEPACKAGE
          File extension for main file: emfstore change package.
static String FILE_EXTENSION_PROJECTSTATE
          File extension for main file: emfstore project state.
static String FILE_PREFIX_CHANGEPACKAGE
          File prefix for file: changepackage.
static String FILE_PREFIX_PROJECTSTATE
          File prefix for file: projectstate.
static String PROJECTSTATES_SEGMENT
          The EMFStore URI segment for a projectstate.
 
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
 Version basicGetAncestorVersion()
           
 LogMessage basicGetLogMessage()
           
 Version basicGetNextVersion()
           
 Version basicGetPreviousVersion()
           
 PrimaryVersionSpec basicGetPrimarySpec()
           
 org.eclipse.emf.common.notify.NotificationChain basicSetAncestorVersion(Version newAncestorVersion, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetLogMessage(LogMessage newLogMessage, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetNextVersion(Version newNextVersion, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetPreviousVersion(Version newPreviousVersion, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetPrimarySpec(PrimaryVersionSpec newPrimarySpec, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
 void eUnset(int featureID)
           
 Version getAncestorVersion()
           
 org.eclipse.emf.common.util.EList<Version> getBranchedVersions()
           
 ChangePackage getChanges()
          Allows to retrieve the ChangePackage associated with this version.
 LogMessage getLogMessage()
           
 org.eclipse.emf.common.util.EList<Version> getMergedFromVersion()
           
 org.eclipse.emf.common.util.EList<Version> getMergedToVersion()
           
 Version getNextVersion()
           
 Version getPreviousVersion()
           
 PrimaryVersionSpec getPrimarySpec()
           
 Project getProjectState()
          Allows to retrieve the project state associated with this version.
 org.eclipse.emf.common.util.EList<TagVersionSpec> getTagSpecs()
           
 void setAncestorVersion(Version newAncestorVersion)
           
 void setChangeResource(org.eclipse.emf.ecore.resource.Resource resource)
          Allows for setting the resource containing the changePackage the getChanges()-method is to return.
 void setLogMessage(LogMessage newLogMessage)
           
 void setNextVersion(Version newNextVersion)
           
 void setPreviousVersion(Version newPreviousVersion)
           
 void setPrimarySpec(PrimaryVersionSpec newPrimarySpec)
           
 void setProjectStateResource(org.eclipse.emf.ecore.resource.Resource resource)
          Allows for setting the resource containing the project state the getProjectState()-method is to return.
 
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, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset, toString
 
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.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

FILE_EXTENSION_PROJECTSTATE

public static final String FILE_EXTENSION_PROJECTSTATE
File extension for main file: emfstore project state.

See Also:
Constant Field Values

FILE_EXTENSION_CHANGEPACKAGE

public static final String FILE_EXTENSION_CHANGEPACKAGE
File extension for main file: emfstore change package.

See Also:
Constant Field Values

FILE_PREFIX_CHANGEPACKAGE

public static final String FILE_PREFIX_CHANGEPACKAGE
File prefix for file: changepackage.

See Also:
Constant Field Values

FILE_PREFIX_PROJECTSTATE

public static final String FILE_PREFIX_PROJECTSTATE
File prefix for file: projectstate.

See Also:
Constant Field Values

CHANGEPACKAGES_SEGMENT

public static final String CHANGEPACKAGES_SEGMENT
The EMFStore URI segment for a changepackage.

See Also:
Constant Field Values

PROJECTSTATES_SEGMENT

public static final String PROJECTSTATES_SEGMENT
The EMFStore URI segment for a projectstate.

See Also:
Constant Field Values
Method Detail

getPrimarySpec

public PrimaryVersionSpec getPrimarySpec()

Specified by:
getPrimarySpec in interface Version
Returns:
the value of the 'Primary Spec' containment reference.
See Also:
Version.setPrimarySpec(PrimaryVersionSpec), VersioningPackage.getVersion_PrimarySpec()

basicGetPrimarySpec

public PrimaryVersionSpec basicGetPrimarySpec()


basicSetPrimarySpec

public org.eclipse.emf.common.notify.NotificationChain basicSetPrimarySpec(PrimaryVersionSpec newPrimarySpec,
                                                                           org.eclipse.emf.common.notify.NotificationChain msgs)


setPrimarySpec

public void setPrimarySpec(PrimaryVersionSpec newPrimarySpec)

Specified by:
setPrimarySpec in interface Version
Parameters:
newPrimarySpec - the new value of the 'Primary Spec' containment reference.
See Also:
Version.getPrimarySpec()

getTagSpecs

public org.eclipse.emf.common.util.EList<TagVersionSpec> getTagSpecs()

Specified by:
getTagSpecs in interface Version
Returns:
the value of the 'Tag Specs' containment reference list.
See Also:
VersioningPackage.getVersion_TagSpecs()

getNextVersion

public Version getNextVersion()

Specified by:
getNextVersion in interface Version
Returns:
the value of the 'Next Version' reference.
See Also:
Version.setNextVersion(Version), VersioningPackage.getVersion_NextVersion(), Version.getPreviousVersion()

basicGetNextVersion

public Version basicGetNextVersion()


basicSetNextVersion

public org.eclipse.emf.common.notify.NotificationChain basicSetNextVersion(Version newNextVersion,
                                                                           org.eclipse.emf.common.notify.NotificationChain msgs)


setNextVersion

public void setNextVersion(Version newNextVersion)

Specified by:
setNextVersion in interface Version
Parameters:
newNextVersion - the new value of the 'Next Version' reference.
See Also:
Version.getNextVersion()

getPreviousVersion

public Version getPreviousVersion()

Specified by:
getPreviousVersion in interface Version
Returns:
the value of the 'Previous Version' reference.
See Also:
Version.setPreviousVersion(Version), VersioningPackage.getVersion_PreviousVersion(), Version.getNextVersion()

basicGetPreviousVersion

public Version basicGetPreviousVersion()


basicSetPreviousVersion

public org.eclipse.emf.common.notify.NotificationChain basicSetPreviousVersion(Version newPreviousVersion,
                                                                               org.eclipse.emf.common.notify.NotificationChain msgs)


setPreviousVersion

public void setPreviousVersion(Version newPreviousVersion)

Specified by:
setPreviousVersion in interface Version
Parameters:
newPreviousVersion - the new value of the 'Previous Version' reference.
See Also:
Version.getPreviousVersion()

getLogMessage

public LogMessage getLogMessage()

Specified by:
getLogMessage in interface Version
Returns:
the value of the 'Log Message' containment reference.
See Also:
Version.setLogMessage(LogMessage), VersioningPackage.getVersion_LogMessage()

basicGetLogMessage

public LogMessage basicGetLogMessage()


basicSetLogMessage

public org.eclipse.emf.common.notify.NotificationChain basicSetLogMessage(LogMessage newLogMessage,
                                                                          org.eclipse.emf.common.notify.NotificationChain msgs)


setLogMessage

public void setLogMessage(LogMessage newLogMessage)

Specified by:
setLogMessage in interface Version
Parameters:
newLogMessage - the new value of the 'Log Message' containment reference.
See Also:
Version.getLogMessage()

getAncestorVersion

public Version getAncestorVersion()

Specified by:
getAncestorVersion in interface Version
Returns:
the value of the 'Ancestor Version' reference.
See Also:
Version.setAncestorVersion(Version), VersioningPackage.getVersion_AncestorVersion(), Version.getBranchedVersions()

basicGetAncestorVersion

public Version basicGetAncestorVersion()


basicSetAncestorVersion

public org.eclipse.emf.common.notify.NotificationChain basicSetAncestorVersion(Version newAncestorVersion,
                                                                               org.eclipse.emf.common.notify.NotificationChain msgs)


setAncestorVersion

public void setAncestorVersion(Version newAncestorVersion)

Specified by:
setAncestorVersion in interface Version
Parameters:
newAncestorVersion - the new value of the 'Ancestor Version' reference.
See Also:
Version.getAncestorVersion()

getBranchedVersions

public org.eclipse.emf.common.util.EList<Version> getBranchedVersions()

Specified by:
getBranchedVersions in interface Version
Returns:
the value of the 'Branched Versions' reference list.
See Also:
VersioningPackage.getVersion_BranchedVersions(), Version.getAncestorVersion()

getMergedToVersion

public org.eclipse.emf.common.util.EList<Version> getMergedToVersion()

Specified by:
getMergedToVersion in interface Version
Returns:
the value of the 'Merged To Version' reference list.
See Also:
VersioningPackage.getVersion_MergedToVersion(), Version.getMergedFromVersion()

getMergedFromVersion

public org.eclipse.emf.common.util.EList<Version> getMergedFromVersion()

Specified by:
getMergedFromVersion in interface Version
Returns:
the value of the 'Merged From Version' reference list.
See Also:
VersioningPackage.getVersion_MergedFromVersion(), Version.getMergedToVersion()

eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eGet

public 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,
                 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

getProjectState

public Project getProjectState()
Description copied from interface: Version
Allows to retrieve the project state associated with this version.

Specified by:
getProjectState in interface Version
Returns:
the project state

getChanges

public ChangePackage getChanges()
Description copied from interface: Version
Allows to retrieve the ChangePackage associated with this version.

Specified by:
getChanges in interface Version
Returns:
the changes

setChangeResource

public void setChangeResource(org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface: Version
Allows for setting the resource containing the changePackage the getChanges()-method is to return. The resource will be removed from its resourceSet if it is contained in one.

Specified by:
setChangeResource in interface Version
Parameters:
resource - the new change resource

setProjectStateResource

public void setProjectStateResource(org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface: Version
Allows for setting the resource containing the project state the getProjectState()-method is to return. The resource will be removed from its resourceSet if it is contained in one.

Specified by:
setProjectStateResource in interface Version
Parameters:
resource - the new project state resource


Copyright © 2015. All Rights Reserved.