org.eclipse.emf.emfstore.internal.server.model.impl.api
Class ESHistoryInfoImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESHistoryInfo,HistoryInfo>
      extended by org.eclipse.emf.emfstore.internal.server.model.impl.api.ESHistoryInfoImpl
All Implemented Interfaces:
InternalAPIDelegator<ESHistoryInfo,HistoryInfo>, ESHistoryInfo

public class ESHistoryInfoImpl
extends AbstractAPIImpl<ESHistoryInfo,HistoryInfo>
implements ESHistoryInfo

Mapping between ESHistoryInfo and HistoryInfo.

Author:
emueller

Constructor Summary
ESHistoryInfoImpl(HistoryInfo historyInfo)
          Constructor.
 
Method Summary
 ESChangePackage getChangePackage()
          Returns the ESChangePackage containing the changes associated with this history.
 ESLogMessage getLogMessage()
          Returns the ESLogMessage that was specified when a commit succeeded.
 List<ESPrimaryVersionSpec> getMergedFromSpecs()
          Returns an optional list of ESPrimaryVersionSpecs that identifies the versions this version was merged from.
 List<ESPrimaryVersionSpec> getMergedToSpecs()
          Returns an optional list of ESPrimaryVersionSpecs that identifies the versions this version was merged from.
 List<ESPrimaryVersionSpec> getNextSpecs()
          Returns a list of the ESPrimaryVersionSpecs that followed this version.
 ESPrimaryVersionSpec getPreviousSpec()
          Returns the ESPrimaryVersionSpec of the previous version.
 ESPrimaryVersionSpec getPrimarySpec()
          Returns the version the history information is associated with.
 List<ESTagVersionSpec> getTagSpecs()
          Returns the tag specifiers associated with this history.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl
equals, hashCode, toInternalAPI
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESHistoryInfoImpl

public ESHistoryInfoImpl(HistoryInfo historyInfo)
Constructor.

Parameters:
historyInfo - the delegate
Method Detail

getPrimarySpec

public ESPrimaryVersionSpec getPrimarySpec()
Returns the version the history information is associated with.

Specified by:
getPrimarySpec in interface ESHistoryInfo
Returns:
the ESPrimaryVersionSpec of the history information
See Also:
ESHistoryInfo.getPrimarySpec()

getNextSpecs

public List<ESPrimaryVersionSpec> getNextSpecs()
Returns a list of the ESPrimaryVersionSpecs that followed this version.

Specified by:
getNextSpecs in interface ESHistoryInfo
Returns:
a list containing the next ESPrimaryVersionSpecs
See Also:
ESHistoryInfo.getNextSpecs()

getPreviousSpec

public ESPrimaryVersionSpec getPreviousSpec()
Returns the ESPrimaryVersionSpec of the previous version.

Specified by:
getPreviousSpec in interface ESHistoryInfo
Returns:
the previous version
See Also:
ESHistoryInfo.getPreviousSpec()

getMergedFromSpecs

public List<ESPrimaryVersionSpec> getMergedFromSpecs()
Returns an optional list of ESPrimaryVersionSpecs that identifies the versions this version was merged from.

Specified by:
getMergedFromSpecs in interface ESHistoryInfo
Returns:
an optional list of branch versions this version was merged from
See Also:
ESHistoryInfo.getMergedFromSpecs()

getMergedToSpecs

public List<ESPrimaryVersionSpec> getMergedToSpecs()
Returns an optional list of ESPrimaryVersionSpecs that identifies the versions this version was merged from.

Specified by:
getMergedToSpecs in interface ESHistoryInfo
Returns:
an optional list of branch versions this version was merged from
See Also:
ESHistoryInfo.getMergedToSpecs()

getLogMessage

public ESLogMessage getLogMessage()
Returns the ESLogMessage that was specified when a commit succeeded.

Specified by:
getLogMessage in interface ESHistoryInfo
Returns:
the log message that is associated with this history information
See Also:
ESHistoryInfo.getLogMessage()

getTagSpecs

public List<ESTagVersionSpec> getTagSpecs()
Returns the tag specifiers associated with this history.

Specified by:
getTagSpecs in interface ESHistoryInfo
Returns:
a list of tag specifiers
See Also:
ESHistoryInfo.getTagSpecs()

getChangePackage

public ESChangePackage getChangePackage()
Returns the ESChangePackage containing the changes associated with this history.

Specified by:
getChangePackage in interface ESHistoryInfo
Returns:
the change package containing the changes.
See Also:
ESHistoryInfo.getChangePackage()


Copyright © 2015. All Rights Reserved.