blob: 2dc383ba5206ba88c816b37d6f4b17a527d886b4 [file] [log] [blame]
/**
* *******************************************************************************
* Copyright (c) 2008 Hatha Systems.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Nikolai Mansourov (Hatha Systems) - initial API and implementation
* *******************************************************************************
*
* $Id$
*/
package org.eclipse.gmt.modisco.omg.kdm.event.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.gmt.modisco.omg.kdm.action.AbstractActionRelationship;
import org.eclipse.gmt.modisco.omg.kdm.core.Element;
import org.eclipse.gmt.modisco.omg.kdm.core.KDMEntity;
import org.eclipse.gmt.modisco.omg.kdm.core.KDMRelationship;
import org.eclipse.gmt.modisco.omg.kdm.core.ModelElement;
import org.eclipse.gmt.modisco.omg.kdm.event.AbstractEventElement;
import org.eclipse.gmt.modisco.omg.kdm.event.AbstractEventRelationship;
import org.eclipse.gmt.modisco.omg.kdm.event.ConsumesEvent;
import org.eclipse.gmt.modisco.omg.kdm.event.Event;
import org.eclipse.gmt.modisco.omg.kdm.event.EventAction;
import org.eclipse.gmt.modisco.omg.kdm.event.EventElement;
import org.eclipse.gmt.modisco.omg.kdm.event.EventModel;
import org.eclipse.gmt.modisco.omg.kdm.event.EventPackage;
import org.eclipse.gmt.modisco.omg.kdm.event.EventRelationship;
import org.eclipse.gmt.modisco.omg.kdm.event.EventResource;
import org.eclipse.gmt.modisco.omg.kdm.event.HasState;
import org.eclipse.gmt.modisco.omg.kdm.event.InitialState;
import org.eclipse.gmt.modisco.omg.kdm.event.NextState;
import org.eclipse.gmt.modisco.omg.kdm.event.OnEntry;
import org.eclipse.gmt.modisco.omg.kdm.event.OnExit;
import org.eclipse.gmt.modisco.omg.kdm.event.ProducesEvent;
import org.eclipse.gmt.modisco.omg.kdm.event.ReadsState;
import org.eclipse.gmt.modisco.omg.kdm.event.State;
import org.eclipse.gmt.modisco.omg.kdm.event.Transition;
import org.eclipse.gmt.modisco.omg.kdm.kdm.KDMFramework;
import org.eclipse.gmt.modisco.omg.kdm.kdm.KDMModel;
/**
* <!-- 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.gmt.modisco.omg.kdm.event.EventPackage
* @generated
*/
@SuppressWarnings("all")
public class EventAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static EventPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EventAdapterFactory() {
if (EventAdapterFactory.modelPackage == null) {
EventAdapterFactory.modelPackage = EventPackage.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 == EventAdapterFactory.modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == EventAdapterFactory.modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EventSwitch<Adapter> modelSwitch =
new EventSwitch<Adapter>() {
@Override
public Adapter caseEventModel(final EventModel object) {
return createEventModelAdapter();
}
@Override
public Adapter caseAbstractEventElement(final AbstractEventElement object) {
return createAbstractEventElementAdapter();
}
@Override
public Adapter caseEvent(final Event object) {
return createEventAdapter();
}
@Override
public Adapter caseAbstractEventRelationship(final AbstractEventRelationship object) {
return createAbstractEventRelationshipAdapter();
}
@Override
public Adapter caseEventRelationship(final EventRelationship object) {
return createEventRelationshipAdapter();
}
@Override
public Adapter caseEventResource(final EventResource object) {
return createEventResourceAdapter();
}
@Override
public Adapter caseState(final State object) {
return createStateAdapter();
}
@Override
public Adapter caseTransition(final Transition object) {
return createTransitionAdapter();
}
@Override
public Adapter caseOnEntry(final OnEntry object) {
return createOnEntryAdapter();
}
@Override
public Adapter caseOnExit(final OnExit object) {
return createOnExitAdapter();
}
@Override
public Adapter caseEventAction(final EventAction object) {
return createEventActionAdapter();
}
@Override
public Adapter caseReadsState(final ReadsState object) {
return createReadsStateAdapter();
}
@Override
public Adapter caseProducesEvent(final ProducesEvent object) {
return createProducesEventAdapter();
}
@Override
public Adapter caseConsumesEvent(final ConsumesEvent object) {
return createConsumesEventAdapter();
}
@Override
public Adapter caseNextState(final NextState object) {
return createNextStateAdapter();
}
@Override
public Adapter caseInitialState(final InitialState object) {
return createInitialStateAdapter();
}
@Override
public Adapter caseEventElement(final EventElement object) {
return createEventElementAdapter();
}
@Override
public Adapter caseHasState(final HasState object) {
return createHasStateAdapter();
}
@Override
public Adapter caseElement(final Element object) {
return createElementAdapter();
}
@Override
public Adapter caseModelElement(final ModelElement object) {
return createModelElementAdapter();
}
@Override
public Adapter caseKDMFramework(final KDMFramework object) {
return createKDMFrameworkAdapter();
}
@Override
public Adapter caseKDMModel(final KDMModel object) {
return createKDMModelAdapter();
}
@Override
public Adapter caseKDMEntity(final KDMEntity object) {
return createKDMEntityAdapter();
}
@Override
public Adapter caseKDMRelationship(final KDMRelationship object) {
return createKDMRelationshipAdapter();
}
@Override
public Adapter caseAbstractActionRelationship(final AbstractActionRelationship object) {
return createAbstractActionRelationshipAdapter();
}
@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.gmt.modisco.omg.kdm.event.EventModel <em>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.gmt.modisco.omg.kdm.event.EventModel
* @generated
*/
public Adapter createEventModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.AbstractEventElement <em>Abstract Event 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.gmt.modisco.omg.kdm.event.AbstractEventElement
* @generated
*/
public Adapter createAbstractEventElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.Event <em>Event</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.gmt.modisco.omg.kdm.event.Event
* @generated
*/
public Adapter createEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.AbstractEventRelationship <em>Abstract Event Relationship</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.gmt.modisco.omg.kdm.event.AbstractEventRelationship
* @generated
*/
public Adapter createAbstractEventRelationshipAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.EventRelationship <em>Relationship</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.gmt.modisco.omg.kdm.event.EventRelationship
* @generated
*/
public Adapter createEventRelationshipAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.EventResource <em>Resource</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.gmt.modisco.omg.kdm.event.EventResource
* @generated
*/
public Adapter createEventResourceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.State <em>State</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.gmt.modisco.omg.kdm.event.State
* @generated
*/
public Adapter createStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.Transition <em>Transition</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.gmt.modisco.omg.kdm.event.Transition
* @generated
*/
public Adapter createTransitionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.OnEntry <em>On Entry</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.gmt.modisco.omg.kdm.event.OnEntry
* @generated
*/
public Adapter createOnEntryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.OnExit <em>On Exit</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.gmt.modisco.omg.kdm.event.OnExit
* @generated
*/
public Adapter createOnExitAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.EventAction <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 org.eclipse.gmt.modisco.omg.kdm.event.EventAction
* @generated
*/
public Adapter createEventActionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.ReadsState <em>Reads State</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.gmt.modisco.omg.kdm.event.ReadsState
* @generated
*/
public Adapter createReadsStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.ProducesEvent <em>Produces Event</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.gmt.modisco.omg.kdm.event.ProducesEvent
* @generated
*/
public Adapter createProducesEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.ConsumesEvent <em>Consumes Event</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.gmt.modisco.omg.kdm.event.ConsumesEvent
* @generated
*/
public Adapter createConsumesEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.NextState <em>Next State</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.gmt.modisco.omg.kdm.event.NextState
* @generated
*/
public Adapter createNextStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.InitialState <em>Initial State</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.gmt.modisco.omg.kdm.event.InitialState
* @generated
*/
public Adapter createInitialStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.EventElement <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.gmt.modisco.omg.kdm.event.EventElement
* @generated
*/
public Adapter createEventElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.event.HasState <em>Has State</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.gmt.modisco.omg.kdm.event.HasState
* @generated
*/
public Adapter createHasStateAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.core.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.gmt.modisco.omg.kdm.core.Element
* @generated
*/
public Adapter createElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.core.ModelElement <em>Model 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.gmt.modisco.omg.kdm.core.ModelElement
* @generated
*/
public Adapter createModelElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.kdm.KDMFramework <em>KDM Framework</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.gmt.modisco.omg.kdm.kdm.KDMFramework
* @generated
*/
public Adapter createKDMFrameworkAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.kdm.KDMModel <em>KDM 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.gmt.modisco.omg.kdm.kdm.KDMModel
* @generated
*/
public Adapter createKDMModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.core.KDMEntity <em>KDM Entity</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.gmt.modisco.omg.kdm.core.KDMEntity
* @generated
*/
public Adapter createKDMEntityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.core.KDMRelationship <em>KDM Relationship</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.gmt.modisco.omg.kdm.core.KDMRelationship
* @generated
*/
public Adapter createKDMRelationshipAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.gmt.modisco.omg.kdm.action.AbstractActionRelationship <em>Abstract Action Relationship</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.gmt.modisco.omg.kdm.action.AbstractActionRelationship
* @generated
*/
public Adapter createAbstractActionRelationshipAdapter() {
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;
}
} //EventAdapterFactory