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