| /** |
| * |
| * 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 v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| */ |
| package org.eclipse.osbp.infogrid.model.gridsource.style.util; |
| |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.ecore.EPackage; |
| |
| import org.eclipse.emf.ecore.util.Switch; |
| |
| import org.eclipse.osbp.infogrid.model.gridsource.style.*; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * The <b>Switch</b> for the model's inheritance hierarchy. |
| * It supports the call {@link #doSwitch(EObject) doSwitch(object)} |
| * to invoke the <code>caseXXX</code> method for each class of the model, |
| * starting with the actual class of the object |
| * and proceeding up the inheritance hierarchy |
| * until a non-null result is returned, |
| * which is the result of the switch. |
| * <!-- end-user-doc --> |
| * @see org.eclipse.osbp.infogrid.model.gridsource.style.CxGridStylePackage |
| * @generated |
| */ |
| public class CxGridStyleSwitch<T> extends Switch<T> { |
| /** |
| * The cached model package |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static CxGridStylePackage modelPackage; |
| |
| /** |
| * Creates an instance of the switch. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CxGridStyleSwitch() { |
| if (modelPackage == null) { |
| modelPackage = CxGridStylePackage.eINSTANCE; |
| } |
| } |
| |
| /** |
| * Checks whether this is a switch for the given package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @parameter ePackage the package in question. |
| * @return whether this is a switch for the given package. |
| * @generated |
| */ |
| @Override |
| protected boolean isSwitchFor(EPackage ePackage) { |
| return ePackage == modelPackage; |
| } |
| |
| /** |
| * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @return the first non-null result returned by a <code>caseXXX</code> call. |
| * @generated |
| */ |
| @Override |
| protected T doSwitch(int classifierID, EObject theEObject) { |
| switch (classifierID) { |
| case CxGridStylePackage.CX_GRID_PROP_STYLE: { |
| CxGridPropStyle cxGridPropStyle = (CxGridPropStyle)theEObject; |
| T result = caseCxGridPropStyle(cxGridPropStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_HTML_STYLE: { |
| CxGridPropHtmlStyle cxGridPropHtmlStyle = (CxGridPropHtmlStyle)theEObject; |
| T result = caseCxGridPropHtmlStyle(cxGridPropHtmlStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropHtmlStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_TEXT_STYLE: { |
| CxGridPropTextStyle cxGridPropTextStyle = (CxGridPropTextStyle)theEObject; |
| T result = caseCxGridPropTextStyle(cxGridPropTextStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropTextStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_BUTTON_STYLE: { |
| CxGridPropButtonStyle cxGridPropButtonStyle = (CxGridPropButtonStyle)theEObject; |
| T result = caseCxGridPropButtonStyle(cxGridPropButtonStyle); |
| if (result == null) result = caseCxGridEventTopicAble(cxGridPropButtonStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropButtonStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_PROGRESSBAR_STYLE: { |
| CxGridPropProgressbarStyle cxGridPropProgressbarStyle = (CxGridPropProgressbarStyle)theEObject; |
| T result = caseCxGridPropProgressbarStyle(cxGridPropProgressbarStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropProgressbarStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_SPARKLINE_STYLE: { |
| CxGridPropSparklineStyle cxGridPropSparklineStyle = (CxGridPropSparklineStyle)theEObject; |
| T result = caseCxGridPropSparklineStyle(cxGridPropSparklineStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropSparklineStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_BOOLEAN_STYLE: { |
| CxGridPropBooleanStyle cxGridPropBooleanStyle = (CxGridPropBooleanStyle)theEObject; |
| T result = caseCxGridPropBooleanStyle(cxGridPropBooleanStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropBooleanStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_NUMBER_STYLE: { |
| CxGridPropNumberStyle cxGridPropNumberStyle = (CxGridPropNumberStyle)theEObject; |
| T result = caseCxGridPropNumberStyle(cxGridPropNumberStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropNumberStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_IMAGE_STYLE: { |
| CxGridPropImageStyle cxGridPropImageStyle = (CxGridPropImageStyle)theEObject; |
| T result = caseCxGridPropImageStyle(cxGridPropImageStyle); |
| if (result == null) result = caseCxGridEventTopicAble(cxGridPropImageStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropImageStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_INDICATOR_STYLE: { |
| CxGridPropIndicatorStyle cxGridPropIndicatorStyle = (CxGridPropIndicatorStyle)theEObject; |
| T result = caseCxGridPropIndicatorStyle(cxGridPropIndicatorStyle); |
| if (result == null) result = caseCxGridEventTopicAble(cxGridPropIndicatorStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropIndicatorStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_DATE_STYLE: { |
| CxGridPropDateStyle cxGridPropDateStyle = (CxGridPropDateStyle)theEObject; |
| T result = caseCxGridPropDateStyle(cxGridPropDateStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropDateStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_STYLE_CONFIG: { |
| CxGridStyleConfig cxGridStyleConfig = (CxGridStyleConfig)theEObject; |
| T result = caseCxGridStyleConfig(cxGridStyleConfig); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_STYLE_CONFIG_STRING_TO_RESOURCE: { |
| CxGridStyleConfigStringToResource cxGridStyleConfigStringToResource = (CxGridStyleConfigStringToResource)theEObject; |
| T result = caseCxGridStyleConfigStringToResource(cxGridStyleConfigStringToResource); |
| if (result == null) result = caseCxGridStyleConfig(cxGridStyleConfigStringToResource); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_STYLE_CONFIG_NUMERIC_TO_RESOURCE: { |
| CxGridStyleConfigNumericToResource cxGridStyleConfigNumericToResource = (CxGridStyleConfigNumericToResource)theEObject; |
| T result = caseCxGridStyleConfigNumericToResource(cxGridStyleConfigNumericToResource); |
| if (result == null) result = caseCxGridStyleConfig(cxGridStyleConfigNumericToResource); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_EVENT_TOPIC_ABLE: { |
| CxGridEventTopicAble cxGridEventTopicAble = (CxGridEventTopicAble)theEObject; |
| T result = caseCxGridEventTopicAble(cxGridEventTopicAble); |
| if (result == null) result = caseCxGridPropStyle(cxGridEventTopicAble); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_QUANTITY_STYLE: { |
| CxGridPropQuantityStyle cxGridPropQuantityStyle = (CxGridPropQuantityStyle)theEObject; |
| T result = caseCxGridPropQuantityStyle(cxGridPropQuantityStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropQuantityStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case CxGridStylePackage.CX_GRID_PROP_PRICE_STYLE: { |
| CxGridPropPriceStyle cxGridPropPriceStyle = (CxGridPropPriceStyle)theEObject; |
| T result = caseCxGridPropPriceStyle(cxGridPropPriceStyle); |
| if (result == null) result = caseCxGridPropStyle(cxGridPropPriceStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| default: return defaultCase(theEObject); |
| } |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropStyle(CxGridPropStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Html Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Html Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropHtmlStyle(CxGridPropHtmlStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Text Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Text Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropTextStyle(CxGridPropTextStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Button Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Button Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropButtonStyle(CxGridPropButtonStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Progressbar Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Progressbar Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropProgressbarStyle(CxGridPropProgressbarStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Sparkline Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Sparkline Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropSparklineStyle(CxGridPropSparklineStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Boolean Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Boolean Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropBooleanStyle(CxGridPropBooleanStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Number Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Number Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropNumberStyle(CxGridPropNumberStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Image Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Image Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropImageStyle(CxGridPropImageStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Indicator Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Indicator Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropIndicatorStyle(CxGridPropIndicatorStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Date Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Date Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropDateStyle(CxGridPropDateStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Config</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Config</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridStyleConfig(CxGridStyleConfig object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Config String To Resource</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Config String To Resource</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridStyleConfigStringToResource(CxGridStyleConfigStringToResource object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Config Numeric To Resource</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Config Numeric To Resource</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridStyleConfigNumericToResource(CxGridStyleConfigNumericToResource object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Event Topic Able</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Event Topic Able</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridEventTopicAble(CxGridEventTopicAble object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Quantity Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Quantity Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropQuantityStyle(CxGridPropQuantityStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cx Grid Prop Price Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cx Grid Prop Price Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCxGridPropPriceStyle(CxGridPropPriceStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch, but this is the last case anyway. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
| * @generated |
| */ |
| @Override |
| public T defaultCase(EObject object) { |
| return null; |
| } |
| |
| } //CxGridStyleSwitch |