| /******************************************************************************* |
| * Copyright (c) 2015 Willink Transformations and others. |
| * 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 |
| * |
| * Contributors: |
| * E.D.Willink - initial API and implementation |
| *******************************************************************************/ |
| /** |
| */ |
| package org.eclipse.qvtd.pivot.schedule.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.qvtd.pivot.schedule.*; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class ScheduleFactoryImpl extends EFactoryImpl implements ScheduleFactory { |
| /** |
| * Creates the default factory implementation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static ScheduleFactory init() { |
| try { |
| ScheduleFactory theScheduleFactory = (ScheduleFactory)EPackage.Registry.INSTANCE.getEFactory(SchedulePackage.eNS_URI); |
| if (theScheduleFactory != null) { |
| return theScheduleFactory; |
| } |
| } |
| catch (Exception exception) { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new ScheduleFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ScheduleFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case SchedulePackage.CLASS_DATUM: return createClassDatum(); |
| case SchedulePackage.DATA_PARAMETER: return createDataParameter(); |
| case SchedulePackage.INPUT_ACTION: return createInputAction(); |
| case SchedulePackage.MAPPING_ACTION: return createMappingAction(); |
| case SchedulePackage.OUTPUT_ACTION: return createOutputAction(); |
| case SchedulePackage.PARAMETER_DERIVATION: return createParameterDerivation(); |
| case SchedulePackage.PROPERTY_DATUM: return createPropertyDatum(); |
| case SchedulePackage.SCHEDULE: return createSchedule(); |
| case SchedulePackage.SECONDARY_PARAMETER: return createSecondaryParameter(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ClassDatum createClassDatum() { |
| ClassDatumImpl classDatum = new ClassDatumImpl(); |
| return classDatum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DataParameter createDataParameter() { |
| DataParameterImpl dataParameter = new DataParameterImpl(); |
| return dataParameter; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public InputAction createInputAction() { |
| InputActionImpl inputAction = new InputActionImpl(); |
| return inputAction; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public MappingAction createMappingAction() { |
| MappingActionImpl mappingAction = new MappingActionImpl(); |
| return mappingAction; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OutputAction createOutputAction() { |
| OutputActionImpl outputAction = new OutputActionImpl(); |
| return outputAction; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ParameterDerivation createParameterDerivation() { |
| ParameterDerivationImpl parameterDerivation = new ParameterDerivationImpl(); |
| return parameterDerivation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PropertyDatum createPropertyDatum() { |
| PropertyDatumImpl propertyDatum = new PropertyDatumImpl(); |
| return propertyDatum; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Schedule createSchedule() { |
| ScheduleImpl schedule = new ScheduleImpl(); |
| return schedule; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public SecondaryParameter createSecondaryParameter() { |
| SecondaryParameterImpl secondaryParameter = new SecondaryParameterImpl(); |
| return secondaryParameter; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public SchedulePackage getSchedulePackage() { |
| return (SchedulePackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static SchedulePackage getPackage() { |
| return SchedulePackage.eINSTANCE; |
| } |
| |
| } //ScheduleFactoryImpl |