Interface Revision

All Superinterfaces:
org.eclipse.emf.ecore.EObject, Item, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
RevisionImpl

public interface Revision extends Item
A representation of the model object 'Revision'. A revision of Contribution. Identified by Version.

The following features are supported:

See Also:
  • Field Details

    • VERSION_QUALIFIER_FORMAT

      static final DateFormat VERSION_QUALIFIER_FORMAT
  • Method Details

    • getState

      State getState()
      Returns the value of the 'State' reference.

      If the meaning of the 'State' reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'State' reference.
      See Also:
    • setState

      void setState(State value)
      Sets the value of the 'State' reference.
      Parameters:
      value - the new value of the 'State' reference.
      See Also:
    • getTimestamp

      long getTimestamp()
      Returns the value of the 'Timestamp' attribute.

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

      Returns:
      the value of the 'Timestamp' attribute.
      See Also:
    • setTimestamp

      void setTimestamp(long value)
      Sets the value of the 'Timestamp' attribute.
      Parameters:
      value - the new value of the 'Timestamp' attribute.
      See Also:
    • getStateHistory

      org.eclipse.emf.common.util.EMap<Long,State> getStateHistory()
      Returns the value of the 'State History' map. The key is of type Long, and the value is of type State,

      If the meaning of the 'State History' map isn't clear, there really should be more of a description here...

      A States history.
      Returns:
      the value of the 'State History' map.
      See Also:
    • getLatestTimestamp

      long getLatestTimestamp()
      Returns the value of the 'Latest Timestamp' attribute.

      Get latest time stamp from state history. If state history is empty, return value of default time stamp.

      Returns:
      the value of the 'Latest Timestamp' attribute.
      See Also:
    • getVersion

      org.osgi.framework.Version getVersion()
      Returns the value of the 'Version' attribute. A Version of the Item.
      Returns:
      the value of the 'Version' attribute.
      See Also:
    • setVersion

      void setVersion(org.osgi.framework.Version value)
      Sets the value of the 'Version' attribute.
      Parameters:
      value - the new value of the 'Version' attribute.
      See Also:
    • create

      void create(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
      Throws:
      org.eclipse.core.runtime.CoreException
    • checkout

      void checkout(long timestamp, String commitId)
    • checkout

      void checkout(long timestamp)
    • checkout

      void checkout(String commitId)
    • newState

      State newState()
    • delete

      void delete(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
      Throws:
      org.eclipse.core.runtime.CoreException
    • addAdapters

      void addAdapters(org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> adapters)
    • copyModel

      void copyModel(Revision from)