001/* 002 * Copyright c 2018 Rusi Popov, MDA Tools.net All rights reserved. 003 * 004 * This program and the accompanying materials are made available under the terms of the 005 * Eclipse Public License v2.0 which accompanies this distribution, and is available at 006 * http://www.eclipse.org/legal/epl-v20.html 007 */ 008package net.mdatools.modelant.core.operation.model; 009 010import javax.jmi.reflect.RefPackage; 011 012import net.mdatools.modelant.core.operation.model.transform.IdentityNameMapping; 013 014/** 015 * Copy a model to another extent. 016 * The copy operation is represented as a special case of copying model from/to 017 * the same metamodel.<pre> 018 * Usage: 019 * 020 * copy = new CopyModel(fromExtent) 021 * 022 * copy.execute(toExtent); 023 * </pre> 024 * @see CopyToMetaModel#execute(RefPackage) 025 * @author Rusi Popov (popovr@mdatools.net) 026 */ 027public class CopyModel extends CopyToMetaModel { 028 029 /** 030 * @param fromExtent not null 031 */ 032 public CopyModel(RefPackage fromExtent) { 033 super( fromExtent, new IdentityNameMapping() ); 034 } 035}