/******************************************************************************* * Copyright (c) 2006-2012 * Software Technology Group, Dresden University of Technology * DevBoost GmbH, Berlin, Amtsgericht Charlottenburg, HRB 140026 * * 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: * Software Technology Group - TU Dresden, Germany; * DevBoost GmbH - Berlin, Germany * - initial API and implementation ******************************************************************************/ /** * <copyright> * </copyright> * * $Id$ */ package org.oasisopen.names.tc.opendocument.xmlns.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.oasisopen.names.tc.opendocument.xmlns.chart.AxisType; import org.oasisopen.names.tc.opendocument.xmlns.chart.CategoriesType; import org.oasisopen.names.tc.opendocument.xmlns.chart.ChartPackage; import org.oasisopen.names.tc.opendocument.xmlns.chart.DataPointType; import org.oasisopen.names.tc.opendocument.xmlns.chart.DocumentRoot; import org.oasisopen.names.tc.opendocument.xmlns.chart.DomainType; import org.oasisopen.names.tc.opendocument.xmlns.chart.ErrorIndicatorType; import org.oasisopen.names.tc.opendocument.xmlns.chart.FloorType; import org.oasisopen.names.tc.opendocument.xmlns.chart.FooterType; import org.oasisopen.names.tc.opendocument.xmlns.chart.GridType; import org.oasisopen.names.tc.opendocument.xmlns.chart.LegendType; import org.oasisopen.names.tc.opendocument.xmlns.chart.MeanValueType; import org.oasisopen.names.tc.opendocument.xmlns.chart.PlotAreaType; import org.oasisopen.names.tc.opendocument.xmlns.chart.RegressionCurveType; import org.oasisopen.names.tc.opendocument.xmlns.chart.SeriesType; import org.oasisopen.names.tc.opendocument.xmlns.chart.StockGainMarkerType; import org.oasisopen.names.tc.opendocument.xmlns.chart.StockLossMarkerType; import org.oasisopen.names.tc.opendocument.xmlns.chart.StockRangeLineType; import org.oasisopen.names.tc.opendocument.xmlns.chart.SubtitleType; import org.oasisopen.names.tc.opendocument.xmlns.chart.SymbolImageType; import org.oasisopen.names.tc.opendocument.xmlns.chart.TitleType; import org.oasisopen.names.tc.opendocument.xmlns.chart.WallType; /** * <!-- 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.oasisopen.names.tc.opendocument.xmlns.chart.ChartPackage * @generated */ public class ChartAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static ChartPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ChartAdapterFactory() { if (modelPackage == null) { modelPackage = ChartPackage.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 ChartSwitch<Adapter> modelSwitch = new ChartSwitch<Adapter>() { @Override public Adapter caseAxisType(AxisType object) { return createAxisTypeAdapter(); } @Override public Adapter caseCategoriesType(CategoriesType object) { return createCategoriesTypeAdapter(); } @Override public Adapter caseDataPointType(DataPointType object) { return createDataPointTypeAdapter(); } @Override public Adapter caseDocumentRoot(DocumentRoot object) { return createDocumentRootAdapter(); } @Override public Adapter caseDomainType(DomainType object) { return createDomainTypeAdapter(); } @Override public Adapter caseErrorIndicatorType(ErrorIndicatorType object) { return createErrorIndicatorTypeAdapter(); } @Override public Adapter caseFloorType(FloorType object) { return createFloorTypeAdapter(); } @Override public Adapter caseFooterType(FooterType object) { return createFooterTypeAdapter(); } @Override public Adapter caseGridType(GridType object) { return createGridTypeAdapter(); } @Override public Adapter caseLegendType(LegendType object) { return createLegendTypeAdapter(); } @Override public Adapter caseMeanValueType(MeanValueType object) { return createMeanValueTypeAdapter(); } @Override public Adapter casePlotAreaType(PlotAreaType object) { return createPlotAreaTypeAdapter(); } @Override public Adapter caseRegressionCurveType(RegressionCurveType object) { return createRegressionCurveTypeAdapter(); } @Override public Adapter caseSeriesType(SeriesType object) { return createSeriesTypeAdapter(); } @Override public Adapter caseStockGainMarkerType(StockGainMarkerType object) { return createStockGainMarkerTypeAdapter(); } @Override public Adapter caseStockLossMarkerType(StockLossMarkerType object) { return createStockLossMarkerTypeAdapter(); } @Override public Adapter caseStockRangeLineType(StockRangeLineType object) { return createStockRangeLineTypeAdapter(); } @Override public Adapter caseSubtitleType(SubtitleType object) { return createSubtitleTypeAdapter(); } @Override public Adapter caseSymbolImageType(SymbolImageType object) { return createSymbolImageTypeAdapter(); } @Override public Adapter caseTitleType(TitleType object) { return createTitleTypeAdapter(); } @Override public Adapter caseWallType(WallType object) { return createWallTypeAdapter(); } @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.oasisopen.names.tc.opendocument.xmlns.chart.AxisType <em>Axis 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.oasisopen.names.tc.opendocument.xmlns.chart.AxisType * @generated */ public Adapter createAxisTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.CategoriesType <em>Categories 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.oasisopen.names.tc.opendocument.xmlns.chart.CategoriesType * @generated */ public Adapter createCategoriesTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.DataPointType <em>Data Point 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.oasisopen.names.tc.opendocument.xmlns.chart.DataPointType * @generated */ public Adapter createDataPointTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.DocumentRoot <em>Document Root</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.oasisopen.names.tc.opendocument.xmlns.chart.DocumentRoot * @generated */ public Adapter createDocumentRootAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.DomainType <em>Domain 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.oasisopen.names.tc.opendocument.xmlns.chart.DomainType * @generated */ public Adapter createDomainTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.ErrorIndicatorType <em>Error Indicator 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.oasisopen.names.tc.opendocument.xmlns.chart.ErrorIndicatorType * @generated */ public Adapter createErrorIndicatorTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.FloorType <em>Floor 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.oasisopen.names.tc.opendocument.xmlns.chart.FloorType * @generated */ public Adapter createFloorTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.FooterType <em>Footer 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.oasisopen.names.tc.opendocument.xmlns.chart.FooterType * @generated */ public Adapter createFooterTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.GridType <em>Grid 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.oasisopen.names.tc.opendocument.xmlns.chart.GridType * @generated */ public Adapter createGridTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.LegendType <em>Legend 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.oasisopen.names.tc.opendocument.xmlns.chart.LegendType * @generated */ public Adapter createLegendTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.MeanValueType <em>Mean Value 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.oasisopen.names.tc.opendocument.xmlns.chart.MeanValueType * @generated */ public Adapter createMeanValueTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.PlotAreaType <em>Plot Area 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.oasisopen.names.tc.opendocument.xmlns.chart.PlotAreaType * @generated */ public Adapter createPlotAreaTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.RegressionCurveType <em>Regression Curve 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.oasisopen.names.tc.opendocument.xmlns.chart.RegressionCurveType * @generated */ public Adapter createRegressionCurveTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.SeriesType <em>Series 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.oasisopen.names.tc.opendocument.xmlns.chart.SeriesType * @generated */ public Adapter createSeriesTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.StockGainMarkerType <em>Stock Gain Marker 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.oasisopen.names.tc.opendocument.xmlns.chart.StockGainMarkerType * @generated */ public Adapter createStockGainMarkerTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.StockLossMarkerType <em>Stock Loss Marker 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.oasisopen.names.tc.opendocument.xmlns.chart.StockLossMarkerType * @generated */ public Adapter createStockLossMarkerTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.StockRangeLineType <em>Stock Range Line 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.oasisopen.names.tc.opendocument.xmlns.chart.StockRangeLineType * @generated */ public Adapter createStockRangeLineTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.SubtitleType <em>Subtitle 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.oasisopen.names.tc.opendocument.xmlns.chart.SubtitleType * @generated */ public Adapter createSubtitleTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.SymbolImageType <em>Symbol Image 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.oasisopen.names.tc.opendocument.xmlns.chart.SymbolImageType * @generated */ public Adapter createSymbolImageTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.TitleType <em>Title 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.oasisopen.names.tc.opendocument.xmlns.chart.TitleType * @generated */ public Adapter createTitleTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.oasisopen.names.tc.opendocument.xmlns.chart.WallType <em>Wall 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.oasisopen.names.tc.opendocument.xmlns.chart.WallType * @generated */ public Adapter createWallTypeAdapter() { 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; } } //ChartAdapterFactory