blob: 0bed0ed3d739cd509cadd86fdd70c3aa40ab61c4 [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - Lunifera GmbH (Wien), Loetz GmbH&Co.KG (Heidelberg)
* 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:
* Florian Pirchner - Initial implementation
*
*/
package org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.common.types.LAnnotationTarget;
import org.eclipse.osbp.dsl.semantic.common.types.LClass;
import org.eclipse.osbp.dsl.semantic.common.types.LFeature;
import org.eclipse.osbp.dsl.semantic.common.types.LLazyResolver;
import org.eclipse.osbp.dsl.semantic.common.types.LOperation;
import org.eclipse.osbp.dsl.semantic.common.types.LType;
import org.eclipse.osbp.dsl.semantic.dto.LDtoFeature;
import org.eclipse.osbp.dsl.semantic.service.LChartService;
import org.eclipse.osbp.dsl.semantic.service.LDTOService;
import org.eclipse.osbp.dsl.semantic.service.LFilterableAttributes;
import org.eclipse.osbp.dsl.semantic.service.LFreeService;
import org.eclipse.osbp.dsl.semantic.service.LInjectedService;
import org.eclipse.osbp.dsl.semantic.service.LInjectedServices;
import org.eclipse.osbp.dsl.semantic.service.LService;
import org.eclipse.osbp.dsl.semantic.service.LServiceModel;
import org.eclipse.osbp.dsl.semantic.service.LServiceOperation;
import org.eclipse.osbp.dsl.semantic.service.LSortableAttributes;
import org.eclipse.osbp.dsl.semantic.service.OSBPServicePackage;
/**
* <!-- 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.dsl.semantic.service.OSBPServicePackage
* @generated
*/
public class OSBPServiceAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static OSBPServicePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OSBPServiceAdapterFactory() {
if (modelPackage == null) {
modelPackage = OSBPServicePackage.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 OSBPServiceSwitch<Adapter> modelSwitch =
new OSBPServiceSwitch<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.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LServiceModel
* @generated
*/
public Adapter createLServiceModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LService
* @generated
*/
public Adapter createLServiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LInjectedServices
* @generated
*/
public Adapter createLInjectedServicesAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LInjectedService
* @generated
*/
public Adapter createLInjectedServiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LDTOService
* @generated
*/
public Adapter createLDTOServiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LFilterableAttributes
* @generated
*/
public Adapter createLFilterableAttributesAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LSortableAttributes
* @generated
*/
public Adapter createLSortableAttributesAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LChartService
* @generated
*/
public Adapter createLChartServiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LFreeService
* @generated
*/
public Adapter createLFreeServiceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.service.LServiceOperation
* @generated
*/
public Adapter createLServiceOperationAdapter() {
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.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.eclipse.osbp.dsl.semantic.common.types.LAnnotationTarget
* @generated
*/
public Adapter createLAnnotationTargetAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.common.types.LType
* @generated
*/
public Adapter createLTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.common.types.LClass
* @generated
*/
public Adapter createLClassAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.common.types.LOperation
* @generated
*/
public Adapter createLOperationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.dsl.semantic.common.types.LFeature
* @generated
*/
public Adapter createLFeatureAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.osbp.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.eclipse.osbp.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;
}
} //OSBPServiceAdapterFactory