| /** |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * 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 |
| * |
| * Based on ideas from Xtext, Xtend, Xcore |
| * |
| * Contributors: |
| * Christophe Loetz - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.functionlibrarydsl.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.eclipse.osbp.dsl.semantic.common.types.LLazyResolver; |
| import org.eclipse.osbp.dsl.semantic.common.types.LPackage; |
| |
| import org.eclipse.osbp.xtext.functionlibrarydsl.*; |
| |
| /** |
| * <!-- 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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDSLPackage |
| * @generated |
| */ |
| public class FunctionLibraryDSLAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static FunctionLibraryDSLPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public FunctionLibraryDSLAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = FunctionLibraryDSLPackage.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 FunctionLibraryDSLSwitch<Adapter> modelSwitch = |
| new FunctionLibraryDSLSwitch<Adapter>() { |
| @Override |
| public Adapter caseFunctionLibraryModel(FunctionLibraryModel object) { |
| return createFunctionLibraryModelAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryPackage(FunctionLibraryPackage object) { |
| return createFunctionLibraryPackageAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryGroup(FunctionLibraryGroup object) { |
| return createFunctionLibraryGroupAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryBlipGroup(FunctionLibraryBlipGroup object) { |
| return createFunctionLibraryBlipGroupAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryStatemachineGroup(FunctionLibraryStatemachineGroup object) { |
| return createFunctionLibraryStatemachineGroupAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryValidationGroup(FunctionLibraryValidationGroup object) { |
| return createFunctionLibraryValidationGroupAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryActionGroup(FunctionLibraryActionGroup object) { |
| return createFunctionLibraryActionGroupAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryConverterGroup(FunctionLibraryConverterGroup object) { |
| return createFunctionLibraryConverterGroupAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryRating(FunctionLibraryRating object) { |
| return createFunctionLibraryRatingAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryRatingItem(FunctionLibraryRatingItem object) { |
| return createFunctionLibraryRatingItemAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryBaseFunction(FunctionLibraryBaseFunction object) { |
| return createFunctionLibraryBaseFunctionAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryFunction(FunctionLibraryFunction object) { |
| return createFunctionLibraryFunctionAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryTest(FunctionLibraryTest object) { |
| return createFunctionLibraryTestAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryRate(FunctionLibraryRate object) { |
| return createFunctionLibraryRateAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryGuard(FunctionLibraryGuard object) { |
| return createFunctionLibraryGuardAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryOperation(FunctionLibraryOperation object) { |
| return createFunctionLibraryOperationAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryExecute(FunctionLibraryExecute object) { |
| return createFunctionLibraryExecuteAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryCanExecute(FunctionLibraryCanExecute object) { |
| return createFunctionLibraryCanExecuteAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryValidation(FunctionLibraryValidation object) { |
| return createFunctionLibraryValidationAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionConvertToModel(FunctionConvertToModel object) { |
| return createFunctionConvertToModelAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionConvertToPresentation(FunctionConvertToPresentation object) { |
| return createFunctionConvertToPresentationAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionLibraryParameter(FunctionLibraryParameter object) { |
| return createFunctionLibraryParameterAdapter(); |
| } |
| @Override |
| public Adapter caseLLazyResolver(LLazyResolver object) { |
| return createLLazyResolverAdapter(); |
| } |
| @Override |
| public Adapter caseLPackage(LPackage object) { |
| return createLPackageAdapter(); |
| } |
| @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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryModel <em>Function Library 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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryModel |
| * @generated |
| */ |
| public Adapter createFunctionLibraryModelAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryPackage <em>Function Library Package</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryPackage |
| * @generated |
| */ |
| public Adapter createFunctionLibraryPackageAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryGroup <em>Function Library Group</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryGroup |
| * @generated |
| */ |
| public Adapter createFunctionLibraryGroupAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryBlipGroup <em>Function Library Blip Group</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryBlipGroup |
| * @generated |
| */ |
| public Adapter createFunctionLibraryBlipGroupAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryStatemachineGroup <em>Function Library Statemachine Group</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryStatemachineGroup |
| * @generated |
| */ |
| public Adapter createFunctionLibraryStatemachineGroupAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryValidationGroup <em>Function Library Validation Group</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryValidationGroup |
| * @generated |
| */ |
| public Adapter createFunctionLibraryValidationGroupAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryActionGroup <em>Function Library Action Group</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryActionGroup |
| * @generated |
| */ |
| public Adapter createFunctionLibraryActionGroupAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryConverterGroup <em>Function Library Converter Group</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryConverterGroup |
| * @generated |
| */ |
| public Adapter createFunctionLibraryConverterGroupAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryRating <em>Function Library Rating</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryRating |
| * @generated |
| */ |
| public Adapter createFunctionLibraryRatingAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryRatingItem <em>Function Library Rating Item</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryRatingItem |
| * @generated |
| */ |
| public Adapter createFunctionLibraryRatingItemAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryBaseFunction <em>Function Library Base Function</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryBaseFunction |
| * @generated |
| */ |
| public Adapter createFunctionLibraryBaseFunctionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryFunction <em>Function Library Function</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryFunction |
| * @generated |
| */ |
| public Adapter createFunctionLibraryFunctionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryTest <em>Function Library Test</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryTest |
| * @generated |
| */ |
| public Adapter createFunctionLibraryTestAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryRate <em>Function Library Rate</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryRate |
| * @generated |
| */ |
| public Adapter createFunctionLibraryRateAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryGuard <em>Function Library Guard</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryGuard |
| * @generated |
| */ |
| public Adapter createFunctionLibraryGuardAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryOperation <em>Function Library Operation</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryOperation |
| * @generated |
| */ |
| public Adapter createFunctionLibraryOperationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryExecute <em>Function Library Execute</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryExecute |
| * @generated |
| */ |
| public Adapter createFunctionLibraryExecuteAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryCanExecute <em>Function Library Can Execute</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryCanExecute |
| * @generated |
| */ |
| public Adapter createFunctionLibraryCanExecuteAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryValidation <em>Function Library Validation</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryValidation |
| * @generated |
| */ |
| public Adapter createFunctionLibraryValidationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionConvertToModel <em>Function Convert To 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.eclipse.osbp.xtext.functionlibrarydsl.FunctionConvertToModel |
| * @generated |
| */ |
| public Adapter createFunctionConvertToModelAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionConvertToPresentation <em>Function Convert To Presentation</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.eclipse.osbp.xtext.functionlibrarydsl.FunctionConvertToPresentation |
| * @generated |
| */ |
| public Adapter createFunctionConvertToPresentationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryParameter <em>Function Library 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.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryParameter |
| * @generated |
| */ |
| public Adapter createFunctionLibraryParameterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.dsl.semantic.common.types.LLazyResolver <em>LLazy Resolver</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.eclipse.osbp.dsl.semantic.common.types.LLazyResolver |
| * @generated |
| */ |
| public Adapter createLLazyResolverAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.dsl.semantic.common.types.LPackage <em>LPackage</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.eclipse.osbp.dsl.semantic.common.types.LPackage |
| * @generated |
| */ |
| public Adapter createLPackageAdapter() { |
| 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; |
| } |
| |
| } //FunctionLibraryDSLAdapterFactory |