| /** |
| * 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.Padding_layers.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.Padding_layers.*; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class Padding_layersFactoryImpl extends EFactoryImpl implements Padding_layersFactory { |
| /** |
| * Creates the default factory implementation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static Padding_layersFactory init() { |
| try { |
| Padding_layersFactory thePadding_layersFactory = (Padding_layersFactory)EPackage.Registry.INSTANCE.getEFactory(Padding_layersPackage.eNS_URI); |
| if (thePadding_layersFactory != null) { |
| return thePadding_layersFactory; |
| } |
| } |
| catch (Exception exception) { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new Padding_layersFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Padding_layersFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case Padding_layersPackage.REFLECTION_PAD1D: return createReflectionPad1d(); |
| case Padding_layersPackage.REFLECTION_PAD2D: return createReflectionPad2d(); |
| case Padding_layersPackage.REPLICATION_PAD1D: return createReplicationPad1d(); |
| case Padding_layersPackage.REPLICATION_PAD2D: return createReplicationPad2d(); |
| case Padding_layersPackage.REPLICATION_PAD3D: return createReplicationPad3d(); |
| case Padding_layersPackage.ZERO_PAD2D: return createZeroPad2d(); |
| case Padding_layersPackage.CONSTANT_PAD1D: return createConstantPad1d(); |
| case Padding_layersPackage.CONSTANT_PAD2D: return createConstantPad2d(); |
| case Padding_layersPackage.CONSTANT_PAD3D: return createConstantPad3d(); |
| 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 ReflectionPad1d createReflectionPad1d() { |
| ReflectionPad1dImpl reflectionPad1d = new ReflectionPad1dImpl(); |
| return reflectionPad1d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public ReflectionPad2d createReflectionPad2d() { |
| ReflectionPad2dImpl reflectionPad2d = new ReflectionPad2dImpl(); |
| return reflectionPad2d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public ReplicationPad1d createReplicationPad1d() { |
| ReplicationPad1dImpl replicationPad1d = new ReplicationPad1dImpl(); |
| return replicationPad1d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public ReplicationPad2d createReplicationPad2d() { |
| ReplicationPad2dImpl replicationPad2d = new ReplicationPad2dImpl(); |
| return replicationPad2d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public ReplicationPad3d createReplicationPad3d() { |
| ReplicationPad3dImpl replicationPad3d = new ReplicationPad3dImpl(); |
| return replicationPad3d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public ZeroPad2d createZeroPad2d() { |
| ZeroPad2dImpl zeroPad2d = new ZeroPad2dImpl(); |
| return zeroPad2d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public ConstantPad1d createConstantPad1d() { |
| ConstantPad1dImpl constantPad1d = new ConstantPad1dImpl(); |
| return constantPad1d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public ConstantPad2d createConstantPad2d() { |
| ConstantPad2dImpl constantPad2d = new ConstantPad2dImpl(); |
| return constantPad2d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public ConstantPad3d createConstantPad3d() { |
| ConstantPad3dImpl constantPad3d = new ConstantPad3dImpl(); |
| return constantPad3d; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Padding_layersPackage getPadding_layersPackage() { |
| return (Padding_layersPackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static Padding_layersPackage getPackage() { |
| return Padding_layersPackage.eINSTANCE; |
| } |
| |
| } //Padding_layersFactoryImpl |