blob: 199059b2bcc03ff86ede82a85ee0e8413a55f3ba [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 v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Nikolai Mansourov (Hatha Systems) - initial API and implementation
* *******************************************************************************
*
* $Id$
*/
package org.eclipse.modisco.omg.kdm.ui.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.modisco.omg.kdm.action.AbstractActionRelationship;
import org.eclipse.modisco.omg.kdm.core.Element;
import org.eclipse.modisco.omg.kdm.core.KDMEntity;
import org.eclipse.modisco.omg.kdm.core.KDMRelationship;
import org.eclipse.modisco.omg.kdm.core.ModelElement;
import org.eclipse.modisco.omg.kdm.kdm.KDMFramework;
import org.eclipse.modisco.omg.kdm.kdm.KDMModel;
import org.eclipse.modisco.omg.kdm.ui.AbstractUIElement;
import org.eclipse.modisco.omg.kdm.ui.AbstractUIRelationship;
import org.eclipse.modisco.omg.kdm.ui.Displays;
import org.eclipse.modisco.omg.kdm.ui.DisplaysImage;
import org.eclipse.modisco.omg.kdm.ui.ManagesUI;
import org.eclipse.modisco.omg.kdm.ui.ReadsUI;
import org.eclipse.modisco.omg.kdm.ui.Report;
import org.eclipse.modisco.omg.kdm.ui.Screen;
import org.eclipse.modisco.omg.kdm.ui.UIAction;
import org.eclipse.modisco.omg.kdm.ui.UIDisplay;
import org.eclipse.modisco.omg.kdm.ui.UIElement;
import org.eclipse.modisco.omg.kdm.ui.UIEvent;
import org.eclipse.modisco.omg.kdm.ui.UIField;
import org.eclipse.modisco.omg.kdm.ui.UIFlow;
import org.eclipse.modisco.omg.kdm.ui.UILayout;
import org.eclipse.modisco.omg.kdm.ui.UIModel;
import org.eclipse.modisco.omg.kdm.ui.UIRelationship;
import org.eclipse.modisco.omg.kdm.ui.UIResource;
import org.eclipse.modisco.omg.kdm.ui.UiPackage;
import org.eclipse.modisco.omg.kdm.ui.WritesUI;
/**
* <!-- 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.omg.kdm.ui.UiPackage
* @generated
*/
@SuppressWarnings("all")
public class UiAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static UiPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public UiAdapterFactory() {
if (UiAdapterFactory.modelPackage == null) {
UiAdapterFactory.modelPackage = UiPackage.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 == UiAdapterFactory.modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == UiAdapterFactory.modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected UiSwitch<Adapter> modelSwitch =
new UiSwitch<Adapter>() {
@Override
public Adapter caseAbstractUIElement(final AbstractUIElement object) {
return createAbstractUIElementAdapter();
}
@Override
public Adapter caseUIResource(final UIResource object) {
return createUIResourceAdapter();
}
@Override
public Adapter caseUIDisplay(final UIDisplay object) {
return createUIDisplayAdapter();
}
@Override
public Adapter caseScreen(final Screen object) {
return createScreenAdapter();
}
@Override
public Adapter caseReport(final Report object) {
return createReportAdapter();
}
@Override
public Adapter caseUIModel(final UIModel object) {
return createUIModelAdapter();
}
@Override
public Adapter caseAbstractUIRelationship(final AbstractUIRelationship object) {
return createAbstractUIRelationshipAdapter();
}
@Override
public Adapter caseUILayout(final UILayout object) {
return createUILayoutAdapter();
}
@Override
public Adapter caseUIField(final UIField object) {
return createUIFieldAdapter();
}
@Override
public Adapter caseDisplaysImage(final DisplaysImage object) {
return createDisplaysImageAdapter();
}
@Override
public Adapter caseDisplays(final Displays object) {
return createDisplaysAdapter();
}
@Override
public Adapter caseUIFlow(final UIFlow object) {
return createUIFlowAdapter();
}
@Override
public Adapter caseUIElement(final UIElement object) {
return createUIElementAdapter();
}
@Override
public Adapter caseUIRelationship(final UIRelationship object) {
return createUIRelationshipAdapter();
}
@Override
public Adapter caseUIAction(final UIAction object) {
return createUIActionAdapter();
}
@Override
public Adapter caseUIEvent(final UIEvent object) {
return createUIEventAdapter();
}
@Override
public Adapter caseReadsUI(final ReadsUI object) {
return createReadsUIAdapter();
}
@Override
public Adapter caseWritesUI(final WritesUI object) {
return createWritesUIAdapter();
}
@Override
public Adapter caseManagesUI(final ManagesUI object) {
return createManagesUIAdapter();
}
@Override
public Adapter caseElement(final Element object) {
return createElementAdapter();
}
@Override
public Adapter caseModelElement(final ModelElement object) {
return createModelElementAdapter();
}
@Override
public Adapter caseKDMEntity(final KDMEntity object) {
return createKDMEntityAdapter();
}
@Override
public Adapter caseKDMFramework(final KDMFramework object) {
return createKDMFrameworkAdapter();
}
@Override
public Adapter caseKDMModel(final KDMModel object) {
return createKDMModelAdapter();
}
@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.modisco.omg.kdm.ui.AbstractUIElement <em>Abstract UI 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.omg.kdm.ui.AbstractUIElement
* @generated
*/
public Adapter createAbstractUIElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIResource <em>UI 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.modisco.omg.kdm.ui.UIResource
* @generated
*/
public Adapter createUIResourceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIDisplay <em>UI Display</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.omg.kdm.ui.UIDisplay
* @generated
*/
public Adapter createUIDisplayAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.Screen <em>Screen</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.omg.kdm.ui.Screen
* @generated
*/
public Adapter createScreenAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.Report <em>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.modisco.omg.kdm.ui.Report
* @generated
*/
public Adapter createReportAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIModel <em>UI 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.modisco.omg.kdm.ui.UIModel
* @generated
*/
public Adapter createUIModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.AbstractUIRelationship <em>Abstract UI 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.modisco.omg.kdm.ui.AbstractUIRelationship
* @generated
*/
public Adapter createAbstractUIRelationshipAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UILayout <em>UI Layout</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.omg.kdm.ui.UILayout
* @generated
*/
public Adapter createUILayoutAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIField <em>UI Field</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.omg.kdm.ui.UIField
* @generated
*/
public Adapter createUIFieldAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.DisplaysImage <em>Displays Image</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.omg.kdm.ui.DisplaysImage
* @generated
*/
public Adapter createDisplaysImageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.Displays <em>Displays</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.omg.kdm.ui.Displays
* @generated
*/
public Adapter createDisplaysAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIFlow <em>UI Flow</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.omg.kdm.ui.UIFlow
* @generated
*/
public Adapter createUIFlowAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIElement <em>UI 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.omg.kdm.ui.UIElement
* @generated
*/
public Adapter createUIElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIRelationship <em>UI 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.modisco.omg.kdm.ui.UIRelationship
* @generated
*/
public Adapter createUIRelationshipAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIAction <em>UI 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.modisco.omg.kdm.ui.UIAction
* @generated
*/
public Adapter createUIActionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.UIEvent <em>UI 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.modisco.omg.kdm.ui.UIEvent
* @generated
*/
public Adapter createUIEventAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.ReadsUI <em>Reads 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.modisco.omg.kdm.ui.ReadsUI
* @generated
*/
public Adapter createReadsUIAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.WritesUI <em>Writes 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.modisco.omg.kdm.ui.WritesUI
* @generated
*/
public Adapter createWritesUIAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.modisco.omg.kdm.ui.ManagesUI <em>Manages 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.modisco.omg.kdm.ui.ManagesUI
* @generated
*/
public Adapter createManagesUIAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.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.modisco.omg.kdm.core.Element
* @generated
*/
public Adapter createElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.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.modisco.omg.kdm.core.ModelElement
* @generated
*/
public Adapter createModelElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.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.modisco.omg.kdm.core.KDMEntity
* @generated
*/
public Adapter createKDMEntityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.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.modisco.omg.kdm.kdm.KDMFramework
* @generated
*/
public Adapter createKDMFrameworkAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.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.modisco.omg.kdm.kdm.KDMModel
* @generated
*/
public Adapter createKDMModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.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.modisco.omg.kdm.core.KDMRelationship
* @generated
*/
public Adapter createKDMRelationshipAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.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.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;
}
} //UiAdapterFactory