blob: 04eb7d679bfd96c875f20e68738d8086e9b646f6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2022 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr
* Fadwa Tmar (CEA LIST) fadwa.tmar@cea.fr
*******************************************************************************/
/**
*/
package org.eclipse.papyrus.opcua.uml2opcua.nodeIdsCsv.NodeIdsCsv.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.opcua.uml2opcua.nodeIdsCsv.NodeIdsCsv.*;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class NodeIdsCsvFactoryImpl extends EFactoryImpl implements NodeIdsCsvFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static NodeIdsCsvFactory init() {
try {
NodeIdsCsvFactory theNodeIdsCsvFactory = (NodeIdsCsvFactory)EPackage.Registry.INSTANCE.getEFactory(NodeIdsCsvPackage.eNS_URI);
if (theNodeIdsCsvFactory != null) {
return theNodeIdsCsvFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new NodeIdsCsvFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NodeIdsCsvFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case NodeIdsCsvPackage.NODE_IDS_CSV_ROW: return createNodeIdsCsvRow();
case NodeIdsCsvPackage.NODE_IDS_CSV_FILE: return createNodeIdsCsvFile();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NodeIdsCsvRow createNodeIdsCsvRow() {
NodeIdsCsvRowImpl nodeIdsCsvRow = new NodeIdsCsvRowImpl();
return nodeIdsCsvRow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NodeIdsCsvFile createNodeIdsCsvFile() {
NodeIdsCsvFileImpl nodeIdsCsvFile = new NodeIdsCsvFileImpl();
return nodeIdsCsvFile;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NodeIdsCsvPackage getNodeIdsCsvPackage() {
return (NodeIdsCsvPackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static NodeIdsCsvPackage getPackage() {
return NodeIdsCsvPackage.eINSTANCE;
}
} //NodeIdsCsvFactoryImpl