| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.util; |
| 8 | |
| 9 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
| 10 | |
| 11 | import de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.*; |
| 12 | |
| 13 | import org.eclipse.emf.common.notify.Adapter; |
| 14 | import org.eclipse.emf.common.notify.Notifier; |
| 15 | |
| 16 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 17 | |
| 18 | import org.eclipse.emf.ecore.EObject; |
| 19 | |
| 20 | /** |
| 21 | * <!-- begin-user-doc --> |
| 22 | * The <b>Adapter Factory</b> for the model. |
| 23 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
| 24 | * <!-- end-user-doc --> |
| 25 | * @see de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.RepositorydecoratorPackage |
| 26 | * @generated |
| 27 | */ |
| 28 | public class RepositorydecoratorAdapterFactory extends AdapterFactoryImpl { |
| 29 | /** |
| 30 | * The cached model package. |
| 31 | * <!-- begin-user-doc --> |
| 32 | * <!-- end-user-doc --> |
| 33 | * @generated |
| 34 | */ |
| 35 | protected static RepositorydecoratorPackage modelPackage; |
| 36 | |
| 37 | /** |
| 38 | * Creates an instance of the adapter factory. |
| 39 | * <!-- begin-user-doc --> |
| 40 | * <!-- end-user-doc --> |
| 41 | * @generated |
| 42 | */ |
| 43 | public RepositorydecoratorAdapterFactory() { |
| 44 | if (modelPackage == null) { |
| 45 | modelPackage = RepositorydecoratorPackage.eINSTANCE; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Returns whether this factory is applicable for the type of the object. |
| 51 | * <!-- begin-user-doc --> |
| 52 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 53 | * <!-- end-user-doc --> |
| 54 | * @return whether this factory is applicable for the type of the object. |
| 55 | * @generated |
| 56 | */ |
| 57 | @Override |
| 58 | public boolean isFactoryForType(Object object) { |
| 59 | if (object == modelPackage) { |
| 60 | return true; |
| 61 | } |
| 62 | if (object instanceof EObject) { |
| 63 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 64 | } |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * The switch that delegates to the <code>createXXX</code> methods. |
| 70 | * <!-- begin-user-doc --> |
| 71 | * <!-- end-user-doc --> |
| 72 | * @generated |
| 73 | */ |
| 74 | protected RepositorydecoratorSwitch<Adapter> modelSwitch = |
| 75 | new RepositorydecoratorSwitch<Adapter>() { |
| 76 | @Override |
| 77 | public Adapter caseInterfaceProvidingRequiringEntityResults(InterfaceProvidingRequiringEntityResults object) { |
| 78 | return createInterfaceProvidingRequiringEntityResultsAdapter(); |
| 79 | } |
| 80 | @Override |
| 81 | public Adapter caseComponentResult(ComponentResult object) { |
| 82 | return createComponentResultAdapter(); |
| 83 | } |
| 84 | @Override |
| 85 | public Adapter caseAllocationContextResults(AllocationContextResults object) { |
| 86 | return createAllocationContextResultsAdapter(); |
| 87 | } |
| 88 | @Override |
| 89 | public Adapter caseServiceResult(ServiceResult object) { |
| 90 | return createServiceResultAdapter(); |
| 91 | } |
| 92 | @Override |
| 93 | public Adapter caseAllocationServiceResult(AllocationServiceResult object) { |
| 94 | return createAllocationServiceResultAdapter(); |
| 95 | } |
| 96 | @Override |
| 97 | public Adapter caseNamedElement(NamedElement object) { |
| 98 | return createNamedElementAdapter(); |
| 99 | } |
| 100 | @Override |
| 101 | public Adapter defaultCase(EObject object) { |
| 102 | return createEObjectAdapter(); |
| 103 | } |
| 104 | }; |
| 105 | |
| 106 | /** |
| 107 | * Creates an adapter for the <code>target</code>. |
| 108 | * <!-- begin-user-doc --> |
| 109 | * <!-- end-user-doc --> |
| 110 | * @param target the object to adapt. |
| 111 | * @return the adapter for the <code>target</code>. |
| 112 | * @generated |
| 113 | */ |
| 114 | @Override |
| 115 | public Adapter createAdapter(Notifier target) { |
| 116 | return modelSwitch.doSwitch((EObject)target); |
| 117 | } |
| 118 | |
| 119 | |
| 120 | /** |
| 121 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.InterfaceProvidingRequiringEntityResults <em>Interface Providing Requiring Entity Results</em>}'. |
| 122 | * <!-- begin-user-doc --> |
| 123 | * This default implementation returns null so that we can easily ignore cases; |
| 124 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 125 | * <!-- end-user-doc --> |
| 126 | * @return the new adapter. |
| 127 | * @see de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.InterfaceProvidingRequiringEntityResults |
| 128 | * @generated |
| 129 | */ |
| 130 | public Adapter createInterfaceProvidingRequiringEntityResultsAdapter() { |
| 131 | return null; |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.ComponentResult <em>Component Result</em>}'. |
| 136 | * <!-- begin-user-doc --> |
| 137 | * This default implementation returns null so that we can easily ignore cases; |
| 138 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 139 | * <!-- end-user-doc --> |
| 140 | * @return the new adapter. |
| 141 | * @see de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.ComponentResult |
| 142 | * @generated |
| 143 | */ |
| 144 | public Adapter createComponentResultAdapter() { |
| 145 | return null; |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.AllocationContextResults <em>Allocation Context Results</em>}'. |
| 150 | * <!-- begin-user-doc --> |
| 151 | * This default implementation returns null so that we can easily ignore cases; |
| 152 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 153 | * <!-- end-user-doc --> |
| 154 | * @return the new adapter. |
| 155 | * @see de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.AllocationContextResults |
| 156 | * @generated |
| 157 | */ |
| 158 | public Adapter createAllocationContextResultsAdapter() { |
| 159 | return null; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.ServiceResult <em>Service Result</em>}'. |
| 164 | * <!-- begin-user-doc --> |
| 165 | * This default implementation returns null so that we can easily ignore cases; |
| 166 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 167 | * <!-- end-user-doc --> |
| 168 | * @return the new adapter. |
| 169 | * @see de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.ServiceResult |
| 170 | * @generated |
| 171 | */ |
| 172 | public Adapter createServiceResultAdapter() { |
| 173 | return null; |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.AllocationServiceResult <em>Allocation Service Result</em>}'. |
| 178 | * <!-- begin-user-doc --> |
| 179 | * This default implementation returns null so that we can easily ignore cases; |
| 180 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 181 | * <!-- end-user-doc --> |
| 182 | * @return the new adapter. |
| 183 | * @see de.uka.ipd.sdq.pcm.resultdecorator.repositorydecorator.AllocationServiceResult |
| 184 | * @generated |
| 185 | */ |
| 186 | public Adapter createAllocationServiceResultAdapter() { |
| 187 | return null; |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'. |
| 192 | * <!-- begin-user-doc --> |
| 193 | * This default implementation returns null so that we can easily ignore cases; |
| 194 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 195 | * <!-- end-user-doc --> |
| 196 | * @return the new adapter. |
| 197 | * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement |
| 198 | * @generated |
| 199 | */ |
| 200 | public Adapter createNamedElementAdapter() { |
| 201 | return null; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Creates a new adapter for the default case. |
| 206 | * <!-- begin-user-doc --> |
| 207 | * This default implementation returns null. |
| 208 | * <!-- end-user-doc --> |
| 209 | * @return the new adapter. |
| 210 | * @generated |
| 211 | */ |
| 212 | public Adapter createEObjectAdapter() { |
| 213 | return null; |
| 214 | } |
| 215 | |
| 216 | } //RepositorydecoratorAdapterFactory |