/** * Copyright (c) 2011 - 2014, Lunifera GmbH (Gross Enzersdorf), Loetz KG (Heidelberg) * 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 * * Based on ideas from Xtext, Xtend, Xcore * * Contributors: * Florian Pirchner - Initial implementation * */ package org.lunifera.dsl.semantic.service.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.lunifera.dsl.semantic.common.types.LAnnotationTarget; import org.lunifera.dsl.semantic.common.types.LClass; import org.lunifera.dsl.semantic.common.types.LFeature; import org.lunifera.dsl.semantic.common.types.LLazyResolver; import org.lunifera.dsl.semantic.common.types.LOperation; import org.lunifera.dsl.semantic.common.types.LType; import org.lunifera.dsl.semantic.dto.LDtoFeature; import org.lunifera.dsl.semantic.service.*; /** * <!-- 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.lunifera.dsl.semantic.service.LunServicePackage * @generated */ public class LunServiceAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static LunServicePackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public LunServiceAdapterFactory() { if (modelPackage == null) { modelPackage = LunServicePackage.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 LunServiceSwitch<Adapter> modelSwitch = new LunServiceSwitch<Adapter>() { @Override public Adapter caseLServiceModel(LServiceModel object) { return createLServiceModelAdapter(); } @Override public Adapter caseLService(LService object) { return createLServiceAdapter(); } @Override public Adapter caseLInjectedServices(LInjectedServices object) { return createLInjectedServicesAdapter(); } @Override public Adapter caseLInjectedService(LInjectedService object) { return createLInjectedServiceAdapter(); } @Override public Adapter caseLDTOService(LDTOService object) { return createLDTOServiceAdapter(); } @Override public Adapter caseLFilterableAttributes(LFilterableAttributes object) { return createLFilterableAttributesAdapter(); } @Override public Adapter caseLSortableAttributes(LSortableAttributes object) { return createLSortableAttributesAdapter(); } @Override public Adapter caseLChartService(LChartService object) { return createLChartServiceAdapter(); } @Override public Adapter caseLFreeService(LFreeService object) { return createLFreeServiceAdapter(); } @Override public Adapter caseLServiceOperation(LServiceOperation object) { return createLServiceOperationAdapter(); } @Override public Adapter caseLLazyResolver(LLazyResolver object) { return createLLazyResolverAdapter(); } @Override public Adapter caseLAnnotationTarget(LAnnotationTarget object) { return createLAnnotationTargetAdapter(); } @Override public Adapter caseLType(LType object) { return createLTypeAdapter(); } @Override public Adapter caseLClass(LClass object) { return createLClassAdapter(); } @Override public Adapter caseLOperation(LOperation object) { return createLOperationAdapter(); } @Override public Adapter caseLFeature(LFeature object) { return createLFeatureAdapter(); } @Override public Adapter caseLDtoFeature(LDtoFeature object) { return createLDtoFeatureAdapter(); } @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.lunifera.dsl.semantic.service.LServiceModel <em>LService 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.lunifera.dsl.semantic.service.LServiceModel * @generated */ public Adapter createLServiceModelAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LService <em>LService</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.lunifera.dsl.semantic.service.LService * @generated */ public Adapter createLServiceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LInjectedServices <em>LInjected Services</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.lunifera.dsl.semantic.service.LInjectedServices * @generated */ public Adapter createLInjectedServicesAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LInjectedService <em>LInjected Service</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.lunifera.dsl.semantic.service.LInjectedService * @generated */ public Adapter createLInjectedServiceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LDTOService <em>LDTO Service</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.lunifera.dsl.semantic.service.LDTOService * @generated */ public Adapter createLDTOServiceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LFilterableAttributes <em>LFilterable Attributes</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.lunifera.dsl.semantic.service.LFilterableAttributes * @generated */ public Adapter createLFilterableAttributesAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LSortableAttributes <em>LSortable Attributes</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.lunifera.dsl.semantic.service.LSortableAttributes * @generated */ public Adapter createLSortableAttributesAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LChartService <em>LChart Service</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.lunifera.dsl.semantic.service.LChartService * @generated */ public Adapter createLChartServiceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LFreeService <em>LFree Service</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.lunifera.dsl.semantic.service.LFreeService * @generated */ public Adapter createLFreeServiceAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.service.LServiceOperation <em>LService Operation</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.lunifera.dsl.semantic.service.LServiceOperation * @generated */ public Adapter createLServiceOperationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.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.lunifera.dsl.semantic.common.types.LLazyResolver * @generated */ public Adapter createLLazyResolverAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.common.types.LAnnotationTarget <em>LAnnotation Target</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.lunifera.dsl.semantic.common.types.LAnnotationTarget * @generated */ public Adapter createLAnnotationTargetAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.common.types.LType <em>LType</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.lunifera.dsl.semantic.common.types.LType * @generated */ public Adapter createLTypeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.common.types.LClass <em>LClass</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.lunifera.dsl.semantic.common.types.LClass * @generated */ public Adapter createLClassAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.common.types.LOperation <em>LOperation</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.lunifera.dsl.semantic.common.types.LOperation * @generated */ public Adapter createLOperationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.common.types.LFeature <em>LFeature</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.lunifera.dsl.semantic.common.types.LFeature * @generated */ public Adapter createLFeatureAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.lunifera.dsl.semantic.dto.LDtoFeature <em>LDto Feature</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.lunifera.dsl.semantic.dto.LDtoFeature * @generated */ public Adapter createLDtoFeatureAdapter() { 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; } } //LunServiceAdapterFactory