blob: 7769a91afdf22944c0e2e24c6d0caf8eb289ff64 [file] [log] [blame]
/**
* Copyright (c)2020 CEA LIST, Committer Name, and others.
*
* 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
*
* Contributors:
* CEA LIST - Initial API and implementation
* Gabriel Pedroza (CEA LIST) gabriel.pedroza@cea.fr
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr
*
*/
package org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.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.papyrus.pdp4eng.designer.profile.pdp4engDesign.CITSFrame;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.CallProcess;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.CompositeData;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.Data;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataInput;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataLink;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataOutput;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataStore;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataType;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.Entity;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.ExternalEntity;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.OpaqueData;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.SmartGridFrame;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.Table;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.isPersonalData;
import org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.pdp4engDesignPackage;
/**
* <!-- 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.papyrus.pdp4eng.designer.profile.pdp4engDesign.pdp4engDesignPackage
* @generated
*/
public class pdp4engDesignAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static pdp4engDesignPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public pdp4engDesignAdapterFactory() {
if (modelPackage == null) {
modelPackage = pdp4engDesignPackage.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 pdp4engDesignSwitch<Adapter> modelSwitch =
new pdp4engDesignSwitch<Adapter>() {
@Override
public Adapter caseOpaqueData(OpaqueData object) {
return createOpaqueDataAdapter();
}
@Override
public Adapter caseDataType(DataType object) {
return createDataTypeAdapter();
}
@Override
public Adapter caseisPersonalData(isPersonalData object) {
return createisPersonalDataAdapter();
}
@Override
public Adapter caseDataOutput(DataOutput object) {
return createDataOutputAdapter();
}
@Override
public Adapter caseData(Data object) {
return createDataAdapter();
}
@Override
public Adapter caseDataLink(DataLink object) {
return createDataLinkAdapter();
}
@Override
public Adapter caseCompositeData(CompositeData object) {
return createCompositeDataAdapter();
}
@Override
public Adapter caseTable(Table object) {
return createTableAdapter();
}
@Override
public Adapter caseExternalEntity(ExternalEntity object) {
return createExternalEntityAdapter();
}
@Override
public Adapter caseEntity(Entity object) {
return createEntityAdapter();
}
@Override
public Adapter caseDataStore(DataStore object) {
return createDataStoreAdapter();
}
@Override
public Adapter caseDataInput(DataInput object) {
return createDataInputAdapter();
}
@Override
public Adapter caseProcess(org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.Process object) {
return createProcessAdapter();
}
@Override
public Adapter caseCallProcess(CallProcess object) {
return createCallProcessAdapter();
}
@Override
public Adapter caseSmartGridFrame(SmartGridFrame object) {
return createSmartGridFrameAdapter();
}
@Override
public Adapter caseCITSFrame(CITSFrame object) {
return createCITSFrameAdapter();
}
@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.papyrus.pdp4eng.designer.profile.pdp4engDesign.OpaqueData <em>Opaque Data</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.OpaqueData
* @generated
*/
public Adapter createOpaqueDataAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataType <em>Data 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.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataType
* @generated
*/
public Adapter createDataTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.isPersonalData <em>is Personal Data</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.isPersonalData
* @generated
*/
public Adapter createisPersonalDataAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataOutput <em>Data Output</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataOutput
* @generated
*/
public Adapter createDataOutputAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.Data <em>Data</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.Data
* @generated
*/
public Adapter createDataAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataLink <em>Data Link</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataLink
* @generated
*/
public Adapter createDataLinkAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.CompositeData <em>Composite Data</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.CompositeData
* @generated
*/
public Adapter createCompositeDataAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.Table <em>Table</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.Table
* @generated
*/
public Adapter createTableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.ExternalEntity <em>External 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.papyrus.pdp4eng.designer.profile.pdp4engDesign.ExternalEntity
* @generated
*/
public Adapter createExternalEntityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.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.papyrus.pdp4eng.designer.profile.pdp4engDesign.Entity
* @generated
*/
public Adapter createEntityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataStore <em>Data Store</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataStore
* @generated
*/
public Adapter createDataStoreAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataInput <em>Data Input</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.DataInput
* @generated
*/
public Adapter createDataInputAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.Process <em>Process</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.Process
* @generated
*/
public Adapter createProcessAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.CallProcess <em>Call Process</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.CallProcess
* @generated
*/
public Adapter createCallProcessAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.SmartGridFrame <em>Smart Grid Frame</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.SmartGridFrame
* @generated
*/
public Adapter createSmartGridFrameAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.designer.profile.pdp4engDesign.CITSFrame <em>CITS Frame</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.papyrus.pdp4eng.designer.profile.pdp4engDesign.CITSFrame
* @generated
*/
public Adapter createCITSFrameAdapter() {
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;
}
} //pdp4engDesignAdapterFactory