ReqSpecAdapterFactory.java
/**
* *
* Copyright (c) 2004-2025 Carnegie Mellon University and others. (see Contributors file).
* All Rights Reserved.
*
* NO WARRANTY. ALL MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE
* OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT
* MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
* SPDX-License-Identifier: EPL-2.0
*
* Created, in part, with funding and support from the United States Government. (see Acknowledgments file).
*
* This program includes and/or can make use of certain third party source code, object code, documentation and other
* files ("Third Party Software"). The Third Party Software that is used by this program is dependent upon your system
* configuration. By using this program, You agree to comply with any and all relevant Third Party Software terms and
* conditions contained in any such Third Party Software or separate license file distributed with such Third Party
* Software. The parties who own the Third Party Software ("Third Party Licensors") are intended third party benefici-
* aries to this license with respect to the terms applicable to their Third Party Software. Third Party Software li-
* censes only apply to the Third Party Software and not any other portion of this program or this program as a whole.
*/
package org.osate.reqspec.reqSpec.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.osate.alisa.common.common.AVariableDeclaration;
import org.osate.alisa.common.common.ValDeclaration;
import org.osate.reqspec.reqSpec.*;
/**
* <!-- 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.osate.reqspec.reqSpec.ReqSpecPackage
* @generated
*/
public class ReqSpecAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static ReqSpecPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ReqSpecAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = ReqSpecPackage.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 ReqSpecSwitch<Adapter> modelSwitch =
new ReqSpecSwitch<Adapter>()
{
@Override
public Adapter caseReqSpec(ReqSpec object)
{
return createReqSpecAdapter();
}
@Override
public Adapter caseGlobalConstants(GlobalConstants object)
{
return createGlobalConstantsAdapter();
}
@Override
public Adapter caseContractualElement(ContractualElement object)
{
return createContractualElementAdapter();
}
@Override
public Adapter caseReqRoot(ReqRoot object)
{
return createReqRootAdapter();
}
@Override
public Adapter caseStakeholderGoals(StakeholderGoals object)
{
return createStakeholderGoalsAdapter();
}
@Override
public Adapter caseReqDocument(ReqDocument object)
{
return createReqDocumentAdapter();
}
@Override
public Adapter caseDocumentSection(DocumentSection object)
{
return createDocumentSectionAdapter();
}
@Override
public Adapter caseRequirementSet(RequirementSet object)
{
return createRequirementSetAdapter();
}
@Override
public Adapter caseGoal(Goal object)
{
return createGoalAdapter();
}
@Override
public Adapter caseRequirement(Requirement object)
{
return createRequirementAdapter();
}
@Override
public Adapter caseIncludeGlobalRequirement(IncludeGlobalRequirement object)
{
return createIncludeGlobalRequirementAdapter();
}
@Override
public Adapter caseWhenCondition(WhenCondition object)
{
return createWhenConditionAdapter();
}
@Override
public Adapter caseReqPredicate(ReqPredicate object)
{
return createReqPredicateAdapter();
}
@Override
public Adapter caseInformalPredicate(InformalPredicate object)
{
return createInformalPredicateAdapter();
}
@Override
public Adapter caseValuePredicate(ValuePredicate object)
{
return createValuePredicateAdapter();
}
@Override
public Adapter caseDesiredValue(DesiredValue object)
{
return createDesiredValueAdapter();
}
@Override
public Adapter caseExternalDocument(ExternalDocument object)
{
return createExternalDocumentAdapter();
}
@Override
public Adapter caseSystemRequirementSet(SystemRequirementSet object)
{
return createSystemRequirementSetAdapter();
}
@Override
public Adapter caseGlobalRequirementSet(GlobalRequirementSet object)
{
return createGlobalRequirementSetAdapter();
}
@Override
public Adapter caseReqValDeclaration(ReqValDeclaration object)
{
return createReqValDeclarationAdapter();
}
@Override
public Adapter caseAVariableDeclaration(AVariableDeclaration object)
{
return createAVariableDeclarationAdapter();
}
@Override
public Adapter caseValDeclaration(ValDeclaration object)
{
return createValDeclarationAdapter();
}
@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.osate.reqspec.reqSpec.ReqSpec <em>Req Spec</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.osate.reqspec.reqSpec.ReqSpec
* @generated
*/
public Adapter createReqSpecAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.GlobalConstants <em>Global Constants</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.osate.reqspec.reqSpec.GlobalConstants
* @generated
*/
public Adapter createGlobalConstantsAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.ContractualElement <em>Contractual 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.osate.reqspec.reqSpec.ContractualElement
* @generated
*/
public Adapter createContractualElementAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.ReqRoot <em>Req Root</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.osate.reqspec.reqSpec.ReqRoot
* @generated
*/
public Adapter createReqRootAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.StakeholderGoals <em>Stakeholder Goals</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.osate.reqspec.reqSpec.StakeholderGoals
* @generated
*/
public Adapter createStakeholderGoalsAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.ReqDocument <em>Req Document</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.osate.reqspec.reqSpec.ReqDocument
* @generated
*/
public Adapter createReqDocumentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.DocumentSection <em>Document Section</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.osate.reqspec.reqSpec.DocumentSection
* @generated
*/
public Adapter createDocumentSectionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.RequirementSet <em>Requirement Set</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.osate.reqspec.reqSpec.RequirementSet
* @generated
*/
public Adapter createRequirementSetAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.Goal <em>Goal</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.osate.reqspec.reqSpec.Goal
* @generated
*/
public Adapter createGoalAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.Requirement <em>Requirement</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.osate.reqspec.reqSpec.Requirement
* @generated
*/
public Adapter createRequirementAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.IncludeGlobalRequirement <em>Include Global Requirement</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.osate.reqspec.reqSpec.IncludeGlobalRequirement
* @generated
*/
public Adapter createIncludeGlobalRequirementAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.WhenCondition <em>When Condition</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.osate.reqspec.reqSpec.WhenCondition
* @generated
*/
public Adapter createWhenConditionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.ReqPredicate <em>Req Predicate</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.osate.reqspec.reqSpec.ReqPredicate
* @generated
*/
public Adapter createReqPredicateAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.InformalPredicate <em>Informal Predicate</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.osate.reqspec.reqSpec.InformalPredicate
* @generated
*/
public Adapter createInformalPredicateAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.ValuePredicate <em>Value Predicate</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.osate.reqspec.reqSpec.ValuePredicate
* @generated
*/
public Adapter createValuePredicateAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.DesiredValue <em>Desired 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.osate.reqspec.reqSpec.DesiredValue
* @generated
*/
public Adapter createDesiredValueAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.ExternalDocument <em>External Document</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.osate.reqspec.reqSpec.ExternalDocument
* @generated
*/
public Adapter createExternalDocumentAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.SystemRequirementSet <em>System Requirement Set</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.osate.reqspec.reqSpec.SystemRequirementSet
* @generated
*/
public Adapter createSystemRequirementSetAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.GlobalRequirementSet <em>Global Requirement Set</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.osate.reqspec.reqSpec.GlobalRequirementSet
* @generated
*/
public Adapter createGlobalRequirementSetAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.reqspec.reqSpec.ReqValDeclaration <em>Req Val Declaration</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.osate.reqspec.reqSpec.ReqValDeclaration
* @generated
*/
public Adapter createReqValDeclarationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.AVariableDeclaration <em>AVariable Declaration</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.osate.alisa.common.common.AVariableDeclaration
* @generated
*/
public Adapter createAVariableDeclarationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.osate.alisa.common.common.ValDeclaration <em>Val Declaration</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.osate.alisa.common.common.ValDeclaration
* @generated
*/
public Adapter createValDeclarationAdapter()
{
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;
}
} //ReqSpecAdapterFactory