| /** |
| * |
| * 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: |
| * Florian Pirchner - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.ecview.extension.model.converter.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.ecview.core.common.model.core.YConverter; |
| import org.eclipse.osbp.ecview.core.common.model.core.YElement; |
| import org.eclipse.osbp.ecview.core.common.model.core.YTaggable; |
| import org.eclipse.osbp.ecview.extension.model.converter.YConverterPackage; |
| import org.eclipse.osbp.ecview.extension.model.converter.YCustomDecimalConverter; |
| import org.eclipse.osbp.ecview.extension.model.converter.YDecimalToUomoConverter; |
| import org.eclipse.osbp.ecview.extension.model.converter.YNumericToResourceConfig; |
| import org.eclipse.osbp.ecview.extension.model.converter.YNumericToResourceConverter; |
| import org.eclipse.osbp.ecview.extension.model.converter.YNumericToUomoConverter; |
| import org.eclipse.osbp.ecview.extension.model.converter.YObjectToStringConverter; |
| import org.eclipse.osbp.ecview.extension.model.converter.YPriceToStringConverter; |
| import org.eclipse.osbp.ecview.extension.model.converter.YQuantityToStringConverter; |
| import org.eclipse.osbp.ecview.extension.model.converter.YSimpleDecimalConverter; |
| import org.eclipse.osbp.ecview.extension.model.converter.YStringToResourceConfig; |
| import org.eclipse.osbp.ecview.extension.model.converter.YStringToResourceConverter; |
| |
| /** |
| * <!-- 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.ecview.extension.model.converter.YConverterPackage |
| * @generated |
| */ |
| public class YConverterAdapterFactory extends AdapterFactoryImpl { |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @generated |
| */ |
| public static final String copyright = "All rights reserved by Loetz GmbH und CoKG Heidelberg 2015.\n\nContributors:\n Florian Pirchner - initial API and implementation"; |
| |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static YConverterPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public YConverterAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = YConverterPackage.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 YConverterSwitch<Adapter> modelSwitch = |
| new YConverterSwitch<Adapter>() { |
| @Override |
| public Adapter caseYObjectToStringConverter(YObjectToStringConverter object) { |
| return createYObjectToStringConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYCustomDecimalConverter(YCustomDecimalConverter object) { |
| return createYCustomDecimalConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYNumericToResourceConverter(YNumericToResourceConverter object) { |
| return createYNumericToResourceConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYStringToResourceConverter(YStringToResourceConverter object) { |
| return createYStringToResourceConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYNumericToResourceConfig(YNumericToResourceConfig object) { |
| return createYNumericToResourceConfigAdapter(); |
| } |
| @Override |
| public Adapter caseYStringToResourceConfig(YStringToResourceConfig object) { |
| return createYStringToResourceConfigAdapter(); |
| } |
| @Override |
| public Adapter caseYPriceToStringConverter(YPriceToStringConverter object) { |
| return createYPriceToStringConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYQuantityToStringConverter(YQuantityToStringConverter object) { |
| return createYQuantityToStringConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYNumericToUomoConverter(YNumericToUomoConverter object) { |
| return createYNumericToUomoConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYDecimalToUomoConverter(YDecimalToUomoConverter object) { |
| return createYDecimalToUomoConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYSimpleDecimalConverter(YSimpleDecimalConverter object) { |
| return createYSimpleDecimalConverterAdapter(); |
| } |
| @Override |
| public Adapter caseYTaggable(YTaggable object) { |
| return createYTaggableAdapter(); |
| } |
| @Override |
| public Adapter caseYElement(YElement object) { |
| return createYElementAdapter(); |
| } |
| @Override |
| public Adapter caseYConverter(YConverter object) { |
| return createYConverterAdapter(); |
| } |
| @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.ecview.extension.model.converter.YObjectToStringConverter <em>YObject To String Converter</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.ecview.extension.model.converter.YObjectToStringConverter |
| * @generated |
| */ |
| public Adapter createYObjectToStringConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YCustomDecimalConverter <em>YCustom Decimal Converter</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.ecview.extension.model.converter.YCustomDecimalConverter |
| * @generated |
| */ |
| public Adapter createYCustomDecimalConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YNumericToResourceConverter <em>YNumeric To Resource Converter</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.ecview.extension.model.converter.YNumericToResourceConverter |
| * @generated |
| */ |
| public Adapter createYNumericToResourceConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YStringToResourceConverter <em>YString To Resource Converter</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.ecview.extension.model.converter.YStringToResourceConverter |
| * @generated |
| */ |
| public Adapter createYStringToResourceConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YNumericToResourceConfig <em>YNumeric To Resource Config</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.ecview.extension.model.converter.YNumericToResourceConfig |
| * @generated |
| */ |
| public Adapter createYNumericToResourceConfigAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YStringToResourceConfig <em>YString To Resource Config</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.ecview.extension.model.converter.YStringToResourceConfig |
| * @generated |
| */ |
| public Adapter createYStringToResourceConfigAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YNumericToUomoConverter <em>YNumeric To Uomo Converter</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.ecview.extension.model.converter.YNumericToUomoConverter |
| * @generated |
| */ |
| public Adapter createYNumericToUomoConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YDecimalToUomoConverter <em>YDecimal To Uomo Converter</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.ecview.extension.model.converter.YDecimalToUomoConverter |
| * @generated |
| */ |
| public Adapter createYDecimalToUomoConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YSimpleDecimalConverter <em>YSimple Decimal Converter</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.ecview.extension.model.converter.YSimpleDecimalConverter |
| * @generated |
| */ |
| public Adapter createYSimpleDecimalConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.core.common.model.core.YTaggable <em>YTaggable</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.ecview.core.common.model.core.YTaggable |
| * @generated |
| */ |
| public Adapter createYTaggableAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YPriceToStringConverter <em>YPrice To String Converter</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.ecview.extension.model.converter.YPriceToStringConverter |
| * @generated |
| */ |
| public Adapter createYPriceToStringConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.extension.model.converter.YQuantityToStringConverter <em>YQuantity To String Converter</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.ecview.extension.model.converter.YQuantityToStringConverter |
| * @generated |
| */ |
| public Adapter createYQuantityToStringConverterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.core.common.model.core.YElement <em>YElement</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.ecview.core.common.model.core.YElement |
| * @generated |
| */ |
| public Adapter createYElementAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.osbp.ecview.core.common.model.core.YConverter <em>YConverter</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.ecview.core.common.model.core.YConverter |
| * @generated |
| */ |
| public Adapter createYConverterAdapter() { |
| 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; |
| } |
| |
| } |