/*- * ============LICENSE_START========================================== * OPENECOMP - DCAE * =================================================================== * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. * =================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END============================================ */ /** */ package org.openecomp.ncomp.openstack.impl; import org.openecomp.ncomp.openstack.*; 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; /** * * An implementation of the model Factory. * * @generated */ public class OpenstackFactoryImpl extends EFactoryImpl implements OpenstackFactory { /** * Creates the default factory implementation. * * * @generated */ public static OpenstackFactory init() { try { OpenstackFactory theOpenstackFactory = (OpenstackFactory)EPackage.Registry.INSTANCE.getEFactory(OpenstackPackage.eNS_URI); if (theOpenstackFactory != null) { return theOpenstackFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new OpenstackFactoryImpl(); } /** * Creates an instance of the factory. * * * @generated */ public OpenstackFactoryImpl() { super(); } /** * * * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case OpenstackPackage.OPEN_STACK_CONTROLLER: return createOpenStackController(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * * * @generated */ public OpenStackController createOpenStackController() { OpenStackControllerImpl openStackController = new OpenStackControllerImpl(); return openStackController; } /** * * * @generated */ public OpenstackPackage getOpenstackPackage() { return (OpenstackPackage)getEPackage(); } /** * * * @deprecated * @generated */ @Deprecated public static OpenstackPackage getPackage() { return OpenstackPackage.eINSTANCE; } } //OpenstackFactoryImpl