blob: 24360d4857e9588ceb52782c5ea279b8014bdd0a [file] [log] [blame]
/**
* Copyright (c) 2018, IncQuery Labs Ltd and CEA List.
* 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:
* IncQuery Labs Ltd - initial API and implementation
* CEA List
*/
package org.eclipse.papyrus.moka.ssp.profile.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.moka.fmi.fmiprofile.FMIPort;
import org.eclipse.papyrus.moka.fmi.fmiprofile.ScalarVariable;
import org.eclipse.papyrus.moka.ssp.profile.*;
import org.eclipse.papyrus.sysml14.deprecatedelements.FlowPort;
/**
* <!-- 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.moka.ssp.profile.SSPProfilePackage
* @generated
*/
public class SSPProfileAdapterFactory extends AdapterFactoryImpl {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = " Copyright (c) 2018, IncQuery Labs Ltd and CEA List.\n All rights reserved. This program and the accompanying materials\nare made available under the terms of the Eclipse Public License 2.0\nwhich accompanies this distribution, and is available at\nhttps://www.eclipse.org/legal/epl-2.0 \r\n\r\nSPDX-License-Identifier: EPL-2.0\n \nContributors:\n IncQuery Labs Ltd - initial API and implementation\n CEA List ";
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static SSPProfilePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SSPProfileAdapterFactory() {
if (modelPackage == null) {
modelPackage = SSPProfilePackage.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
*/
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 SSPProfileSwitch modelSwitch =
new SSPProfileSwitch() {
public Object caseSsdConnection(SsdConnection object) {
return createSsdConnectionAdapter();
}
public Object caseSsdConnector(SsdConnector object) {
return createSsdConnectorAdapter();
}
public Object caseSsdElement(SsdElement object) {
return createSsdElementAdapter();
}
public Object caseSsdSystem(SsdSystem object) {
return createSsdSystemAdapter();
}
public Object caseSsdSignalDictionaryReference(SsdSignalDictionaryReference object) {
return createSsdSignalDictionaryReferenceAdapter();
}
public Object caseSsdComponent(SsdComponent object) {
return createSsdComponentAdapter();
}
public Object caseSsd(Ssd object) {
return createSsdAdapter();
}
public Object caseSsdConnectorAndFmiPort(SsdConnectorAndFmiPort object) {
return createSsdConnectorAndFmiPortAdapter();
}
public Object caseFlowPort(FlowPort object) {
return createFlowPortAdapter();
}
public Object caseScalarVariable(ScalarVariable object) {
return createScalarVariableAdapter();
}
public Object caseFMIPort(FMIPort object) {
return createFMIPortAdapter();
}
public Object 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
*/
public Adapter createAdapter(Notifier target) {
return (Adapter)modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.ssp.profile.SsdConnection <em>Ssd Connection</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.moka.ssp.profile.SsdConnection
* @generated
*/
public Adapter createSsdConnectionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.ssp.profile.SsdConnector <em>Ssd Connector</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.moka.ssp.profile.SsdConnector
* @generated
*/
public Adapter createSsdConnectorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.ssp.profile.SsdElement <em>Ssd Element</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.moka.ssp.profile.SsdElement
* @generated
*/
public Adapter createSsdElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.ssp.profile.SsdSystem <em>Ssd System</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.moka.ssp.profile.SsdSystem
* @generated
*/
public Adapter createSsdSystemAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.ssp.profile.SsdSignalDictionaryReference <em>Ssd Signal Dictionary Reference</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.moka.ssp.profile.SsdSignalDictionaryReference
* @generated
*/
public Adapter createSsdSignalDictionaryReferenceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.ssp.profile.SsdComponent <em>Ssd Component</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.moka.ssp.profile.SsdComponent
* @generated
*/
public Adapter createSsdComponentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.ssp.profile.Ssd <em>Ssd</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.moka.ssp.profile.Ssd
* @generated
*/
public Adapter createSsdAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.ssp.profile.SsdConnectorAndFmiPort <em>Ssd Connector And Fmi Port</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.moka.ssp.profile.SsdConnectorAndFmiPort
* @generated
*/
public Adapter createSsdConnectorAndFmiPortAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.sysml14.deprecatedelements.FlowPort <em>Flow Port</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.sysml14.deprecatedelements.FlowPort
* @generated
*/
public Adapter createFlowPortAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.fmi.fmiprofile.ScalarVariable <em>Scalar Variable</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.moka.fmi.fmiprofile.ScalarVariable
* @generated
*/
public Adapter createScalarVariableAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.moka.fmi.fmiprofile.FMIPort <em>FMI Port</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.moka.fmi.fmiprofile.FMIPort
* @generated
*/
public Adapter createFMIPortAdapter() {
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;
}
} //SSPProfileAdapterFactory