| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.util; |
| 8 | |
| 9 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
| 10 | |
| 11 | import de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.*; |
| 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.resourceenvironmentdecorator.ResourceenvironmentdecoratorPackage |
| 26 | * @generated |
| 27 | */ |
| 28 | public class ResourceenvironmentdecoratorAdapterFactory extends AdapterFactoryImpl { |
| 29 | /** |
| 30 | * The cached model package. |
| 31 | * <!-- begin-user-doc --> |
| 32 | * <!-- end-user-doc --> |
| 33 | * @generated |
| 34 | */ |
| 35 | protected static ResourceenvironmentdecoratorPackage modelPackage; |
| 36 | |
| 37 | /** |
| 38 | * Creates an instance of the adapter factory. |
| 39 | * <!-- begin-user-doc --> |
| 40 | * <!-- end-user-doc --> |
| 41 | * @generated |
| 42 | */ |
| 43 | public ResourceenvironmentdecoratorAdapterFactory() { |
| 44 | if (modelPackage == null) { |
| 45 | modelPackage = ResourceenvironmentdecoratorPackage.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 ResourceenvironmentdecoratorSwitch<Adapter> modelSwitch = |
| 75 | new ResourceenvironmentdecoratorSwitch<Adapter>() { |
| 76 | @Override |
| 77 | public Adapter caseLinkingResourceResults(LinkingResourceResults object) { |
| 78 | return createLinkingResourceResultsAdapter(); |
| 79 | } |
| 80 | @Override |
| 81 | public Adapter caseActiveResourceUtilisationResult(ActiveResourceUtilisationResult object) { |
| 82 | return createActiveResourceUtilisationResultAdapter(); |
| 83 | } |
| 84 | @Override |
| 85 | public Adapter caseUtilisationResult(UtilisationResult object) { |
| 86 | return createUtilisationResultAdapter(); |
| 87 | } |
| 88 | @Override |
| 89 | public Adapter caseResourceContainerResults(ResourceContainerResults object) { |
| 90 | return createResourceContainerResultsAdapter(); |
| 91 | } |
| 92 | @Override |
| 93 | public Adapter caseProcessingResourceSpecificationResult(ProcessingResourceSpecificationResult object) { |
| 94 | return createProcessingResourceSpecificationResultAdapter(); |
| 95 | } |
| 96 | @Override |
| 97 | public Adapter casePassiveResourceResult(PassiveResourceResult object) { |
| 98 | return createPassiveResourceResultAdapter(); |
| 99 | } |
| 100 | @Override |
| 101 | public Adapter caseNamedElement(NamedElement object) { |
| 102 | return createNamedElementAdapter(); |
| 103 | } |
| 104 | @Override |
| 105 | public Adapter defaultCase(EObject object) { |
| 106 | return createEObjectAdapter(); |
| 107 | } |
| 108 | }; |
| 109 | |
| 110 | /** |
| 111 | * Creates an adapter for the <code>target</code>. |
| 112 | * <!-- begin-user-doc --> |
| 113 | * <!-- end-user-doc --> |
| 114 | * @param target the object to adapt. |
| 115 | * @return the adapter for the <code>target</code>. |
| 116 | * @generated |
| 117 | */ |
| 118 | @Override |
| 119 | public Adapter createAdapter(Notifier target) { |
| 120 | return modelSwitch.doSwitch((EObject)target); |
| 121 | } |
| 122 | |
| 123 | |
| 124 | /** |
| 125 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.LinkingResourceResults <em>Linking Resource Results</em>}'. |
| 126 | * <!-- begin-user-doc --> |
| 127 | * This default implementation returns null so that we can easily ignore cases; |
| 128 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 129 | * <!-- end-user-doc --> |
| 130 | * @return the new adapter. |
| 131 | * @see de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.LinkingResourceResults |
| 132 | * @generated |
| 133 | */ |
| 134 | public Adapter createLinkingResourceResultsAdapter() { |
| 135 | return null; |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ActiveResourceUtilisationResult <em>Active Resource Utilisation Result</em>}'. |
| 140 | * <!-- begin-user-doc --> |
| 141 | * This default implementation returns null so that we can easily ignore cases; |
| 142 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 143 | * <!-- end-user-doc --> |
| 144 | * @return the new adapter. |
| 145 | * @see de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ActiveResourceUtilisationResult |
| 146 | * @generated |
| 147 | */ |
| 148 | public Adapter createActiveResourceUtilisationResultAdapter() { |
| 149 | return null; |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.UtilisationResult <em>Utilisation Result</em>}'. |
| 154 | * <!-- begin-user-doc --> |
| 155 | * This default implementation returns null so that we can easily ignore cases; |
| 156 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 157 | * <!-- end-user-doc --> |
| 158 | * @return the new adapter. |
| 159 | * @see de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.UtilisationResult |
| 160 | * @generated |
| 161 | */ |
| 162 | public Adapter createUtilisationResultAdapter() { |
| 163 | return null; |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ResourceContainerResults <em>Resource Container Results</em>}'. |
| 168 | * <!-- begin-user-doc --> |
| 169 | * This default implementation returns null so that we can easily ignore cases; |
| 170 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 171 | * <!-- end-user-doc --> |
| 172 | * @return the new adapter. |
| 173 | * @see de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ResourceContainerResults |
| 174 | * @generated |
| 175 | */ |
| 176 | public Adapter createResourceContainerResultsAdapter() { |
| 177 | return null; |
| 178 | } |
| 179 | |
| 180 | /** |
| 181 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult <em>Processing Resource Specification Result</em>}'. |
| 182 | * <!-- begin-user-doc --> |
| 183 | * This default implementation returns null so that we can easily ignore cases; |
| 184 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 185 | * <!-- end-user-doc --> |
| 186 | * @return the new adapter. |
| 187 | * @see de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.ProcessingResourceSpecificationResult |
| 188 | * @generated |
| 189 | */ |
| 190 | public Adapter createProcessingResourceSpecificationResultAdapter() { |
| 191 | return null; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.PassiveResourceResult <em>Passive Resource Result</em>}'. |
| 196 | * <!-- begin-user-doc --> |
| 197 | * This default implementation returns null so that we can easily ignore cases; |
| 198 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 199 | * <!-- end-user-doc --> |
| 200 | * @return the new adapter. |
| 201 | * @see de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.PassiveResourceResult |
| 202 | * @generated |
| 203 | */ |
| 204 | public Adapter createPassiveResourceResultAdapter() { |
| 205 | return null; |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'. |
| 210 | * <!-- begin-user-doc --> |
| 211 | * This default implementation returns null so that we can easily ignore cases; |
| 212 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 213 | * <!-- end-user-doc --> |
| 214 | * @return the new adapter. |
| 215 | * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement |
| 216 | * @generated |
| 217 | */ |
| 218 | public Adapter createNamedElementAdapter() { |
| 219 | return null; |
| 220 | } |
| 221 | |
| 222 | /** |
| 223 | * Creates a new adapter for the default case. |
| 224 | * <!-- begin-user-doc --> |
| 225 | * This default implementation returns null. |
| 226 | * <!-- end-user-doc --> |
| 227 | * @return the new adapter. |
| 228 | * @generated |
| 229 | */ |
| 230 | public Adapter createEObjectAdapter() { |
| 231 | return null; |
| 232 | } |
| 233 | |
| 234 | } //ResourceenvironmentdecoratorAdapterFactory |