| /**
|
| * Copyright (c) 2011, 2019 Mia-Software and others.
|
| * All rights reserved. This program and the accompanying materials
|
| * are made available under the terms of the Eclipse Public License v2.0
|
| * which accompanies this distribution, and is available at
|
| * http://www.eclipse.org/legal/epl-v20.html
|
| *
|
| * Contributors:
|
| * Gabriel Barbier (Mia-Software) - initial API and implementation
|
| * Nicolas Bros (Mia-Software) - Bug 335003 - [Discoverer] : Existing Discoverers Refactoring based on new framework
|
| */ |
| package org.eclipse.modisco.usecase.modelfilter.methodcalls.methodcalls.impl;
|
|
|
| import org.eclipse.emf.ecore.EClass;
|
| import org.eclipse.emf.ecore.EObject;
|
| import org.eclipse.emf.ecore.EPackage;
|
|
|
| import org.eclipse.emf.ecore.impl.EFactoryImpl;
|
|
|
| import org.eclipse.emf.ecore.plugin.EcorePlugin;
|
|
|
| import org.eclipse.modisco.usecase.modelfilter.methodcalls.methodcalls.*;
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * An implementation of the model <b>Factory</b>.
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public class MethodcallsFactoryImpl extends EFactoryImpl implements MethodcallsFactory {
|
| /**
|
| * Creates the default factory implementation.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public static MethodcallsFactory init() {
|
| try {
|
| MethodcallsFactory theMethodcallsFactory = (MethodcallsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/MoDisco/MethodCalls/0.1.incubation/methodcalls");
|
| if (theMethodcallsFactory != null) {
|
| return theMethodcallsFactory;
|
| }
|
| }
|
| catch (Exception exception) {
|
| EcorePlugin.INSTANCE.log(exception);
|
| }
|
| return new MethodcallsFactoryImpl();
|
| }
|
|
|
| /**
|
| * Creates an instance of the factory.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public MethodcallsFactoryImpl() {
|
| super();
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| @Override
|
| public EObject create(EClass eClass) {
|
| switch (eClass.getClassifierID()) {
|
| case MethodcallsPackage.METHOD_CALL: return createMethodCall();
|
| case MethodcallsPackage.CALLS_MODEL: return createCallsModel();
|
| case MethodcallsPackage.CALL_NODE: return createCallNode();
|
| default:
|
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
| }
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public MethodCall createMethodCall() {
|
| MethodCallImpl methodCall = new MethodCallImpl();
|
| return methodCall;
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public CallsModel createCallsModel() {
|
| CallsModelImpl callsModel = new CallsModelImpl();
|
| return callsModel;
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public CallNode createCallNode() {
|
| CallNodeImpl callNode = new CallNodeImpl();
|
| return callNode;
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public MethodcallsPackage getMethodcallsPackage() {
|
| return (MethodcallsPackage)getEPackage();
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @deprecated
|
| * @generated
|
| */
|
| @Deprecated
|
| public static MethodcallsPackage getPackage() {
|
| return MethodcallsPackage.eINSTANCE;
|
| }
|
|
|
| } //MethodcallsFactoryImpl
|