/** * This file is protected by Copyright. * Please refer to the COPYRIGHT file distributed with this source distribution. * * This file is part of REDHAWK IDE. * * All rights reserved. This program and the accompanying materials are made available under * the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html. * */ // BEGIN GENERATED CODE package mil.jpeojtrs.sca.diagram.impl; import mil.jpeojtrs.sca.diagram.DiagramFactory; import mil.jpeojtrs.sca.diagram.DiagramPackage; import mil.jpeojtrs.sca.diagram.EObjectContainerStyle; 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; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * @since 1.1 * <!-- end-user-doc --> * @generated */ public class DiagramFactoryImpl extends EFactoryImpl implements DiagramFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static DiagramFactory init() { try { DiagramFactory theDiagramFactory = (DiagramFactory)EPackage.Registry.INSTANCE.getEFactory("http://sca.jpeojtrs.mil/diagram"); if (theDiagramFactory != null) { return theDiagramFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new DiagramFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DiagramFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case DiagramPackage.EOBJECT_CONTAINER_STYLE: return createEObjectContainerStyle(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObjectContainerStyle createEObjectContainerStyle() { EObjectContainerStyleImpl eObjectContainerStyle = new EObjectContainerStyleImpl(); return eObjectContainerStyle; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public DiagramPackage getDiagramPackage() { return (DiagramPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static DiagramPackage getPackage() { return DiagramPackage.eINSTANCE; } } //DiagramFactoryImpl