| /******************************************************************************* |
| * Copyright (c) 2016 Fundación Tecnalia Research & Innovation. |
| * |
| * 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: |
| * Huascar Espinoza - initial API and implementation |
| * Alejandra Ruíz - initial API and implementation |
| * Idoya Del Río - initial API and implementation |
| * Mari Carmen Palacios - initial API and implementation |
| * Angel López - initial API and implementation |
| *******************************************************************************/ |
| /** |
| */ |
| package org.eclipse.opencert.sam.agree.agreement.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.opencert.sam.agree.agreement.*; |
| |
| /** |
| * <!-- 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.opencert.sam.agree.agreement.AgreementPackage |
| * @generated |
| */ |
| public class AgreementAdapterFactory extends AdapterFactoryImpl |
| { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static AgreementPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public AgreementAdapterFactory() |
| { |
| if (modelPackage == null) |
| { |
| modelPackage = AgreementPackage.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 AgreementSwitch<Adapter> modelSwitch = |
| new AgreementSwitch<Adapter>() |
| { |
| @Override |
| public Adapter caseModel(Model object) |
| { |
| return createModelAdapter(); |
| } |
| @Override |
| public Adapter caseContract(Contract object) |
| { |
| return createContractAdapter(); |
| } |
| @Override |
| public Adapter caseassertionDefinition(assertionDefinition object) |
| { |
| return createassertionDefinitionAdapter(); |
| } |
| @Override |
| public Adapter casestrategyDefinition(strategyDefinition object) |
| { |
| return createstrategyDefinitionAdapter(); |
| } |
| @Override |
| public Adapter caseviewpointId(viewpointId object) |
| { |
| return createviewpointIdAdapter(); |
| } |
| @Override |
| public Adapter caseassertionpattern(assertionpattern object) |
| { |
| return createassertionpatternAdapter(); |
| } |
| @Override |
| public Adapter caseNoun(Noun object) |
| { |
| return createNounAdapter(); |
| } |
| @Override |
| public Adapter caseVerb(Verb object) |
| { |
| return createVerbAdapter(); |
| } |
| @Override |
| public Adapter casesimple(simple object) |
| { |
| return createsimpleAdapter(); |
| } |
| @Override |
| public Adapter caseFact(Fact object) |
| { |
| return createFactAdapter(); |
| } |
| @Override |
| public Adapter casePattern(Pattern object) |
| { |
| return createPatternAdapter(); |
| } |
| @Override |
| public Adapter casenonfunctional(nonfunctional object) |
| { |
| return createnonfunctionalAdapter(); |
| } |
| @Override |
| public Adapter casememory(memory object) |
| { |
| return creatememoryAdapter(); |
| } |
| @Override |
| public Adapter casetimming(timming object) |
| { |
| return createtimmingAdapter(); |
| } |
| @Override |
| public Adapter casebehave(behave object) |
| { |
| return createbehaveAdapter(); |
| } |
| @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.opencert.sam.agree.agreement.Model <em>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.opencert.sam.agree.agreement.Model |
| * @generated |
| */ |
| public Adapter createModelAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.Contract <em>Contract</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.opencert.sam.agree.agreement.Contract |
| * @generated |
| */ |
| public Adapter createContractAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.assertionDefinition <em>assertion Definition</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.opencert.sam.agree.agreement.assertionDefinition |
| * @generated |
| */ |
| public Adapter createassertionDefinitionAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.strategyDefinition <em>strategy Definition</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.opencert.sam.agree.agreement.strategyDefinition |
| * @generated |
| */ |
| public Adapter createstrategyDefinitionAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.viewpointId <em>viewpoint Id</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.opencert.sam.agree.agreement.viewpointId |
| * @generated |
| */ |
| public Adapter createviewpointIdAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.assertionpattern <em>assertionpattern</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.opencert.sam.agree.agreement.assertionpattern |
| * @generated |
| */ |
| public Adapter createassertionpatternAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.Noun <em>Noun</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.opencert.sam.agree.agreement.Noun |
| * @generated |
| */ |
| public Adapter createNounAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.Verb <em>Verb</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.opencert.sam.agree.agreement.Verb |
| * @generated |
| */ |
| public Adapter createVerbAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.simple <em>simple</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.opencert.sam.agree.agreement.simple |
| * @generated |
| */ |
| public Adapter createsimpleAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.Fact <em>Fact</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.opencert.sam.agree.agreement.Fact |
| * @generated |
| */ |
| public Adapter createFactAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.Pattern <em>Pattern</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.opencert.sam.agree.agreement.Pattern |
| * @generated |
| */ |
| public Adapter createPatternAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.nonfunctional <em>nonfunctional</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.opencert.sam.agree.agreement.nonfunctional |
| * @generated |
| */ |
| public Adapter createnonfunctionalAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.memory <em>memory</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.opencert.sam.agree.agreement.memory |
| * @generated |
| */ |
| public Adapter creatememoryAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.timming <em>timming</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.opencert.sam.agree.agreement.timming |
| * @generated |
| */ |
| public Adapter createtimmingAdapter() |
| { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.agree.agreement.behave <em>behave</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.opencert.sam.agree.agreement.behave |
| * @generated |
| */ |
| public Adapter createbehaveAdapter() |
| { |
| 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; |
| } |
| |
| } //AgreementAdapterFactory |