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

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

public class ESBranchInfoImpl
extends AbstractAPIImpl<ESBranchInfo,BranchInfo>
implements ESBranchInfo

Mapping between ESBranchInfo and BranchInfo.

Author:
emueller

Constructor Summary
ESBranchInfoImpl(BranchInfo branchInfo)
          Constructor.
 
Method Summary
 ESPrimaryVersionSpec getHead()
          Returns the HEAD version of this branch.
 String getName()
          Returns the name of the branch.
 ESPrimaryVersionSpec getSource()
           Returns the source version of this branch.
 
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

ESBranchInfoImpl

public ESBranchInfoImpl(BranchInfo branchInfo)
Constructor.

Parameters:
branchInfo - the delegate
Method Detail

getName

public String getName()
Returns the name of the branch.

Specified by:
getName in interface ESBranchInfo
Returns:
the name of the branch
See Also:
ESBranchInfo.getName()

getHead

public ESPrimaryVersionSpec getHead()
Returns the HEAD version of this branch.

Specified by:
getHead in interface ESBranchInfo
Returns:
the ESPrimaryVersionSpec of the HEAD version of this branch
See Also:
ESBranchInfo.getHead()

getSource

public ESPrimaryVersionSpec getSource()

Returns the source version of this branch.

The source version of a branch is the version this branch was created from.

Specified by:
getSource in interface ESBranchInfo
Returns:
the ESPrimaryVersionSpec of the source version of this branch
See Also:
ESBranchInfo.getSource()


Copyright © 2015. All Rights Reserved.