blob: 3ad91ff74ea616dc9a00b51994794e76a8b3eb8f [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
* generated from ActionDSL.xcore
*
*
*/
package org.eclipse.osbp.xtext.action.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.osbp.dsl.semantic.common.types.LLazyResolver;
import org.eclipse.osbp.dsl.semantic.common.types.LPackage;
import org.eclipse.osbp.xtext.action.*;
/**
* <!-- 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.osbp.xtext.action.ActionDSLPackage
* @generated
*/
public class ActionDSLAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static ActionDSLPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActionDSLAdapterFactory() {
if (modelPackage == null) {
modelPackage = ActionDSLPackage.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 ActionDSLSwitch<Adapter> modelSwitch =
new ActionDSLSwitch<Adapter>() {
@Override
public Adapter caseActionModel(ActionModel object) {
return createActionModelAdapter();
}
@Override
public Adapter caseActionLazyResolver(ActionLazyResolver object) {
return createActionLazyResolverAdapter();
}
@Override
public Adapter caseActionPackage(ActionPackage object) {
return createActionPackageAdapter();
}
@Override
public Adapter caseActionBase(ActionBase object) {
return createActionBaseAdapter();
}
@Override
public Adapter caseActionCommand(ActionCommand object) {
return createActionCommandAdapter();
}
@Override
public Adapter caseActionToolbar(ActionToolbar object) {
return createActionToolbarAdapter();
}
@Override
public Adapter caseActionToolbarItem(ActionToolbarItem object) {
return createActionToolbarItemAdapter();
}
@Override
public Adapter caseActionButton(ActionButton object) {
return createActionButtonAdapter();
}
@Override
public Adapter caseActionSpacer(ActionSpacer object) {
return createActionSpacerAdapter();
}
@Override
public Adapter caseActionType(ActionType object) {
return createActionTypeAdapter();
}
@Override
public Adapter caseActionTask(ActionTask object) {
return createActionTaskAdapter();
}
@Override
public Adapter caseActionSelectWorkload(ActionSelectWorkload object) {
return createActionSelectWorkloadAdapter();
}
@Override
public Adapter caseActionDialog(ActionDialog object) {
return createActionDialogAdapter();
}
@Override
public Adapter caseActionReport(ActionReport object) {
return createActionReportAdapter();
}
@Override
public Adapter caseActionChart(ActionChart object) {
return createActionChartAdapter();
}
@Override
public Adapter caseActionWorkflow(ActionWorkflow object) {
return createActionWorkflowAdapter();
}
@Override
public Adapter caseActionDatainterchange(ActionDatainterchange object) {
return createActionDatainterchangeAdapter();
}
@Override
public Adapter caseActionUI(ActionUI object) {
return createActionUIAdapter();
}
@Override
public Adapter caseActionFunction(ActionFunction object) {
return createActionFunctionAdapter();
}
@Override
public Adapter caseActionParameter(ActionParameter object) {
return createActionParameterAdapter();
}
@Override
public Adapter caseLLazyResolver(LLazyResolver object) {
return createLLazyResolverAdapter();
}
@Override
public Adapter caseLPackage(LPackage object) {
return createLPackageAdapter();
}
@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.osbp.xtext.action.ActionModel <em>Action 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.osbp.xtext.action.ActionModel
* @generated
*/
public Adapter createActionModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionLazyResolver <em>Action Lazy Resolver</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.osbp.xtext.action.ActionLazyResolver
* @generated
*/
public Adapter createActionLazyResolverAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionPackage <em>Action Package</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.osbp.xtext.action.ActionPackage
* @generated
*/
public Adapter createActionPackageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionBase <em>Action Base</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.osbp.xtext.action.ActionBase
* @generated
*/
public Adapter createActionBaseAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionCommand <em>Action Command</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.osbp.xtext.action.ActionCommand
* @generated
*/
public Adapter createActionCommandAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionToolbar <em>Action Toolbar</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.osbp.xtext.action.ActionToolbar
* @generated
*/
public Adapter createActionToolbarAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionToolbarItem <em>Action Toolbar 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.osbp.xtext.action.ActionToolbarItem
* @generated
*/
public Adapter createActionToolbarItemAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionButton <em>Action Button</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.osbp.xtext.action.ActionButton
* @generated
*/
public Adapter createActionButtonAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionSpacer <em>Action Spacer</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.osbp.xtext.action.ActionSpacer
* @generated
*/
public Adapter createActionSpacerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionType <em>Action Type</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.osbp.xtext.action.ActionType
* @generated
*/
public Adapter createActionTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionTask <em>Action Task</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.osbp.xtext.action.ActionTask
* @generated
*/
public Adapter createActionTaskAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionSelectWorkload <em>Action Select Workload</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.osbp.xtext.action.ActionSelectWorkload
* @generated
*/
public Adapter createActionSelectWorkloadAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionDialog <em>Action Dialog</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.osbp.xtext.action.ActionDialog
* @generated
*/
public Adapter createActionDialogAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionReport <em>Action Report</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.osbp.xtext.action.ActionReport
* @generated
*/
public Adapter createActionReportAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionChart <em>Action Chart</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.osbp.xtext.action.ActionChart
* @generated
*/
public Adapter createActionChartAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionWorkflow <em>Action Workflow</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.osbp.xtext.action.ActionWorkflow
* @generated
*/
public Adapter createActionWorkflowAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionDatainterchange <em>Action Datainterchange</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.osbp.xtext.action.ActionDatainterchange
* @generated
*/
public Adapter createActionDatainterchangeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionUI <em>Action UI</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.osbp.xtext.action.ActionUI
* @generated
*/
public Adapter createActionUIAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionFunction <em>Action Function</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.osbp.xtext.action.ActionFunction
* @generated
*/
public Adapter createActionFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.action.ActionParameter <em>Action 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 org.eclipse.osbp.xtext.action.ActionParameter
* @generated
*/
public Adapter createActionParameterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.dsl.semantic.common.types.LLazyResolver <em>LLazy Resolver</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.osbp.dsl.semantic.common.types.LLazyResolver
* @generated
*/
public Adapter createLLazyResolverAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.dsl.semantic.common.types.LPackage <em>LPackage</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.osbp.dsl.semantic.common.types.LPackage
* @generated
*/
public Adapter createLPackageAdapter() {
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;
}
} //ActionDSLAdapterFactory