blob: 48ac76ec22bd9182d4f9b7eca4ac6e5940d04aa1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012-2013 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Edgar Mueller
******************************************************************************/
package org.eclipse.emf.emfstore.internal.server.model.impl.api;
import org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl;
import org.eclipse.emf.emfstore.internal.server.model.versioning.BranchInfo;
import org.eclipse.emf.emfstore.server.model.ESBranchInfo;
import org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec;
/**
* Mapping between {@link ESBranchInfo} and {@link BranchInfo}.
*
* @author emueller
*
*/
public class ESBranchInfoImpl extends AbstractAPIImpl<ESBranchInfo, BranchInfo> implements ESBranchInfo {
/**
* Constructor.
*
* @param branchInfo
* the delegate
*/
public ESBranchInfoImpl(BranchInfo branchInfo) {
super(branchInfo);
}
/**
*
* {@inheritDoc}
*
* @see org.eclipse.emf.emfstore.server.model.ESBranchInfo#getName()
*/
public String getName() {
return toInternalAPI().getName();
}
/**
*
* {@inheritDoc}
*
* @see org.eclipse.emf.emfstore.server.model.ESBranchInfo#getHead()
*/
public ESPrimaryVersionSpec getHead() {
return toInternalAPI().getHead().toAPI();
}
/**
*
* {@inheritDoc}
*
* @see org.eclipse.emf.emfstore.server.model.ESBranchInfo#getSource()
*/
public ESPrimaryVersionSpec getSource() {
return toInternalAPI().getSource().toAPI();
}
}