/** * <copyright> * * Copyright (c) 2010-2016 Thales Global Services S.A.S. * 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: * Thales Global Services S.A.S. - initial API and implementation * * </copyright> */ package org.eclipse.emf.diffmerge.ui.specification; /** * A factory for comparison methods. * @author Olivier Constant */ public interface IComparisonMethodFactory extends IOverridableFactory { /** * Create and return a comparison method for the given scope definitions * @param leftScopeSpec_p a non-null scope definition * @param rightScopeSpec_p a non-null scope definition * @param ancestorScopeSpec_p an optional scope definition * @return a non-null comparison method if this factory is applicable to the entry points * of the given scope definitions */ IComparisonMethod createComparisonMethod(IModelScopeDefinition leftScopeSpec_p, IModelScopeDefinition rightScopeSpec_p, IModelScopeDefinition ancestorScopeSpec_p); /** * Return whether this factory is applicable to the given scope definitions * @param leftScopeSpec_p a non-null scope definition * @param rightScopeSpec_p a non-null scope definition * @param ancestorScopeSpec_p an optional scope definition */ boolean isApplicableTo(IModelScopeDefinition leftScopeSpec_p, IModelScopeDefinition rightScopeSpec_p, IModelScopeDefinition ancestorScopeSpec_p); }