blob: c1f91d1741a2bbee5dbfcdc9b03474839289ab70 [file] [log] [blame]
/*******************************************************************************
* 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 v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* SPDX-License-Identifier: EPL-2.0
*
* 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.arg.arg.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.apm.assuranceassets.assuranceasset.AssuranceAsset;
import org.eclipse.opencert.apm.assuranceassets.assuranceasset.ManageableAssuranceAsset;
import org.eclipse.opencert.sam.arg.arg.*;
/**
* <!-- 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.arg.arg.ArgPackage
* @generated
*/
public class ArgAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static ArgPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ArgAdapterFactory() {
if (modelPackage == null) {
modelPackage = ArgPackage.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 ArgSwitch<Adapter> modelSwitch =
new ArgSwitch<Adapter>() {
@Override
public Adapter caseCase(Case object) {
return createCaseAdapter();
}
@Override
public Adapter caseModelElement(ModelElement object) {
return createModelElementAdapter();
}
@Override
public Adapter caseAssuranceCase(AssuranceCase object) {
return createAssuranceCaseAdapter();
}
@Override
public Adapter caseArgumentationElement(ArgumentationElement object) {
return createArgumentationElementAdapter();
}
@Override
public Adapter caseArgumentation(Argumentation object) {
return createArgumentationAdapter();
}
@Override
public Adapter caseArgumentElement(ArgumentElement object) {
return createArgumentElementAdapter();
}
@Override
public Adapter caseInformationElementCitation(InformationElementCitation object) {
return createInformationElementCitationAdapter();
}
@Override
public Adapter caseReasoningElement(ReasoningElement object) {
return createReasoningElementAdapter();
}
@Override
public Adapter caseArgumentElementCitation(ArgumentElementCitation object) {
return createArgumentElementCitationAdapter();
}
@Override
public Adapter caseAssertion(Assertion object) {
return createAssertionAdapter();
}
@Override
public Adapter caseArgumentReasoning(ArgumentReasoning object) {
return createArgumentReasoningAdapter();
}
@Override
public Adapter caseClaim(Claim object) {
return createClaimAdapter();
}
@Override
public Adapter caseAssertedRelationship(AssertedRelationship object) {
return createAssertedRelationshipAdapter();
}
@Override
public Adapter caseChoice(Choice object) {
return createChoiceAdapter();
}
@Override
public Adapter caseAssertedInference(AssertedInference object) {
return createAssertedInferenceAdapter();
}
@Override
public Adapter caseAssertedEvidence(AssertedEvidence object) {
return createAssertedEvidenceAdapter();
}
@Override
public Adapter caseAssertedContext(AssertedContext object) {
return createAssertedContextAdapter();
}
@Override
public Adapter caseAssertedChallenge(AssertedChallenge object) {
return createAssertedChallengeAdapter();
}
@Override
public Adapter caseAssertedCounterEvidence(AssertedCounterEvidence object) {
return createAssertedCounterEvidenceAdapter();
}
@Override
public Adapter caseAgreement(Agreement object) {
return createAgreementAdapter();
}
@Override
public Adapter caseAssuranceAsset(AssuranceAsset object) {
return createAssuranceAssetAdapter();
}
@Override
public Adapter caseManageableAssuranceAsset(ManageableAssuranceAsset object) {
return createManageableAssuranceAssetAdapter();
}
@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.arg.arg.Case <em>Case</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.arg.arg.Case
* @generated
*/
public Adapter createCaseAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.ModelElement <em>Model 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.eclipse.opencert.sam.arg.arg.ModelElement
* @generated
*/
public Adapter createModelElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.AssuranceCase <em>Assurance Case</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.arg.arg.AssuranceCase
* @generated
*/
public Adapter createAssuranceCaseAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.ArgumentationElement <em>Argumentation 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.eclipse.opencert.sam.arg.arg.ArgumentationElement
* @generated
*/
public Adapter createArgumentationElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.Argumentation <em>Argumentation</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.arg.arg.Argumentation
* @generated
*/
public Adapter createArgumentationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.ArgumentElement <em>Argument 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.eclipse.opencert.sam.arg.arg.ArgumentElement
* @generated
*/
public Adapter createArgumentElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.InformationElementCitation <em>Information Element Citation</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.arg.arg.InformationElementCitation
* @generated
*/
public Adapter createInformationElementCitationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.ReasoningElement <em>Reasoning 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.eclipse.opencert.sam.arg.arg.ReasoningElement
* @generated
*/
public Adapter createReasoningElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.ArgumentElementCitation <em>Argument Element Citation</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.arg.arg.ArgumentElementCitation
* @generated
*/
public Adapter createArgumentElementCitationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.Assertion <em>Assertion</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.arg.arg.Assertion
* @generated
*/
public Adapter createAssertionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.ArgumentReasoning <em>Argument Reasoning</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.arg.arg.ArgumentReasoning
* @generated
*/
public Adapter createArgumentReasoningAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.Claim <em>Claim</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.arg.arg.Claim
* @generated
*/
public Adapter createClaimAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.AssertedRelationship <em>Asserted Relationship</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.arg.arg.AssertedRelationship
* @generated
*/
public Adapter createAssertedRelationshipAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.Choice <em>Choice</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.arg.arg.Choice
* @generated
*/
public Adapter createChoiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.AssertedInference <em>Asserted Inference</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.arg.arg.AssertedInference
* @generated
*/
public Adapter createAssertedInferenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.AssertedEvidence <em>Asserted Evidence</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.arg.arg.AssertedEvidence
* @generated
*/
public Adapter createAssertedEvidenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.AssertedContext <em>Asserted Context</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.arg.arg.AssertedContext
* @generated
*/
public Adapter createAssertedContextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.AssertedChallenge <em>Asserted Challenge</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.arg.arg.AssertedChallenge
* @generated
*/
public Adapter createAssertedChallengeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.AssertedCounterEvidence <em>Asserted Counter Evidence</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.arg.arg.AssertedCounterEvidence
* @generated
*/
public Adapter createAssertedCounterEvidenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.sam.arg.arg.Agreement <em>Agreement</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.arg.arg.Agreement
* @generated
*/
public Adapter createAgreementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.apm.assuranceassets.assuranceasset.AssuranceAsset <em>Assurance Asset</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.apm.assuranceassets.assuranceasset.AssuranceAsset
* @generated
*/
public Adapter createAssuranceAssetAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.opencert.apm.assuranceassets.assuranceasset.ManageableAssuranceAsset <em>Manageable Assurance Asset</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.apm.assuranceassets.assuranceasset.ManageableAssuranceAsset
* @generated
*/
public Adapter createManageableAssuranceAssetAdapter() {
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;
}
} //ArgAdapterFactory