/******************************************************************************* | |
* Copyright (c) 2011 Mia-Software 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 | |
* http://www.eclipse.org/legal/epl-v20.html | |
* | |
* Contributors: | |
* Nicolas Payneau (Mia-Software) - initial API and implementation | |
* Nicolas Bros (Mia-Software) - Bug 337402 - [Discovery Workflow] refactoring | |
*******************************************************************************/ | |
package org.eclipse.modisco.workflow.modiscoworkflow.util; | |
import java.util.Map; | |
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.modisco.workflow.modiscoworkflow.Element; | |
import org.eclipse.modisco.workflow.modiscoworkflow.ExportInfos; | |
import org.eclipse.modisco.workflow.modiscoworkflow.ModiscoworkflowPackage; | |
import org.eclipse.modisco.workflow.modiscoworkflow.Work; | |
import org.eclipse.modisco.workflow.modiscoworkflow.WorkParameter; | |
import org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterBooleanValue; | |
import org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterIntegerValue; | |
import org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterMapValue; | |
import org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterStringListValue; | |
import org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterStringValue; | |
import org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterValue; | |
import org.eclipse.modisco.workflow.modiscoworkflow.Workflow; | |
/** | |
* <!-- 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.modisco.workflow.modiscoworkflow.ModiscoworkflowPackage | |
* @generated | |
*/ | |
public class ModiscoworkflowAdapterFactory extends AdapterFactoryImpl { | |
/** | |
* The cached model package. <!-- begin-user-doc --> <!-- end-user-doc --> | |
* | |
* @generated | |
*/ | |
protected static ModiscoworkflowPackage modelPackage; | |
/** | |
* Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- | |
* end-user-doc --> | |
* | |
* @generated | |
*/ | |
public ModiscoworkflowAdapterFactory() { | |
if (ModiscoworkflowAdapterFactory.modelPackage == null) { | |
ModiscoworkflowAdapterFactory.modelPackage = ModiscoworkflowPackage.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(final Object object) { | |
if (object == ModiscoworkflowAdapterFactory.modelPackage) { | |
return true; | |
} | |
if (object instanceof EObject) { | |
return ((EObject) object).eClass().getEPackage() == ModiscoworkflowAdapterFactory.modelPackage; | |
} | |
return false; | |
} | |
/** | |
* The switch that delegates to the <code>createXXX</code> methods. <!-- | |
* begin-user-doc --> <!-- end-user-doc --> | |
* | |
* @generated | |
*/ | |
protected ModiscoworkflowSwitch<Adapter> modelSwitch = new ModiscoworkflowSwitch<Adapter>() { | |
@Override | |
public Adapter caseElement(final Element object) { | |
return createElementAdapter(); | |
} | |
@Override | |
public Adapter caseWorkflow(final Workflow object) { | |
return createWorkflowAdapter(); | |
} | |
@Override | |
public Adapter caseWork(final Work object) { | |
return createWorkAdapter(); | |
} | |
@Override | |
public Adapter caseWorkParameter(final WorkParameter object) { | |
return createWorkParameterAdapter(); | |
} | |
@Override | |
public Adapter caseWorkParameterValue(final WorkParameterValue object) { | |
return createWorkParameterValueAdapter(); | |
} | |
@Override | |
public Adapter caseWorkParameterStringValue(final WorkParameterStringValue object) { | |
return createWorkParameterStringValueAdapter(); | |
} | |
@Override | |
public Adapter caseWorkParameterStringListValue(final WorkParameterStringListValue object) { | |
return createWorkParameterStringListValueAdapter(); | |
} | |
@Override | |
public Adapter caseWorkParameterBooleanValue(final WorkParameterBooleanValue object) { | |
return createWorkParameterBooleanValueAdapter(); | |
} | |
@Override | |
public Adapter caseWorkParameterIntegerValue(final WorkParameterIntegerValue object) { | |
return createWorkParameterIntegerValueAdapter(); | |
} | |
@Override | |
public Adapter caseWorkParameterMapValue(final WorkParameterMapValue object) { | |
return createWorkParameterMapValueAdapter(); | |
} | |
@Override | |
public Adapter caseWorkParameterEntryValue( | |
final Map.Entry<String, WorkParameterValue> object) { | |
return createWorkParameterEntryValueAdapter(); | |
} | |
@Override | |
public Adapter caseExportInfos(final ExportInfos object) { | |
return createExportInfosAdapter(); | |
} | |
@Override | |
public Adapter defaultCase(final 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(final Notifier target) { | |
return this.modelSwitch.doSwitch((EObject) target); | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.Element | |
* <em>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.modisco.workflow.modiscoworkflow.Element | |
* @generated | |
*/ | |
public Adapter createElementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.Workflow | |
* <em>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.modisco.workflow.modiscoworkflow.Workflow | |
* @generated | |
*/ | |
public Adapter createWorkflowAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.Work <em>Work</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.modisco.workflow.modiscoworkflow.Work | |
* @generated | |
*/ | |
public Adapter createWorkAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.WorkParameter | |
* <em>Work 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.modisco.workflow.modiscoworkflow.WorkParameter | |
* @generated | |
*/ | |
public Adapter createWorkParameterAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterValue | |
* <em>Work Parameter 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.eclipse.modisco.workflow.modiscoworkflow.WorkParameterValue | |
* @generated | |
*/ | |
public Adapter createWorkParameterValueAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterStringValue | |
* <em>Work Parameter String 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.eclipse.modisco.workflow.modiscoworkflow.WorkParameterStringValue | |
* @generated | |
*/ | |
public Adapter createWorkParameterStringValueAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterStringListValue | |
* <em>Work Parameter String List 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.eclipse.modisco.workflow.modiscoworkflow.WorkParameterStringListValue | |
* @generated | |
*/ | |
public Adapter createWorkParameterStringListValueAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterBooleanValue | |
* <em>Work Parameter Boolean 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.eclipse.modisco.workflow.modiscoworkflow.WorkParameterBooleanValue | |
* @generated | |
*/ | |
public Adapter createWorkParameterBooleanValueAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterIntegerValue | |
* <em>Work Parameter Integer 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.eclipse.modisco.workflow.modiscoworkflow.WorkParameterIntegerValue | |
* @generated | |
*/ | |
public Adapter createWorkParameterIntegerValueAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.WorkParameterMapValue | |
* <em>Work Parameter Map 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.eclipse.modisco.workflow.modiscoworkflow.WorkParameterMapValue | |
* @generated | |
*/ | |
public Adapter createWorkParameterMapValueAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link java.util.Map.Entry | |
* <em>Work Parameter Entry 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 java.util.Map.Entry | |
* @generated | |
*/ | |
public Adapter createWorkParameterEntryValueAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class ' | |
* {@link org.eclipse.modisco.workflow.modiscoworkflow.ExportInfos | |
* <em>Export Infos</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.modisco.workflow.modiscoworkflow.ExportInfos | |
* @generated | |
*/ | |
public Adapter createExportInfosAdapter() { | |
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; | |
} | |
} // ModiscoworkflowAdapterFactory |