| /******************************************************************************* |
| * Copyright (c) 2014 Bosch Software Innovations GmbH and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * and Eclipse Distribution License v1.0 which accompany this distribution. |
| * |
| * The Eclipse Public License is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * The Eclipse Distribution License is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * Contributors: |
| * Bosch Software Innovations GmbH - Please refer to git log |
| * |
| *******************************************************************************/ |
| /** |
| */ |
| package org.eclipse.vorto.functionblock.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.vorto.functionblock.Constraint; |
| import org.eclipse.vorto.functionblock.Entity; |
| import org.eclipse.vorto.functionblock.EnumLiteral; |
| import org.eclipse.vorto.functionblock.Event; |
| import org.eclipse.vorto.functionblock.FBFeature; |
| import org.eclipse.vorto.functionblock.FunctionBlock; |
| import org.eclipse.vorto.functionblock.FunctionblockModel; |
| import org.eclipse.vorto.functionblock.FunctionblockPackage; |
| import org.eclipse.vorto.functionblock.ObjectParam; |
| import org.eclipse.vorto.functionblock.ObjectProperty; |
| import org.eclipse.vorto.functionblock.ObjectType; |
| import org.eclipse.vorto.functionblock.Operation; |
| import org.eclipse.vorto.functionblock.Parameter; |
| import org.eclipse.vorto.functionblock.Presence; |
| import org.eclipse.vorto.functionblock.PrimitiveParam; |
| import org.eclipse.vorto.functionblock.PrimitiveProperty; |
| import org.eclipse.vorto.functionblock.Property; |
| import org.eclipse.vorto.functionblock.ReturnObjectType; |
| import org.eclipse.vorto.functionblock.ReturnPrimitiveType; |
| import org.eclipse.vorto.functionblock.ReturnType; |
| |
| /** |
| * <!-- 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.vorto.functionblock.FunctionblockPackage |
| * @generated |
| */ |
| public class FunctionblockAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static FunctionblockPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public FunctionblockAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = FunctionblockPackage.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 FunctionblockSwitch<Adapter> modelSwitch = |
| new FunctionblockSwitch<Adapter>() { |
| @Override |
| public Adapter caseFunctionblockModel(FunctionblockModel object) { |
| return createFunctionblockModelAdapter(); |
| } |
| @Override |
| public Adapter caseFunctionBlock(FunctionBlock object) { |
| return createFunctionBlockAdapter(); |
| } |
| @Override |
| public Adapter caseFBFeature(FBFeature object) { |
| return createFBFeatureAdapter(); |
| } |
| @Override |
| public Adapter caseObjectType(ObjectType object) { |
| return createObjectTypeAdapter(); |
| } |
| @Override |
| public Adapter caseProperty(Property object) { |
| return createPropertyAdapter(); |
| } |
| @Override |
| public Adapter caseEntity(Entity object) { |
| return createEntityAdapter(); |
| } |
| @Override |
| public Adapter casePresence(Presence object) { |
| return createPresenceAdapter(); |
| } |
| @Override |
| public Adapter casePrimitiveProperty(PrimitiveProperty object) { |
| return createPrimitivePropertyAdapter(); |
| } |
| @Override |
| public Adapter caseObjectProperty(ObjectProperty object) { |
| return createObjectPropertyAdapter(); |
| } |
| @Override |
| public Adapter caseConstraint(Constraint object) { |
| return createConstraintAdapter(); |
| } |
| @Override |
| public Adapter caseOperation(Operation object) { |
| return createOperationAdapter(); |
| } |
| @Override |
| public Adapter caseReturnType(ReturnType object) { |
| return createReturnTypeAdapter(); |
| } |
| @Override |
| public Adapter caseReturnObjectType(ReturnObjectType object) { |
| return createReturnObjectTypeAdapter(); |
| } |
| @Override |
| public Adapter caseReturnPrimitiveType(ReturnPrimitiveType object) { |
| return createReturnPrimitiveTypeAdapter(); |
| } |
| @Override |
| public Adapter caseParameter(Parameter object) { |
| return createParameterAdapter(); |
| } |
| @Override |
| public Adapter caseObjectParam(ObjectParam object) { |
| return createObjectParamAdapter(); |
| } |
| @Override |
| public Adapter casePrimitiveParam(PrimitiveParam object) { |
| return createPrimitiveParamAdapter(); |
| } |
| @Override |
| public Adapter caseEnum(org.eclipse.vorto.functionblock.Enum object) { |
| return createEnumAdapter(); |
| } |
| @Override |
| public Adapter caseEnumLiteral(EnumLiteral object) { |
| return createEnumLiteralAdapter(); |
| } |
| @Override |
| public Adapter caseEvent(Event object) { |
| return createEventAdapter(); |
| } |
| @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.vorto.functionblock.FunctionblockModel <em>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.vorto.functionblock.FunctionblockModel |
| * @generated |
| */ |
| public Adapter createFunctionblockModelAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.FunctionBlock <em>Function Block</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.vorto.functionblock.FunctionBlock |
| * @generated |
| */ |
| public Adapter createFunctionBlockAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.FBFeature <em>FB 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.vorto.functionblock.FBFeature |
| * @generated |
| */ |
| public Adapter createFBFeatureAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.ObjectType <em>Object 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.eclipse.vorto.functionblock.ObjectType |
| * @generated |
| */ |
| public Adapter createObjectTypeAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.Property <em>Property</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.vorto.functionblock.Property |
| * @generated |
| */ |
| public Adapter createPropertyAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.Entity <em>Entity</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.vorto.functionblock.Entity |
| * @generated |
| */ |
| public Adapter createEntityAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.Presence <em>Presence</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.vorto.functionblock.Presence |
| * @generated |
| */ |
| public Adapter createPresenceAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.PrimitiveProperty <em>Primitive Property</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.vorto.functionblock.PrimitiveProperty |
| * @generated |
| */ |
| public Adapter createPrimitivePropertyAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.ObjectProperty <em>Object Property</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.vorto.functionblock.ObjectProperty |
| * @generated |
| */ |
| public Adapter createObjectPropertyAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.Constraint <em>Constraint</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.vorto.functionblock.Constraint |
| * @generated |
| */ |
| public Adapter createConstraintAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.Operation <em>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.vorto.functionblock.Operation |
| * @generated |
| */ |
| public Adapter createOperationAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.ReturnType <em>Return 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.eclipse.vorto.functionblock.ReturnType |
| * @generated |
| */ |
| public Adapter createReturnTypeAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.ReturnObjectType <em>Return Object 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.eclipse.vorto.functionblock.ReturnObjectType |
| * @generated |
| */ |
| public Adapter createReturnObjectTypeAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.ReturnPrimitiveType <em>Return Primitive 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.eclipse.vorto.functionblock.ReturnPrimitiveType |
| * @generated |
| */ |
| public Adapter createReturnPrimitiveTypeAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.Parameter <em>Parameter</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.vorto.functionblock.Parameter |
| * @generated |
| */ |
| public Adapter createParameterAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.ObjectParam <em>Object Param</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.vorto.functionblock.ObjectParam |
| * @generated |
| */ |
| public Adapter createObjectParamAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.PrimitiveParam <em>Primitive Param</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.vorto.functionblock.PrimitiveParam |
| * @generated |
| */ |
| public Adapter createPrimitiveParamAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.Enum <em>Enum</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.vorto.functionblock.Enum |
| * @generated |
| */ |
| public Adapter createEnumAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.EnumLiteral <em>Enum Literal</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.vorto.functionblock.EnumLiteral |
| * @generated |
| */ |
| public Adapter createEnumLiteralAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.eclipse.vorto.functionblock.Event <em>Event</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.vorto.functionblock.Event |
| * @generated |
| */ |
| public Adapter createEventAdapter() { |
| 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; |
| } |
| |
| } //FunctionblockAdapterFactory |