| /******************************************************************************* |
| * CHESS core plugin |
| * |
| * Copyright (C) 2011-2015 |
| * Mälardalen University, Sweden |
| * |
| * |
| * 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 |
| *******************************************************************************/ |
| /** |
| */ |
| package org.polarsys.chess.fla.flaxml.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.polarsys.chess.fla.flaxml.Component; |
| import org.polarsys.chess.fla.flaxml.Components; |
| import org.polarsys.chess.fla.flaxml.CompositeComponent; |
| import org.polarsys.chess.fla.flaxml.Connection; |
| import org.polarsys.chess.fla.flaxml.Connections; |
| import org.polarsys.chess.fla.flaxml.DocumentRoot; |
| import org.polarsys.chess.fla.flaxml.Failure; |
| import org.polarsys.chess.fla.flaxml.FlaxmlPackage; |
| import org.polarsys.chess.fla.flaxml.FptcRules; |
| import org.polarsys.chess.fla.flaxml.InputPort; |
| import org.polarsys.chess.fla.flaxml.InputPorts; |
| import org.polarsys.chess.fla.flaxml.NamedElement; |
| import org.polarsys.chess.fla.flaxml.OutputPort; |
| import org.polarsys.chess.fla.flaxml.OutputPorts; |
| import org.polarsys.chess.fla.flaxml.RuleString; |
| import org.polarsys.chess.fla.flaxml.SimpleComponent; |
| |
| /** |
| * <!-- 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.polarsys.chess.fla.flaxml.FlaxmlPackage |
| * @generated |
| */ |
| public class FlaxmlAdapterFactory extends AdapterFactoryImpl { |
| /** |
| * The cached model package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static FlaxmlPackage modelPackage; |
| |
| /** |
| * Creates an instance of the adapter factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public FlaxmlAdapterFactory() { |
| if (modelPackage == null) { |
| modelPackage = FlaxmlPackage.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 FlaxmlSwitch<Adapter> modelSwitch = |
| new FlaxmlSwitch<Adapter>() { |
| @Override |
| public Adapter caseComponent(Component object) { |
| return createComponentAdapter(); |
| } |
| @Override |
| public Adapter caseComponents(Components object) { |
| return createComponentsAdapter(); |
| } |
| @Override |
| public Adapter caseCompositeComponent(CompositeComponent object) { |
| return createCompositeComponentAdapter(); |
| } |
| @Override |
| public Adapter caseConnection(Connection object) { |
| return createConnectionAdapter(); |
| } |
| @Override |
| public Adapter caseConnections(Connections object) { |
| return createConnectionsAdapter(); |
| } |
| @Override |
| public Adapter caseDocumentRoot(DocumentRoot object) { |
| return createDocumentRootAdapter(); |
| } |
| @Override |
| public Adapter caseFailure(Failure object) { |
| return createFailureAdapter(); |
| } |
| @Override |
| public Adapter caseFptcRules(FptcRules object) { |
| return createFptcRulesAdapter(); |
| } |
| @Override |
| public Adapter caseInputPort(InputPort object) { |
| return createInputPortAdapter(); |
| } |
| @Override |
| public Adapter caseInputPorts(InputPorts object) { |
| return createInputPortsAdapter(); |
| } |
| @Override |
| public Adapter caseNamedElement(NamedElement object) { |
| return createNamedElementAdapter(); |
| } |
| @Override |
| public Adapter caseOutputPort(OutputPort object) { |
| return createOutputPortAdapter(); |
| } |
| @Override |
| public Adapter caseOutputPorts(OutputPorts object) { |
| return createOutputPortsAdapter(); |
| } |
| @Override |
| public Adapter caseRuleString(RuleString object) { |
| return createRuleStringAdapter(); |
| } |
| @Override |
| public Adapter caseSimpleComponent(SimpleComponent object) { |
| return createSimpleComponentAdapter(); |
| } |
| @Override |
| public Adapter caseSystem(org.polarsys.chess.fla.flaxml.System object) { |
| return createSystemAdapter(); |
| } |
| @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.polarsys.chess.fla.flaxml.Component <em>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.polarsys.chess.fla.flaxml.Component |
| * @generated |
| */ |
| public Adapter createComponentAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.Components <em>Components</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.polarsys.chess.fla.flaxml.Components |
| * @generated |
| */ |
| public Adapter createComponentsAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.CompositeComponent <em>Composite 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.polarsys.chess.fla.flaxml.CompositeComponent |
| * @generated |
| */ |
| public Adapter createCompositeComponentAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.Connection <em>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.polarsys.chess.fla.flaxml.Connection |
| * @generated |
| */ |
| public Adapter createConnectionAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.Connections <em>Connections</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.polarsys.chess.fla.flaxml.Connections |
| * @generated |
| */ |
| public Adapter createConnectionsAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.DocumentRoot <em>Document Root</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.polarsys.chess.fla.flaxml.DocumentRoot |
| * @generated |
| */ |
| public Adapter createDocumentRootAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.Failure <em>Failure</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.polarsys.chess.fla.flaxml.Failure |
| * @generated |
| */ |
| public Adapter createFailureAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.FptcRules <em>Fptc Rules</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.polarsys.chess.fla.flaxml.FptcRules |
| * @generated |
| */ |
| public Adapter createFptcRulesAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.InputPort <em>Input 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.polarsys.chess.fla.flaxml.InputPort |
| * @generated |
| */ |
| public Adapter createInputPortAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.InputPorts <em>Input Ports</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.polarsys.chess.fla.flaxml.InputPorts |
| * @generated |
| */ |
| public Adapter createInputPortsAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.NamedElement <em>Named 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.polarsys.chess.fla.flaxml.NamedElement |
| * @generated |
| */ |
| public Adapter createNamedElementAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.OutputPort <em>Output 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.polarsys.chess.fla.flaxml.OutputPort |
| * @generated |
| */ |
| public Adapter createOutputPortAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.OutputPorts <em>Output Ports</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.polarsys.chess.fla.flaxml.OutputPorts |
| * @generated |
| */ |
| public Adapter createOutputPortsAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.RuleString <em>Rule String</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.polarsys.chess.fla.flaxml.RuleString |
| * @generated |
| */ |
| public Adapter createRuleStringAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.SimpleComponent <em>Simple 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.polarsys.chess.fla.flaxml.SimpleComponent |
| * @generated |
| */ |
| public Adapter createSimpleComponentAdapter() { |
| return null; |
| } |
| |
| /** |
| * Creates a new adapter for an object of class '{@link org.polarsys.chess.fla.flaxml.System <em>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.polarsys.chess.fla.flaxml.System |
| * @generated |
| */ |
| public Adapter createSystemAdapter() { |
| 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; |
| } |
| |
| } //FlaxmlAdapterFactory |