blob: 7241df42d843aba6f9ab3adcf40821cd1eaacd9c [file] [log] [blame]
/**
* *******************************************************************************
* Copyright (c) 2009, 2011 Mia-Software.
* 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:
* Gabriel Barbier (Mia-Software) - initial API and implementation
* Fabien Giquel (Mia-Software) - Bug 339720 : MoDisco Discoverers (infra + techno) API clean
*
* *******************************************************************************
*
* $Id$
*/
package org.eclipse.gmt.modisco.usecase.modelfilter.methodcalls.model.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.gmt.modisco.usecase.modelfilter.methodcalls.model.methodcalls.CallNode;
import org.eclipse.gmt.modisco.usecase.modelfilter.methodcalls.model.methodcalls.CallsModel;
import org.eclipse.gmt.modisco.usecase.modelfilter.methodcalls.model.methodcalls.MethodCall;
import org.eclipse.gmt.modisco.usecase.modelfilter.methodcalls.model.methodcalls.MethodcallsFactory;
import org.eclipse.gmt.modisco.usecase.modelfilter.methodcalls.model.methodcalls.MethodcallsPackage;
/**
* <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
*
* @generated
*
* @deprecated use matching org.eclipse.modisco.x.y.z component
*/
@Deprecated
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"); //$NON-NLS-1$
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"); //$NON-NLS-1$ //$NON-NLS-2$
}
}
/**
* <!-- 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