/** */ package fr.obeo.intent.specification.util; import fr.obeo.intent.specification.*; 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; /** * <!-- 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 fr.obeo.intent.specification.SpecificationPackage * @generated */ public class SpecificationAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static SpecificationPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SpecificationAdapterFactory() { if (modelPackage == null) { modelPackage = SpecificationPackage.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 SpecificationSwitch<Adapter> modelSwitch = new SpecificationSwitch<Adapter>() { @Override public Adapter caseSpecification(Specification object) { return createSpecificationAdapter(); } @Override public Adapter caseFeature(Feature object) { return createFeatureAdapter(); } @Override public Adapter caseRole(Role object) { return createRoleAdapter(); } @Override public Adapter caseCapability(Capability object) { return createCapabilityAdapter(); } @Override public Adapter caseBenefit(Benefit object) { return createBenefitAdapter(); } @Override public Adapter caseStory(Story object) { return createStoryAdapter(); } @Override public Adapter caseScenario(Scenario object) { return createScenarioAdapter(); } @Override public Adapter caseContext(Context object) { return createContextAdapter(); } @Override public Adapter caseAction(Action object) { return createActionAdapter(); } @Override public Adapter caseBehaviour(Behaviour object) { return createBehaviourAdapter(); } @Override public Adapter caseAutomationLayer(AutomationLayer object) { return createAutomationLayerAdapter(); } @Override public Adapter caseNamedElement(NamedElement object) { return createNamedElementAdapter(); } @Override public Adapter caseNote(Note object) { return createNoteAdapter(); } @Override public Adapter caseImplementationNote(ImplementationNote object) { return createImplementationNoteAdapter(); } @Override public Adapter caseTestNote(TestNote object) { return createTestNoteAdapter(); } @Override public Adapter caseScenarioElement(ScenarioElement object) { return createScenarioElementAdapter(); } @Override public Adapter caseTestGenerationNote(TestGenerationNote object) { return createTestGenerationNoteAdapter(); } @Override public Adapter caseValue(Value object) { return createValueAdapter(); } @Override public Adapter caseParameter(Parameter object) { return createParameterAdapter(); } @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 fr.obeo.intent.specification.Specification <em>Specification</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 fr.obeo.intent.specification.Specification * @generated */ public Adapter createSpecificationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Feature <em>Feature</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 fr.obeo.intent.specification.Feature * @generated */ public Adapter createFeatureAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Role <em>Role</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 fr.obeo.intent.specification.Role * @generated */ public Adapter createRoleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Capability <em>Capability</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 fr.obeo.intent.specification.Capability * @generated */ public Adapter createCapabilityAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Benefit <em>Benefit</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 fr.obeo.intent.specification.Benefit * @generated */ public Adapter createBenefitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Story <em>Story</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 fr.obeo.intent.specification.Story * @generated */ public Adapter createStoryAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Scenario <em>Scenario</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 fr.obeo.intent.specification.Scenario * @generated */ public Adapter createScenarioAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Context <em>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 fr.obeo.intent.specification.Context * @generated */ public Adapter createContextAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Action <em>Action</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 fr.obeo.intent.specification.Action * @generated */ public Adapter createActionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Behaviour <em>Behaviour</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 fr.obeo.intent.specification.Behaviour * @generated */ public Adapter createBehaviourAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.AutomationLayer <em>Automation Layer</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 fr.obeo.intent.specification.AutomationLayer * @generated */ public Adapter createAutomationLayerAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.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 fr.obeo.intent.specification.NamedElement * @generated */ public Adapter createNamedElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Note <em>Note</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 fr.obeo.intent.specification.Note * @generated */ public Adapter createNoteAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.ImplementationNote <em>Implementation Note</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 fr.obeo.intent.specification.ImplementationNote * @generated */ public Adapter createImplementationNoteAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.TestNote <em>Test Note</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 fr.obeo.intent.specification.TestNote * @generated */ public Adapter createTestNoteAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.ScenarioElement <em>Scenario 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 fr.obeo.intent.specification.ScenarioElement * @generated */ public Adapter createScenarioElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.TestGenerationNote <em>Test Generation Note</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 fr.obeo.intent.specification.TestGenerationNote * @generated */ public Adapter createTestGenerationNoteAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Value <em>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 fr.obeo.intent.specification.Value * @generated */ public Adapter createValueAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link fr.obeo.intent.specification.Parameter <em>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 fr.obeo.intent.specification.Parameter * @generated */ public Adapter createParameterAdapter() { 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; } } //SpecificationAdapterFactory