| /** |
| * Copyright (c) 2020 CEA LIST |
| * |
| * 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 |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| */ |
| package org.eclipse.papyrus.aiml.profile.AIML.Layer_weight_regularizers.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.papyrus.aiml.profile.AIML.Layer_weight_regularizers.*; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class Layer_weight_regularizersFactoryImpl extends EFactoryImpl implements Layer_weight_regularizersFactory { |
| /** |
| * Creates the default factory implementation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static Layer_weight_regularizersFactory init() { |
| try { |
| Layer_weight_regularizersFactory theLayer_weight_regularizersFactory = (Layer_weight_regularizersFactory)EPackage.Registry.INSTANCE.getEFactory(Layer_weight_regularizersPackage.eNS_URI); |
| if (theLayer_weight_regularizersFactory != null) { |
| return theLayer_weight_regularizersFactory; |
| } |
| } |
| catch (Exception exception) { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new Layer_weight_regularizersFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Layer_weight_regularizersFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case Layer_weight_regularizersPackage.L1: return createl1(); |
| case Layer_weight_regularizersPackage.L2: return createl2(); |
| case Layer_weight_regularizersPackage.L1_L2: return createl1_l2(); |
| 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 |
| */ |
| @Override |
| public l1 createl1() { |
| l1Impl l1 = new l1Impl(); |
| return l1; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public l2 createl2() { |
| l2Impl l2 = new l2Impl(); |
| return l2; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public l1_l2 createl1_l2() { |
| l1_l2Impl l1_l2 = new l1_l2Impl(); |
| return l1_l2; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Layer_weight_regularizersPackage getLayer_weight_regularizersPackage() { |
| return (Layer_weight_regularizersPackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static Layer_weight_regularizersPackage getPackage() { |
| return Layer_weight_regularizersPackage.eINSTANCE; |
| } |
| |
| } //Layer_weight_regularizersFactoryImpl |