/** | |
* Copyright (c)2020 CEA LIST, Committer Name, and others. | |
* | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License 2.0 | |
* which accompanies this distribution, and is available at | |
* https://www.eclipse.org/legal/epl-2.0/ | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
* | |
* Contributors: | |
* CEA LIST - Initial API and implementation | |
* Gabriel Pedroza (CEA LIST) gabriel.pedroza@cea.fr | |
* | |
*/ | |
package org.eclipse.papyrus.pdp4eng.designer.controller.api; | |
import org.eclipse.emf.common.command.Command; | |
import org.eclipse.emf.transaction.TransactionalEditingDomain; | |
import org.eclipse.papyrus.pdp4eng.designer.controller.internal.ModelTransfoFactoryImpl; | |
import org.eclipse.uml2.uml.Action; | |
import org.eclipse.uml2.uml.Activity; | |
import org.eclipse.uml2.uml.Element; | |
import org.eclipse.uml2.uml.OpaqueAction; | |
import org.eclipse.uml2.uml.Package; | |
/** | |
* this an implementation that must be used as API | |
* | |
*/ | |
public class ModelTransfoFactory implements IModelTransfo{ | |
private ModelTransfoFactoryImpl factoryImpl= new ModelTransfoFactoryImpl(); | |
@Override | |
public Command getAbstractionDataCommand(TransactionalEditingDomain domain, Element data) { | |
return factoryImpl.getAbstractionDataCommand(domain, data); | |
} | |
@Override | |
public Command getCreateProcessModelFromReq(TransactionalEditingDomain domain, Package owner,Activity ReqDFDSource) { | |
return factoryImpl.getCreateProcessModelFromReq(domain, owner, ReqDFDSource); | |
} | |
@Override | |
public Command getCallProcessToProcessCommand(TransactionalEditingDomain domain, OpaqueAction callProcess) { | |
return factoryImpl.getCallProcessToProcessCommand(domain, callProcess); | |
} | |
@Override | |
public Command getActionCallProcessToProcessCommand(TransactionalEditingDomain domain, Action actionCallProcess) { | |
// TODO Auto-generated method stub | |
return factoryImpl.getActionCallProcessToProcessCommand(domain, actionCallProcess); | |
} | |
@Override | |
public Command getAllCallProcessToProcessCommand(TransactionalEditingDomain domain, Activity activityDFD) { | |
// TODO Auto-generated method stub | |
return factoryImpl.getAllCallProcessToProcessCommand(domain, activityDFD); | |
} | |
@Override | |
public Command getApplyPDPbDProfileToActivityDFDCommand(TransactionalEditingDomain domain, Activity activityDFD) { | |
// TODO Auto-generated method stub | |
return factoryImpl.getApplyPDPbDProfileToActivityDFDCommand(domain, activityDFD); | |
} | |
@Override | |
public Command getInstantiateGDPRConsentPatternCommand(TransactionalEditingDomain domain, Activity process) { | |
// TODO Auto-generated method stub | |
return factoryImpl.getInstantiateGDPRConsentPatternCommand(domain, process); | |
} | |
@Override | |
public Command getInstantiateGDPRNotificationsPatternCommand(TransactionalEditingDomain domain, Activity process) { | |
// TODO Auto-generated method stub | |
return factoryImpl.getInstantiateGDPRNotificationsPatternCommand(domain, process); | |
} | |
} |