blob: 357659f617a73fcba3d68095a5d7e207ea0a26c0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2019 Xored Software Inc and others.
* 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/legal/epl-v20.html
*
* Contributors:
* Xored Software Inc - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.rcptt.core.scenario.util;
import java.util.Map;
import org.eclipse.rcptt.core.scenario.*;
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.common.util.EList;
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 org.eclipse.rcptt.core.scenario.ScenarioPackage
* @generated
*/
public class ScenarioAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static ScenarioPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ScenarioAdapterFactory() {
if (modelPackage == null) {
modelPackage = ScenarioPackage.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 ScenarioSwitch<Adapter> modelSwitch =
new ScenarioSwitch<Adapter>() {
@Override
public Adapter caseNamedElement(NamedElement object) {
return createNamedElementAdapter();
}
@Override
public Adapter caseScenario(Scenario object) {
return createScenarioAdapter();
}
@Override
public Adapter caseScenarioProperty(ScenarioProperty object) {
return createScenarioPropertyAdapter();
}
@Override
public Adapter caseContext(Context object) {
return createContextAdapter();
}
@Override
public Adapter caseWorkbenchContext(WorkbenchContext object) {
return createWorkbenchContextAdapter();
}
@Override
public Adapter caseEditor(Editor object) {
return createEditorAdapter();
}
@Override
public Adapter caseFileEditor(FileEditor object) {
return createFileEditorAdapter();
}
@Override
public Adapter caseGroupContext(GroupContext object) {
return createGroupContextAdapter();
}
@Override
public Adapter caseUnresolvedContext(UnresolvedContext object) {
return createUnresolvedContextAdapter();
}
@Override
public Adapter caseAttachment(Attachment object) {
return createAttachmentAdapter();
}
@Override
public Adapter caseTestSuiteItem(TestSuiteItem object) {
return createTestSuiteItemAdapter();
}
@Override
public Adapter caseTestSuite(TestSuite object) {
return createTestSuiteAdapter();
}
@Override
public Adapter caseProjectMetadata(ProjectMetadata object) {
return createProjectMetadataAdapter();
}
@Override
public Adapter caseSuperContext(SuperContext object) {
return createSuperContextAdapter();
}
@Override
public Adapter caseVerification(Verification object) {
return createVerificationAdapter();
}
@Override
public Adapter caseUnresolvedVerification(UnresolvedVerification object) {
return createUnresolvedVerificationAdapter();
}
@Override
public Adapter caseWidgetVerification(WidgetVerification object) {
return createWidgetVerificationAdapter();
}
@Override
public Adapter caseCapabilityContext(CapabilityContext object) {
return createCapabilityContextAdapter();
}
@Override
public Adapter caseCapabilityContextItem(CapabilityContextItem object) {
return createCapabilityContextItemAdapter();
}
@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.rcptt.core.scenario.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 org.eclipse.rcptt.core.scenario.NamedElement
* @generated
*/
public Adapter createNamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.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 org.eclipse.rcptt.core.scenario.Scenario
* @generated
*/
public Adapter createScenarioAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.ScenarioProperty <em>Property</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.rcptt.core.scenario.ScenarioProperty
* @generated
*/
public Adapter createScenarioPropertyAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.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 org.eclipse.rcptt.core.scenario.Context
* @generated
*/
public Adapter createContextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.WorkbenchContext <em>Workbench 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.rcptt.core.scenario.WorkbenchContext
* @generated
*/
public Adapter createWorkbenchContextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.Editor <em>Editor</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.rcptt.core.scenario.Editor
* @generated
*/
public Adapter createEditorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.FileEditor <em>File Editor</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.rcptt.core.scenario.FileEditor
* @generated
*/
public Adapter createFileEditorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.GroupContext <em>Group 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.rcptt.core.scenario.GroupContext
* @generated
*/
public Adapter createGroupContextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.UnresolvedContext <em>Unresolved 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.rcptt.core.scenario.UnresolvedContext
* @generated
*/
public Adapter createUnresolvedContextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.Attachment <em>Attachment</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.rcptt.core.scenario.Attachment
* @generated
*/
public Adapter createAttachmentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.TestSuiteItem <em>Test Suite 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.rcptt.core.scenario.TestSuiteItem
* @generated
*/
public Adapter createTestSuiteItemAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.TestSuite <em>Test Suite</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.rcptt.core.scenario.TestSuite
* @generated
*/
public Adapter createTestSuiteAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.ProjectMetadata <em>Project Metadata</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.rcptt.core.scenario.ProjectMetadata
* @generated
*/
public Adapter createProjectMetadataAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.SuperContext <em>Super 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.rcptt.core.scenario.SuperContext
* @generated
*/
public Adapter createSuperContextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.Verification <em>Verification</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.rcptt.core.scenario.Verification
* @generated
*/
public Adapter createVerificationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.UnresolvedVerification <em>Unresolved Verification</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.rcptt.core.scenario.UnresolvedVerification
* @generated
*/
public Adapter createUnresolvedVerificationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.WidgetVerification <em>Widget Verification</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.rcptt.core.scenario.WidgetVerification
* @generated
*/
public Adapter createWidgetVerificationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.CapabilityContext <em>Capability 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.rcptt.core.scenario.CapabilityContext
* @generated
*/
public Adapter createCapabilityContextAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.rcptt.core.scenario.CapabilityContextItem <em>Capability Context 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.rcptt.core.scenario.CapabilityContextItem
* @generated
*/
public Adapter createCapabilityContextItemAdapter() {
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;
}
} //ScenarioAdapterFactory