/** * Copyright (c) 2015 committers of YAKINDU 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: * committers of YAKINDU - initial API and implementation * */ package org.yakindu.sct.model.sgen.util; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; import org.eclipse.emf.ecore.EObject; import org.yakindu.base.base.NamedElement; import org.yakindu.sct.model.sgen.*; import org.yakindu.sct.model.sgen.FeatureConfiguration; import org.yakindu.sct.model.sgen.FeatureParameter; import org.yakindu.sct.model.sgen.FeatureParameterValue; import org.yakindu.sct.model.sgen.FeatureType; import org.yakindu.sct.model.sgen.FeatureTypeLibrary; import org.yakindu.sct.model.sgen.GeneratorConfiguration; import org.yakindu.sct.model.sgen.GeneratorEntry; import org.yakindu.sct.model.sgen.GeneratorModel; import org.yakindu.sct.model.sgen.SGenPackage; /** * <!-- begin-user-doc --> * The <b>Adapter Factory</b> for the model. * It provides an adapter <code>createXXX</code> method for each class of the model. * <!-- end-user-doc --> * @see org.yakindu.sct.model.sgen.SGenPackage * @generated */ public class SGenAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static SGenPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SGenAdapterFactory() { if (modelPackage == null) { modelPackage = SGenPackage.eINSTANCE; } } /** * Returns whether this factory is applicable for the type of the object. * <!-- begin-user-doc --> * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. * <!-- end-user-doc --> * @return whether this factory is applicable for the type of the object. * @generated */ @Override public boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; } /** * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected SGenSwitch<Adapter> modelSwitch = new SGenSwitch<Adapter>() { @Override public Adapter caseGeneratorModel(GeneratorModel object) { return createGeneratorModelAdapter(); } @Override public Adapter caseGeneratorConfiguration(GeneratorConfiguration object) { return createGeneratorConfigurationAdapter(); } @Override public Adapter caseFeatureType(FeatureType object) { return createFeatureTypeAdapter(); } @Override public Adapter caseFeatureParameter(FeatureParameter object) { return createFeatureParameterAdapter(); } @Override public Adapter caseFeatureConfiguration(FeatureConfiguration object) { return createFeatureConfigurationAdapter(); } @Override public Adapter caseGeneratorEntry(GeneratorEntry object) { return createGeneratorEntryAdapter(); } @Override public Adapter caseFeatureParameterValue(FeatureParameterValue object) { return createFeatureParameterValueAdapter(); } @Override public Adapter caseFeatureTypeLibrary(FeatureTypeLibrary object) { return createFeatureTypeLibraryAdapter(); } @Override public Adapter caseLiteral(Literal object) { return createLiteralAdapter(); } @Override public Adapter caseBoolLiteral(BoolLiteral object) { return createBoolLiteralAdapter(); } @Override public Adapter caseIntLiteral(IntLiteral object) { return createIntLiteralAdapter(); } @Override public Adapter caseRealLiteral(RealLiteral object) { return createRealLiteralAdapter(); } @Override public Adapter caseStringLiteral(StringLiteral object) { return createStringLiteralAdapter(); } @Override public Adapter caseDeprecatableElement(DeprecatableElement object) { return createDeprecatableElementAdapter(); } @Override public Adapter caseNamedElement(NamedElement object) { return createNamedElementAdapter(); } @Override public Adapter defaultCase(EObject object) { return createEObjectAdapter(); } }; /** * Creates an adapter for the <code>target</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param target the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @Override public Adapter createAdapter(Notifier target) { return modelSwitch.doSwitch((EObject)target); } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.GeneratorModel <em>Generator Model</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.GeneratorModel * @generated */ public Adapter createGeneratorModelAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.GeneratorConfiguration <em>Generator Configuration</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.GeneratorConfiguration * @generated */ public Adapter createGeneratorConfigurationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.FeatureType <em>Feature Type</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.FeatureType * @generated */ public Adapter createFeatureTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.FeatureParameter <em>Feature Parameter</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.FeatureParameter * @generated */ public Adapter createFeatureParameterAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.FeatureConfiguration <em>Feature Configuration</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.FeatureConfiguration * @generated */ public Adapter createFeatureConfigurationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.GeneratorEntry <em>Generator Entry</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.GeneratorEntry * @generated */ public Adapter createGeneratorEntryAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.FeatureParameterValue <em>Feature Parameter Value</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.FeatureParameterValue * @generated */ public Adapter createFeatureParameterValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.FeatureTypeLibrary <em>Feature Type Library</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.FeatureTypeLibrary * @generated */ public Adapter createFeatureTypeLibraryAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.Literal <em>Literal</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.Literal * @generated */ public Adapter createLiteralAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.BoolLiteral <em>Bool Literal</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.BoolLiteral * @generated */ public Adapter createBoolLiteralAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.IntLiteral <em>Int Literal</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.IntLiteral * @generated */ public Adapter createIntLiteralAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.RealLiteral <em>Real Literal</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.RealLiteral * @generated */ public Adapter createRealLiteralAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.StringLiteral <em>String Literal</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.StringLiteral * @generated */ public Adapter createStringLiteralAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.sct.model.sgen.DeprecatableElement <em>Deprecatable Element</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.sct.model.sgen.DeprecatableElement * @generated */ public Adapter createDeprecatableElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.yakindu.base.base.NamedElement <em>Named Element</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @return the new adapter. * @see org.yakindu.base.base.NamedElement * @generated */ public Adapter createNamedElementAdapter() { return null; } /** * Creates a new adapter for the default case. * <!-- begin-user-doc --> * This default implementation returns null. * <!-- end-user-doc --> * @return the new adapter. * @generated */ public Adapter createEObjectAdapter() { return null; } } //SGenAdapterFactory