|
Lines 12-23
Link Here
|
| 12 |
*/ |
12 |
*/ |
| 13 |
package org.eclipse.emf.cdo.tests.legacy.mango.impl; |
13 |
package org.eclipse.emf.cdo.tests.legacy.mango.impl; |
| 14 |
|
14 |
|
| 15 |
import org.eclipse.emf.cdo.tests.legacy.mango.MangoFactory; |
15 |
|
| 16 |
import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage; |
16 |
import org.eclipse.emf.cdo.tests.mango.MangoFactory; |
| 17 |
import org.eclipse.emf.cdo.tests.legacy.mango.Parameter; |
17 |
import org.eclipse.emf.cdo.tests.mango.MangoPackage; |
| 18 |
import org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing; |
18 |
import org.eclipse.emf.cdo.tests.mango.MangoParameter; |
| 19 |
import org.eclipse.emf.cdo.tests.legacy.mango.Value; |
19 |
import org.eclipse.emf.cdo.tests.mango.MangoValue; |
| 20 |
import org.eclipse.emf.cdo.tests.legacy.mango.ValueList; |
20 |
import org.eclipse.emf.cdo.tests.mango.MangoValueList; |
|
|
21 |
import org.eclipse.emf.cdo.tests.mango.ParameterPassing; |
| 21 |
|
22 |
|
| 22 |
import org.eclipse.emf.ecore.EAttribute; |
23 |
import org.eclipse.emf.ecore.EAttribute; |
| 23 |
import org.eclipse.emf.ecore.EClass; |
24 |
import org.eclipse.emf.ecore.EClass; |
|
Lines 28-62
Link Here
|
| 28 |
|
29 |
|
| 29 |
/** |
30 |
/** |
| 30 |
* <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc --> |
31 |
* <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc --> |
| 31 |
* |
|
|
| 32 |
* @generated |
32 |
* @generated |
| 33 |
*/ |
33 |
*/ |
| 34 |
public class MangoPackageImpl extends EPackageImpl implements MangoPackage |
34 |
public class MangoPackageImpl extends EPackageImpl implements MangoPackage |
| 35 |
{ |
35 |
{ |
| 36 |
/** |
36 |
/** |
| 37 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
37 |
* @ADDED |
| 38 |
* |
38 |
*/ |
|
|
39 |
public static final MangoPackage eINSTANCE = org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl.init(); |
| 40 |
/** |
| 41 |
* <!-- begin-user-doc --> |
| 42 |
* <!-- end-user-doc --> |
| 39 |
* @generated |
43 |
* @generated |
| 40 |
*/ |
44 |
*/ |
| 41 |
private EClass valueListEClass = null; |
45 |
private EClass mangoValueListEClass = null; |
| 42 |
|
46 |
|
| 43 |
/** |
47 |
/** |
| 44 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
48 |
* <!-- begin-user-doc --> |
| 45 |
* |
49 |
* <!-- end-user-doc --> |
| 46 |
* @generated |
50 |
* @generated |
| 47 |
*/ |
51 |
*/ |
| 48 |
private EClass valueEClass = null; |
52 |
private EClass mangoValueEClass = null; |
| 49 |
|
53 |
|
| 50 |
/** |
54 |
/** |
| 51 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
55 |
* <!-- begin-user-doc --> |
| 52 |
* |
56 |
* <!-- end-user-doc --> |
| 53 |
* @generated |
57 |
* @generated |
| 54 |
*/ |
58 |
*/ |
| 55 |
private EClass parameterEClass = null; |
59 |
private EClass mangoParameterEClass = null; |
| 56 |
|
60 |
|
| 57 |
/** |
61 |
/** |
| 58 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
62 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
| 59 |
* |
|
|
| 60 |
* @generated |
63 |
* @generated |
| 61 |
*/ |
64 |
*/ |
| 62 |
private EEnum parameterPassingEEnum = null; |
65 |
private EEnum parameterPassingEEnum = null; |
|
Lines 81-98
Link Here
|
| 81 |
|
84 |
|
| 82 |
/** |
85 |
/** |
| 83 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
86 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
| 84 |
* |
|
|
| 85 |
* @generated |
87 |
* @generated |
| 86 |
*/ |
88 |
*/ |
| 87 |
private static boolean isInited = false; |
89 |
private static boolean isInited = false; |
| 88 |
|
90 |
|
| 89 |
/** |
91 |
/** |
| 90 |
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
92 |
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
| 91 |
* <p> |
|
|
| 92 |
* This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed. Clients should not |
| 93 |
* invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> |
| 94 |
* <!-- end-user-doc --> |
| 95 |
* |
93 |
* |
|
|
94 |
* <p>This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed. |
| 95 |
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
| 96 |
* <!-- begin-user-doc --> |
| 97 |
* <!-- end-user-doc --> |
| 96 |
* @see #eNS_URI |
98 |
* @see #eNS_URI |
| 97 |
* @see #createPackageContents() |
99 |
* @see #createPackageContents() |
| 98 |
* @see #initializePackageContents() |
100 |
* @see #initializePackageContents() |
|
Lines 125-212
Link Here
|
| 125 |
} |
127 |
} |
| 126 |
|
128 |
|
| 127 |
/** |
129 |
/** |
| 128 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
130 |
* <!-- begin-user-doc --> |
| 129 |
* |
131 |
* <!-- end-user-doc --> |
| 130 |
* @generated |
132 |
* @generated |
| 131 |
*/ |
133 |
*/ |
| 132 |
public EClass getValueList() |
134 |
public EClass getMangoValueList() |
| 133 |
{ |
135 |
{ |
| 134 |
return valueListEClass; |
136 |
return mangoValueListEClass; |
| 135 |
} |
137 |
} |
| 136 |
|
138 |
|
| 137 |
/** |
139 |
/** |
| 138 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
140 |
* <!-- begin-user-doc --> |
| 139 |
* |
141 |
* <!-- end-user-doc --> |
| 140 |
* @generated |
142 |
* @generated |
| 141 |
*/ |
143 |
*/ |
| 142 |
public EAttribute getValueList_Name() |
144 |
public EAttribute getMangoValueList_Name() |
| 143 |
{ |
145 |
{ |
| 144 |
return (EAttribute)valueListEClass.getEStructuralFeatures().get(0); |
146 |
return (EAttribute)mangoValueListEClass.getEStructuralFeatures().get(0); |
| 145 |
} |
147 |
} |
| 146 |
|
148 |
|
| 147 |
/** |
149 |
/** |
| 148 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
150 |
* <!-- begin-user-doc --> |
| 149 |
* |
151 |
* <!-- end-user-doc --> |
| 150 |
* @generated |
152 |
* @generated |
| 151 |
*/ |
153 |
*/ |
| 152 |
public EReference getValueList_Values() |
154 |
public EReference getMangoValueList_Values() |
| 153 |
{ |
155 |
{ |
| 154 |
return (EReference)valueListEClass.getEStructuralFeatures().get(1); |
156 |
return (EReference)mangoValueListEClass.getEStructuralFeatures().get(1); |
| 155 |
} |
157 |
} |
| 156 |
|
158 |
|
| 157 |
/** |
159 |
/** |
| 158 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
160 |
* <!-- begin-user-doc --> |
| 159 |
* |
161 |
* <!-- end-user-doc --> |
| 160 |
* @generated |
162 |
* @generated |
| 161 |
*/ |
163 |
*/ |
| 162 |
public EClass getValue() |
164 |
public EClass getMangoValue() |
| 163 |
{ |
165 |
{ |
| 164 |
return valueEClass; |
166 |
return mangoValueEClass; |
| 165 |
} |
167 |
} |
| 166 |
|
168 |
|
| 167 |
/** |
169 |
/** |
| 168 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
170 |
* <!-- begin-user-doc --> |
| 169 |
* |
171 |
* <!-- end-user-doc --> |
| 170 |
* @generated |
172 |
* @generated |
| 171 |
*/ |
173 |
*/ |
| 172 |
public EAttribute getValue_Name() |
174 |
public EAttribute getMangoValue_Name() |
| 173 |
{ |
175 |
{ |
| 174 |
return (EAttribute)valueEClass.getEStructuralFeatures().get(0); |
176 |
return (EAttribute)mangoValueEClass.getEStructuralFeatures().get(0); |
| 175 |
} |
177 |
} |
| 176 |
|
178 |
|
| 177 |
/** |
179 |
/** |
| 178 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
180 |
* <!-- begin-user-doc --> |
| 179 |
* |
181 |
* <!-- end-user-doc --> |
| 180 |
* @generated |
182 |
* @generated |
| 181 |
*/ |
183 |
*/ |
| 182 |
public EClass getParameter() |
184 |
public EClass getMangoParameter() |
| 183 |
{ |
185 |
{ |
| 184 |
return parameterEClass; |
186 |
return mangoParameterEClass; |
| 185 |
} |
187 |
} |
| 186 |
|
188 |
|
| 187 |
/** |
189 |
/** |
| 188 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
190 |
* <!-- begin-user-doc --> |
| 189 |
* |
191 |
* <!-- end-user-doc --> |
| 190 |
* @generated |
192 |
* @generated |
| 191 |
*/ |
193 |
*/ |
| 192 |
public EAttribute getParameter_Name() |
194 |
public EAttribute getMangoParameter_Name() |
| 193 |
{ |
195 |
{ |
| 194 |
return (EAttribute)parameterEClass.getEStructuralFeatures().get(0); |
196 |
return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(0); |
| 195 |
} |
197 |
} |
| 196 |
|
198 |
|
| 197 |
/** |
199 |
/** |
| 198 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
200 |
* <!-- begin-user-doc --> |
| 199 |
* |
201 |
* <!-- end-user-doc --> |
| 200 |
* @generated |
202 |
* @generated |
| 201 |
*/ |
203 |
*/ |
| 202 |
public EAttribute getParameter_Passing() |
204 |
public EAttribute getMangoParameter_Passing() |
| 203 |
{ |
205 |
{ |
| 204 |
return (EAttribute)parameterEClass.getEStructuralFeatures().get(1); |
206 |
return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(1); |
| 205 |
} |
207 |
} |
| 206 |
|
208 |
|
| 207 |
/** |
209 |
/** |
| 208 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
210 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
| 209 |
* |
|
|
| 210 |
* @generated |
211 |
* @generated |
| 211 |
*/ |
212 |
*/ |
| 212 |
public EEnum getParameterPassing() |
213 |
public EEnum getParameterPassing() |
|
Lines 216-222
Link Here
|
| 216 |
|
217 |
|
| 217 |
/** |
218 |
/** |
| 218 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
219 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
| 219 |
* |
|
|
| 220 |
* @generated |
220 |
* @generated |
| 221 |
*/ |
221 |
*/ |
| 222 |
public MangoFactory getMangoFactory() |
222 |
public MangoFactory getMangoFactory() |
|
Lines 226-240
Link Here
|
| 226 |
|
226 |
|
| 227 |
/** |
227 |
/** |
| 228 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
228 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
| 229 |
* |
|
|
| 230 |
* @generated |
229 |
* @generated |
| 231 |
*/ |
230 |
*/ |
| 232 |
private boolean isCreated = false; |
231 |
private boolean isCreated = false; |
| 233 |
|
232 |
|
| 234 |
/** |
233 |
/** |
| 235 |
* Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its |
234 |
* Creates the meta-model objects for the package. This method is |
| 236 |
* first. <!-- begin-user-doc --> <!-- end-user-doc --> |
235 |
* guarded to have no affect on any invocation but its first. |
| 237 |
* |
236 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
| 238 |
* @generated |
237 |
* @generated |
| 239 |
*/ |
238 |
*/ |
| 240 |
public void createPackageContents() |
239 |
public void createPackageContents() |
|
Lines 244-259
Link Here
|
| 244 |
isCreated = true; |
243 |
isCreated = true; |
| 245 |
|
244 |
|
| 246 |
// Create classes and their features |
245 |
// Create classes and their features |
| 247 |
valueListEClass = createEClass(VALUE_LIST); |
246 |
mangoValueListEClass = createEClass(MANGO_VALUE_LIST); |
| 248 |
createEAttribute(valueListEClass, VALUE_LIST__NAME); |
247 |
createEAttribute(mangoValueListEClass, MANGO_VALUE_LIST__NAME); |
| 249 |
createEReference(valueListEClass, VALUE_LIST__VALUES); |
248 |
createEReference(mangoValueListEClass, MANGO_VALUE_LIST__VALUES); |
| 250 |
|
249 |
|
| 251 |
valueEClass = createEClass(VALUE); |
250 |
mangoValueEClass = createEClass(MANGO_VALUE); |
| 252 |
createEAttribute(valueEClass, VALUE__NAME); |
251 |
createEAttribute(mangoValueEClass, MANGO_VALUE__NAME); |
| 253 |
|
252 |
|
| 254 |
parameterEClass = createEClass(PARAMETER); |
253 |
mangoParameterEClass = createEClass(MANGO_PARAMETER); |
| 255 |
createEAttribute(parameterEClass, PARAMETER__NAME); |
254 |
createEAttribute(mangoParameterEClass, MANGO_PARAMETER__NAME); |
| 256 |
createEAttribute(parameterEClass, PARAMETER__PASSING); |
255 |
createEAttribute(mangoParameterEClass, MANGO_PARAMETER__PASSING); |
| 257 |
|
256 |
|
| 258 |
// Create enums |
257 |
// Create enums |
| 259 |
parameterPassingEEnum = createEEnum(PARAMETER_PASSING); |
258 |
parameterPassingEEnum = createEEnum(PARAMETER_PASSING); |
|
Lines 261-275
Link Here
|
| 261 |
|
260 |
|
| 262 |
/** |
261 |
/** |
| 263 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
262 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
| 264 |
* |
|
|
| 265 |
* @generated |
263 |
* @generated |
| 266 |
*/ |
264 |
*/ |
| 267 |
private boolean isInitialized = false; |
265 |
private boolean isInitialized = false; |
| 268 |
|
266 |
|
| 269 |
/** |
267 |
/** |
| 270 |
* Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any |
268 |
* Complete the initialization of the package and its meta-model. This |
| 271 |
* invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc --> |
269 |
* method is guarded to have no affect on any invocation but its first. |
| 272 |
* |
270 |
* <!-- begin-user-doc --> <!-- end-user-doc --> |
| 273 |
* @generated |
271 |
* @generated |
| 274 |
*/ |
272 |
*/ |
| 275 |
public void initializePackageContents() |
273 |
public void initializePackageContents() |
|
Lines 290-311
Link Here
|
| 290 |
// Add supertypes to classes |
288 |
// Add supertypes to classes |
| 291 |
|
289 |
|
| 292 |
// Initialize classes and features; add operations and parameters |
290 |
// Initialize classes and features; add operations and parameters |
| 293 |
initEClass(valueListEClass, ValueList.class, "ValueList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
291 |
initEClass(mangoValueListEClass, MangoValueList.class, "MangoValueList", !IS_ABSTRACT, !IS_INTERFACE, |
| 294 |
initEAttribute(getValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, ValueList.class, !IS_TRANSIENT, |
292 |
IS_GENERATED_INSTANCE_CLASS); |
| 295 |
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
293 |
initEAttribute(getMangoValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValueList.class, |
| 296 |
initEReference(getValueList_Values(), this.getValue(), null, "values", null, 0, -1, ValueList.class, !IS_TRANSIENT, |
294 |
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 297 |
!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, |
295 |
initEReference(getMangoValueList_Values(), this.getMangoValue(), null, "values", null, 0, -1, MangoValueList.class, |
| 298 |
IS_ORDERED); |
296 |
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, |
| 299 |
|
297 |
!IS_DERIVED, IS_ORDERED); |
| 300 |
initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
298 |
|
| 301 |
initEAttribute(getValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, Value.class, !IS_TRANSIENT, |
299 |
initEClass(mangoValueEClass, MangoValue.class, "MangoValue", !IS_ABSTRACT, !IS_INTERFACE, |
| 302 |
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
300 |
IS_GENERATED_INSTANCE_CLASS); |
| 303 |
|
301 |
initEAttribute(getMangoValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValue.class, |
| 304 |
initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
302 |
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 305 |
initEAttribute(getParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Parameter.class, !IS_TRANSIENT, |
303 |
|
| 306 |
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
304 |
initEClass(mangoParameterEClass, MangoParameter.class, "MangoParameter", !IS_ABSTRACT, !IS_INTERFACE, |
| 307 |
initEAttribute(getParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1, Parameter.class, |
305 |
IS_GENERATED_INSTANCE_CLASS); |
|
|
306 |
initEAttribute(getMangoParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoParameter.class, |
| 308 |
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
307 |
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
|
|
308 |
initEAttribute(getMangoParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1, |
| 309 |
MangoParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, |
| 310 |
!IS_DERIVED, IS_ORDERED); |
| 309 |
|
311 |
|
| 310 |
// Initialize enums and add enum literals |
312 |
// Initialize enums and add enum literals |
| 311 |
initEEnum(parameterPassingEEnum, ParameterPassing.class, "ParameterPassing"); |
313 |
initEEnum(parameterPassingEEnum, ParameterPassing.class, "ParameterPassing"); |