blob: 456e9ce4eddca49445cc3c8ae101c497b78f47a5 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2015-2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
package org.eclipse.mdm.apicopy.control;
import java.util.List;
import java.util.Map;
import org.eclipse.mdm.api.base.model.Entity;
public interface ApiCopyTask {
void copy(List<? extends Entity> entities);
/**
* Setting a optional mapping of source unit names to target unit names
*
* @param unitMapping key = source unit name, value = target unit name
*/
void setUnitMapping(Map<String, String> unitMapping);
/**
* Setting a optional mapping of source quantity names to target quantity names
*
* @param quantityMapping key = source quantity name, value = target quantity
* name
*/
void setQuantityMapping(Map<String, String> quantityMapping);
/**
* switch on/off the overwrite mode
*
* @param overwrite true if values of existing elements (excluding Project and
* Pool) should be overwritten, false otherwise
*/
void overwriteExistingElements(boolean overwrite);
}