| /**
|
| * Copyright (c) 2010, 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:
|
| * Nicolas Payneau (Mia-Software) - initial API and implementation
|
| */ |
| package org.eclipse.modisco.smm.quality.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.smm.quality.*;
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * An implementation of the model <b>Factory</b>.
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public class SmmqualityFactoryImpl extends EFactoryImpl implements SmmqualityFactory {
|
| /**
|
| * Creates the default factory implementation.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public static SmmqualityFactory init() {
|
| try {
|
| SmmqualityFactory theSmmqualityFactory = (SmmqualityFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/MoDisco/SMMQuality/0.9/smmquality");
|
| if (theSmmqualityFactory != null) {
|
| return theSmmqualityFactory;
|
| }
|
| }
|
| catch (Exception exception) {
|
| EcorePlugin.INSTANCE.log(exception);
|
| }
|
| return new SmmqualityFactoryImpl();
|
| }
|
|
|
| /**
|
| * Creates an instance of the factory.
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public SmmqualityFactoryImpl() {
|
| super();
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| @Override
|
| public EObject create(EClass eClass) {
|
| switch (eClass.getClassifierID()) {
|
| case SmmqualityPackage.QUALITY_SCOPE: return createQualityScope();
|
| case SmmqualityPackage.MEASURAND: return createMeasurand();
|
| default:
|
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
| }
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public QualityScope createQualityScope() {
|
| QualityScopeImpl qualityScope = new QualityScopeImpl();
|
| return qualityScope;
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public Measurand createMeasurand() {
|
| MeasurandImpl measurand = new MeasurandImpl();
|
| return measurand;
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @generated
|
| */
|
| public SmmqualityPackage getSmmqualityPackage() {
|
| return (SmmqualityPackage)getEPackage();
|
| }
|
|
|
| /**
|
| * <!-- begin-user-doc -->
|
| * <!-- end-user-doc -->
|
| * @deprecated
|
| * @generated
|
| */
|
| @Deprecated
|
| public static SmmqualityPackage getPackage() {
|
| return SmmqualityPackage.eINSTANCE;
|
| }
|
|
|
| } //SmmqualityFactoryImpl
|