| /** |
| * 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 |
| * |
| * Based on ideas from Xtext, Xtend, Xcore |
| * |
| * Contributors: |
| * Joerg Riegel - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.chart.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.chart.*; |
| |
| /** |
| * <!-- 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.chart.ChartDSLPackage |
| * @generated |
| */ |
| public class ChartDSLAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static ChartDSLPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ChartDSLAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = ChartDSLPackage.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 ChartDSLSwitch<Adapter> modelSwitch = |
| new ChartDSLSwitch<Adapter>() { |
| @Override |
| public Adapter caseChartModel(ChartModel object) { |
| return createChartModelAdapter(); |
| } |
| @Override |
| public Adapter caseChartLazyResolver(ChartLazyResolver object) { |
| return createChartLazyResolverAdapter(); |
| } |
| @Override |
| public Adapter caseChartBase(ChartBase object) { |
| return createChartBaseAdapter(); |
| } |
| @Override |
| public Adapter caseChartPackage(ChartPackage object) { |
| return createChartPackageAdapter(); |
| } |
| @Override |
| public Adapter caseChart(Chart object) { |
| return createChartAdapter(); |
| } |
| @Override |
| public Adapter caseChartOption(ChartOption object) { |
| return createChartOptionAdapter(); |
| } |
| @Override |
| public Adapter caseChartBar(ChartBar object) { |
| return createChartBarAdapter(); |
| } |
| @Override |
| public Adapter caseChartLine(ChartLine object) { |
| return createChartLineAdapter(); |
| } |
| @Override |
| public Adapter caseChartPie(ChartPie object) { |
| return createChartPieAdapter(); |
| } |
| @Override |
| public Adapter caseChartDonut(ChartDonut object) { |
| return createChartDonutAdapter(); |
| } |
| @Override |
| public Adapter caseChartBubble(ChartBubble object) { |
| return createChartBubbleAdapter(); |
| } |
| @Override |
| public Adapter caseChartGauge(ChartGauge object) { |
| return createChartGaugeAdapter(); |
| } |
| @Override |
| public Adapter caseChartTree(ChartTree object) { |
| return createChartTreeAdapter(); |
| } |
| @Override |
| public Adapter caseChartInterval(ChartInterval object) { |
| return createChartIntervalAdapter(); |
| } |
| @Override |
| public Adapter caseChartNumberInterval(ChartNumberInterval object) { |
| return createChartNumberIntervalAdapter(); |
| } |
| @Override |
| public Adapter caseChartDatamart(ChartDatamart object) { |
| return createChartDatamartAdapter(); |
| } |
| @Override |
| public Adapter caseChartElement(ChartElement object) { |
| return createChartElementAdapter(); |
| } |
| @Override |
| public Adapter caseChartLegend(ChartLegend object) { |
| return createChartLegendAdapter(); |
| } |
| @Override |
| public Adapter caseChartHighlighter(ChartHighlighter object) { |
| return createChartHighlighterAdapter(); |
| } |
| @Override |
| public Adapter caseChartAxis(ChartAxis object) { |
| return createChartAxisAdapter(); |
| } |
| @Override |
| public Adapter caseChartRangeElement(ChartRangeElement object) { |
| return createChartRangeElementAdapter(); |
| } |
| @Override |
| public Adapter caseChartSegmentColor(ChartSegmentColor object) { |
| return createChartSegmentColorAdapter(); |
| } |
| @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.chart.ChartModel <em>Chart 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.chart.ChartModel |
| * @generated |
| */ |
| public Adapter createChartModelAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartLazyResolver <em>Chart 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.chart.ChartLazyResolver |
| * @generated |
| */ |
| public Adapter createChartLazyResolverAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartBase <em>Chart 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.chart.ChartBase |
| * @generated |
| */ |
| public Adapter createChartBaseAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartPackage <em>Chart 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.chart.ChartPackage |
| * @generated |
| */ |
| public Adapter createChartPackageAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.Chart <em>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.chart.Chart |
| * @generated |
| */ |
| public Adapter createChartAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartOption <em>Chart Option</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.chart.ChartOption |
| * @generated |
| */ |
| public Adapter createChartOptionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartBar <em>Chart Bar</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.chart.ChartBar |
| * @generated |
| */ |
| public Adapter createChartBarAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartLine <em>Chart Line</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.chart.ChartLine |
| * @generated |
| */ |
| public Adapter createChartLineAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartPie <em>Chart Pie</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.chart.ChartPie |
| * @generated |
| */ |
| public Adapter createChartPieAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartDonut <em>Chart Donut</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.chart.ChartDonut |
| * @generated |
| */ |
| public Adapter createChartDonutAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartBubble <em>Chart Bubble</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.chart.ChartBubble |
| * @generated |
| */ |
| public Adapter createChartBubbleAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartGauge <em>Chart Gauge</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.chart.ChartGauge |
| * @generated |
| */ |
| public Adapter createChartGaugeAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartTree <em>Chart Tree</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.chart.ChartTree |
| * @generated |
| */ |
| public Adapter createChartTreeAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartInterval <em>Chart Interval</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.chart.ChartInterval |
| * @generated |
| */ |
| public Adapter createChartIntervalAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartNumberInterval <em>Chart Number Interval</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.chart.ChartNumberInterval |
| * @generated |
| */ |
| public Adapter createChartNumberIntervalAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartDatamart <em>Chart Datamart</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.chart.ChartDatamart |
| * @generated |
| */ |
| public Adapter createChartDatamartAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartElement <em>Chart 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.osbp.xtext.chart.ChartElement |
| * @generated |
| */ |
| public Adapter createChartElementAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartLegend <em>Chart Legend</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.chart.ChartLegend |
| * @generated |
| */ |
| public Adapter createChartLegendAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartHighlighter <em>Chart Highlighter</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.chart.ChartHighlighter |
| * @generated |
| */ |
| public Adapter createChartHighlighterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartAxis <em>Chart Axis</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.chart.ChartAxis |
| * @generated |
| */ |
| public Adapter createChartAxisAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartRangeElement <em>Chart Range 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.osbp.xtext.chart.ChartRangeElement |
| * @generated |
| */ |
| public Adapter createChartRangeElementAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.xtext.chart.ChartSegmentColor <em>Chart Segment Color</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.chart.ChartSegmentColor |
| * @generated |
| */ |
| public Adapter createChartSegmentColorAdapter() { |
| 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; |
| } |
| |
| } //ChartDSLAdapterFactory |