/** * <copyright> * Copyright (c) 2010-2014 Henshin developers. 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 * </copyright> */ package org.eclipse.emf.henshin.model.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.emf.henshin.model.*; /** * <!-- 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.emf.henshin.model.HenshinPackage * @generated */ public class HenshinAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static HenshinPackage modelPackage; /** * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public HenshinAdapterFactory() { if (modelPackage == null) { modelPackage = HenshinPackage.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 HenshinSwitch<Adapter> modelSwitch = new HenshinSwitch<Adapter>() { @Override public Adapter caseModelElement(ModelElement object) { return createModelElementAdapter(); } @Override public Adapter caseAnnotation(Annotation object) { return createAnnotationAdapter(); } @Override public Adapter caseNamedElement(NamedElement object) { return createNamedElementAdapter(); } @Override public Adapter caseGraphElement(GraphElement object) { return createGraphElementAdapter(); } @Override public Adapter caseModule(Module object) { return createModuleAdapter(); } @Override public Adapter caseUnit(Unit object) { return createUnitAdapter(); } @Override public Adapter caseRule(Rule object) { return createRuleAdapter(); } @Override public Adapter caseParameter(Parameter object) { return createParameterAdapter(); } @Override public Adapter caseParameterMapping(ParameterMapping object) { return createParameterMappingAdapter(); } @Override public Adapter caseGraph(Graph object) { return createGraphAdapter(); } @Override public Adapter caseNode(Node object) { return createNodeAdapter(); } @Override public Adapter caseEdge(Edge object) { return createEdgeAdapter(); } @Override public Adapter caseAttribute(Attribute object) { return createAttributeAdapter(); } @Override public Adapter caseAttributeCondition(AttributeCondition object) { return createAttributeConditionAdapter(); } @Override public Adapter caseMapping(Mapping object) { return createMappingAdapter(); } @Override public Adapter caseUnaryUnit(UnaryUnit object) { return createUnaryUnitAdapter(); } @Override public Adapter caseMultiUnit(MultiUnit object) { return createMultiUnitAdapter(); } @Override public Adapter caseIndependentUnit(IndependentUnit object) { return createIndependentUnitAdapter(); } @Override public Adapter caseSequentialUnit(SequentialUnit object) { return createSequentialUnitAdapter(); } @Override public Adapter caseConditionalUnit(ConditionalUnit object) { return createConditionalUnitAdapter(); } @Override public Adapter casePriorityUnit(PriorityUnit object) { return createPriorityUnitAdapter(); } @Override public Adapter caseIteratedUnit(IteratedUnit object) { return createIteratedUnitAdapter(); } @Override public Adapter caseLoopUnit(LoopUnit object) { return createLoopUnitAdapter(); } @Override public Adapter caseFormula(Formula object) { return createFormulaAdapter(); } @Override public Adapter caseNestedCondition(NestedCondition object) { return createNestedConditionAdapter(); } @Override public Adapter caseUnaryFormula(UnaryFormula object) { return createUnaryFormulaAdapter(); } @Override public Adapter caseBinaryFormula(BinaryFormula object) { return createBinaryFormulaAdapter(); } @Override public Adapter caseAnd(And object) { return createAndAdapter(); } @Override public Adapter caseOr(Or object) { return createOrAdapter(); } @Override public Adapter caseXor(Xor object) { return createXorAdapter(); } @Override public Adapter caseNot(Not object) { return createNotAdapter(); } @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.emf.henshin.model.ModelElement <em>Model 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.emf.henshin.model.ModelElement * @generated */ public Adapter createModelElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Annotation <em>Annotation</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.emf.henshin.model.Annotation * @generated */ public Adapter createAnnotationAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.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.eclipse.emf.henshin.model.NamedElement * @generated */ public Adapter createNamedElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Rule <em>Rule</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.emf.henshin.model.Rule * @generated */ public Adapter createRuleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.AttributeCondition <em>Attribute Condition</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.emf.henshin.model.AttributeCondition * @generated */ public Adapter createAttributeConditionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.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.emf.henshin.model.Parameter * @generated */ public Adapter createParameterAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Graph <em>Graph</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.emf.henshin.model.Graph * @generated */ public Adapter createGraphAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.GraphElement <em>Graph 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.emf.henshin.model.GraphElement * @generated */ public Adapter createGraphElementAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Module <em>Module</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.emf.henshin.model.Module * @generated */ public Adapter createModuleAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Unit <em>Unit</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.emf.henshin.model.Unit * @generated */ public Adapter createUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Mapping <em>Mapping</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.emf.henshin.model.Mapping * @generated */ public Adapter createMappingAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Node <em>Node</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.emf.henshin.model.Node * @generated */ public Adapter createNodeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Attribute <em>Attribute</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.emf.henshin.model.Attribute * @generated */ public Adapter createAttributeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Edge <em>Edge</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.emf.henshin.model.Edge * @generated */ public Adapter createEdgeAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.UnaryUnit <em>Unary Unit</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.emf.henshin.model.UnaryUnit * @generated */ public Adapter createUnaryUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.MultiUnit <em>Multi Unit</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.emf.henshin.model.MultiUnit * @generated */ public Adapter createMultiUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.IndependentUnit <em>Independent Unit</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.emf.henshin.model.IndependentUnit * @generated */ public Adapter createIndependentUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.SequentialUnit <em>Sequential Unit</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.emf.henshin.model.SequentialUnit * @generated */ public Adapter createSequentialUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.ConditionalUnit <em>Conditional Unit</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.emf.henshin.model.ConditionalUnit * @generated */ public Adapter createConditionalUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.PriorityUnit <em>Priority Unit</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.emf.henshin.model.PriorityUnit * @generated */ public Adapter createPriorityUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.IteratedUnit <em>Iterated Unit</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.emf.henshin.model.IteratedUnit * @generated */ public Adapter createIteratedUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.LoopUnit <em>Loop Unit</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.emf.henshin.model.LoopUnit * @generated */ public Adapter createLoopUnitAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.NestedCondition <em>Nested Condition</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.emf.henshin.model.NestedCondition * @generated */ public Adapter createNestedConditionAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Formula <em>Formula</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.emf.henshin.model.Formula * @generated */ public Adapter createFormulaAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.UnaryFormula <em>Unary Formula</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.emf.henshin.model.UnaryFormula * @generated */ public Adapter createUnaryFormulaAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.BinaryFormula <em>Binary Formula</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.emf.henshin.model.BinaryFormula * @generated */ public Adapter createBinaryFormulaAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.And <em>And</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.emf.henshin.model.And * @generated */ public Adapter createAndAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Or <em>Or</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.emf.henshin.model.Or * @generated */ public Adapter createOrAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Not <em>Not</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.emf.henshin.model.Not * @generated */ public Adapter createNotAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.Xor <em>Xor</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.emf.henshin.model.Xor * @generated */ public Adapter createXorAdapter() { return null; } /** * Creates a new adapter for an object of class '{@link org.eclipse.emf.henshin.model.ParameterMapping <em>Parameter Mapping</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.emf.henshin.model.ParameterMapping * @generated */ public Adapter createParameterMappingAdapter() { 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; } } //HenshinAdapterFactory