Skip to content

Package: ErrorPackageImpl

ErrorPackageImpl

nameinstructionbranchcomplexitylinemethod
ErrorPackageImpl()
M: 0 C: 35
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 12
100%
M: 0 C: 1
100%
createPackageContents()
M: 1 C: 147
99%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 31
97%
M: 0 C: 1
100%
getDMRLocation()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getDMRLocation_DomainModelReference()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getEMFLocation()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getEMFLocation_DmrLocation()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getEMFLocation_Root()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getEMFLocation_SettingLocation()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getErrorFactory()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getErrorReport()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getErrorReport_EmfLocation()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getErrorReport_Message()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getErrorReport_Severity()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getErrorReport_SheetLocation()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSettingLocation()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSettingLocation_EObject()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSettingLocation_Feature()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSettingToSheetMapping()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSettingToSheetMapping_SettingLocation()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSettingToSheetMapping_SheetLocation()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSeverity()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSheetLocation()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSheetLocation_Column()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSheetLocation_ColumnName()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSheetLocation_Row()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSheetLocation_Sheet()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSheetLocation_Valid()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSpreadsheetImportResult()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSpreadsheetImportResult_ErrorReports()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSpreadsheetImportResult_ImportedEObjects()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSpreadsheetImportResult_SettingToSheetMap()
M: 0 C: 7
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
init()
M: 9 C: 30
77%
M: 2 C: 2
50%
M: 2 C: 1
33%
M: 1 C: 11
92%
M: 0 C: 1
100%
initializePackageContents()
M: 1 C: 564
100%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 84
99%
M: 0 C: 1
100%
static {...}
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /**
2: * Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Johannes Faltermeier - initial API and implementation
13: */
14: package org.eclipse.emfforms.spi.spreadsheet.core.error.model.impl;
15:
16: import org.eclipse.emf.ecore.EAttribute;
17: import org.eclipse.emf.ecore.EClass;
18: import org.eclipse.emf.ecore.EEnum;
19: import org.eclipse.emf.ecore.EPackage;
20: import org.eclipse.emf.ecore.EReference;
21: import org.eclipse.emf.ecore.EcorePackage;
22: import org.eclipse.emf.ecore.impl.EPackageImpl;
23: import org.eclipse.emf.ecp.view.spi.model.VViewPackage;
24: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.DMRLocation;
25: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.EMFLocation;
26: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.ErrorFactory;
27: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.ErrorPackage;
28: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.ErrorReport;
29: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.SettingLocation;
30: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.SettingToSheetMapping;
31: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.Severity;
32: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.SheetLocation;
33: import org.eclipse.emfforms.spi.spreadsheet.core.error.model.SpreadsheetImportResult;
34:
35: /**
36: * <!-- begin-user-doc -->
37: * An implementation of the model <b>Package</b>.
38: * <!-- end-user-doc -->
39: *
40: * @generated
41: */
42: public class ErrorPackageImpl extends EPackageImpl implements ErrorPackage {
43:         /**
44:          * <!-- begin-user-doc -->
45:          * <!-- end-user-doc -->
46:          *
47:          * @generated
48:          */
49:         private EClass spreadsheetImportResultEClass = null;
50:
51:         /**
52:          * <!-- begin-user-doc -->
53:          * <!-- end-user-doc -->
54:          *
55:          * @generated
56:          */
57:         private EClass errorReportEClass = null;
58:
59:         /**
60:          * <!-- begin-user-doc -->
61:          * <!-- end-user-doc -->
62:          *
63:          * @generated
64:          */
65:         private EClass emfLocationEClass = null;
66:
67:         /**
68:          * <!-- begin-user-doc -->
69:          * <!-- end-user-doc -->
70:          *
71:          * @generated
72:          */
73:         private EClass settingLocationEClass = null;
74:
75:         /**
76:          * <!-- begin-user-doc -->
77:          * <!-- end-user-doc -->
78:          *
79:          * @generated
80:          */
81:         private EClass dmrLocationEClass = null;
82:
83:         /**
84:          * <!-- begin-user-doc -->
85:          * <!-- end-user-doc -->
86:          *
87:          * @generated
88:          */
89:         private EClass settingToSheetMappingEClass = null;
90:
91:         /**
92:          * <!-- begin-user-doc -->
93:          * <!-- end-user-doc -->
94:          *
95:          * @generated
96:          */
97:         private EClass sheetLocationEClass = null;
98:
99:         /**
100:          * <!-- begin-user-doc -->
101:          * <!-- end-user-doc -->
102:          *
103:          * @generated
104:          */
105:         private EEnum severityEEnum = null;
106:
107:         /**
108:          * Creates an instance of the model <b>Package</b>, registered with
109:          * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
110:          * package URI value.
111:          * <p>
112:          * Note: the correct way to create the package is via the static
113:          * factory method {@link #init init()}, which also performs
114:          * initialization of the package, or returns the registered package,
115:          * if one already exists.
116:          * <!-- begin-user-doc -->
117:          * <!-- end-user-doc -->
118:          *
119:          * @see org.eclipse.emf.ecore.EPackage.Registry
120:          * @see org.eclipse.emfforms.spi.spreadsheet.core.error.model.ErrorPackage#eNS_URI
121:          * @see #init()
122:          * @generated
123:          */
124:         private ErrorPackageImpl() {
125:                 super(eNS_URI, ErrorFactory.eINSTANCE);
126:         }
127:
128:         /**
129:          * <!-- begin-user-doc -->
130:          * <!-- end-user-doc -->
131:          *
132:          * @generated
133:          */
134:         private static boolean isInited = false;
135:
136:         /**
137:          * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
138:          *
139:          * <p>
140:          * This method is used to initialize {@link ErrorPackage#eINSTANCE} when that field is accessed.
141:          * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
142:          * <!-- begin-user-doc -->
143:          * <!-- end-user-doc -->
144:          *
145:          * @see #eNS_URI
146:          * @see #createPackageContents()
147:          * @see #initializePackageContents()
148:          * @generated
149:          */
150:         public static ErrorPackage init() {
151:•                if (isInited) {
152:                         return (ErrorPackage) EPackage.Registry.INSTANCE.getEPackage(ErrorPackage.eNS_URI);
153:                 }
154:
155:                 // Obtain or create and register package
156:                 final ErrorPackageImpl theErrorPackage = (ErrorPackageImpl) (EPackage.Registry.INSTANCE
157:•                        .get(eNS_URI) instanceof ErrorPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI)
158:                                 : new ErrorPackageImpl());
159:
160:                 isInited = true;
161:
162:                 // Initialize simple dependencies
163:                 VViewPackage.eINSTANCE.eClass();
164:
165:                 // Create package meta-data objects
166:                 theErrorPackage.createPackageContents();
167:
168:                 // Initialize created meta-data
169:                 theErrorPackage.initializePackageContents();
170:
171:                 // Mark meta-data to indicate it can't be changed
172:                 theErrorPackage.freeze();
173:
174:                 // Update the registry and return the package
175:                 EPackage.Registry.INSTANCE.put(ErrorPackage.eNS_URI, theErrorPackage);
176:                 return theErrorPackage;
177:         }
178:
179:         /**
180:          * <!-- begin-user-doc -->
181:          * <!-- end-user-doc -->
182:          *
183:          * @generated
184:          */
185:         @Override
186:         public EClass getSpreadsheetImportResult() {
187:                 return spreadsheetImportResultEClass;
188:         }
189:
190:         /**
191:          * <!-- begin-user-doc -->
192:          * <!-- end-user-doc -->
193:          *
194:          * @generated
195:          */
196:         @Override
197:         public EReference getSpreadsheetImportResult_ErrorReports() {
198:                 return (EReference) spreadsheetImportResultEClass.getEStructuralFeatures().get(0);
199:         }
200:
201:         /**
202:          * <!-- begin-user-doc -->
203:          * <!-- end-user-doc -->
204:          *
205:          * @generated
206:          */
207:         @Override
208:         public EReference getSpreadsheetImportResult_ImportedEObjects() {
209:                 return (EReference) spreadsheetImportResultEClass.getEStructuralFeatures().get(1);
210:         }
211:
212:         /**
213:          * <!-- begin-user-doc -->
214:          * <!-- end-user-doc -->
215:          *
216:          * @generated
217:          */
218:         @Override
219:         public EReference getSpreadsheetImportResult_SettingToSheetMap() {
220:                 return (EReference) spreadsheetImportResultEClass.getEStructuralFeatures().get(2);
221:         }
222:
223:         /**
224:          * <!-- begin-user-doc -->
225:          * <!-- end-user-doc -->
226:          *
227:          * @generated
228:          */
229:         @Override
230:         public EClass getErrorReport() {
231:                 return errorReportEClass;
232:         }
233:
234:         /**
235:          * <!-- begin-user-doc -->
236:          * <!-- end-user-doc -->
237:          *
238:          * @generated
239:          */
240:         @Override
241:         public EAttribute getErrorReport_Severity() {
242:                 return (EAttribute) errorReportEClass.getEStructuralFeatures().get(0);
243:         }
244:
245:         /**
246:          * <!-- begin-user-doc -->
247:          * <!-- end-user-doc -->
248:          *
249:          * @generated
250:          */
251:         @Override
252:         public EAttribute getErrorReport_Message() {
253:                 return (EAttribute) errorReportEClass.getEStructuralFeatures().get(1);
254:         }
255:
256:         /**
257:          * <!-- begin-user-doc -->
258:          * <!-- end-user-doc -->
259:          *
260:          * @generated
261:          */
262:         @Override
263:         public EReference getErrorReport_EmfLocation() {
264:                 return (EReference) errorReportEClass.getEStructuralFeatures().get(2);
265:         }
266:
267:         /**
268:          * <!-- begin-user-doc -->
269:          * <!-- end-user-doc -->
270:          *
271:          * @generated
272:          */
273:         @Override
274:         public EReference getErrorReport_SheetLocation() {
275:                 return (EReference) errorReportEClass.getEStructuralFeatures().get(3);
276:         }
277:
278:         /**
279:          * <!-- begin-user-doc -->
280:          * <!-- end-user-doc -->
281:          *
282:          * @generated
283:          */
284:         @Override
285:         public EClass getEMFLocation() {
286:                 return emfLocationEClass;
287:         }
288:
289:         /**
290:          * <!-- begin-user-doc -->
291:          * <!-- end-user-doc -->
292:          *
293:          * @generated
294:          */
295:         @Override
296:         public EReference getEMFLocation_Root() {
297:                 return (EReference) emfLocationEClass.getEStructuralFeatures().get(0);
298:         }
299:
300:         /**
301:          * <!-- begin-user-doc -->
302:          * <!-- end-user-doc -->
303:          *
304:          * @generated
305:          */
306:         @Override
307:         public EReference getEMFLocation_SettingLocation() {
308:                 return (EReference) emfLocationEClass.getEStructuralFeatures().get(1);
309:         }
310:
311:         /**
312:          * <!-- begin-user-doc -->
313:          * <!-- end-user-doc -->
314:          *
315:          * @generated
316:          */
317:         @Override
318:         public EReference getEMFLocation_DmrLocation() {
319:                 return (EReference) emfLocationEClass.getEStructuralFeatures().get(2);
320:         }
321:
322:         /**
323:          * <!-- begin-user-doc -->
324:          * <!-- end-user-doc -->
325:          *
326:          * @generated
327:          */
328:         @Override
329:         public EClass getSettingLocation() {
330:                 return settingLocationEClass;
331:         }
332:
333:         /**
334:          * <!-- begin-user-doc -->
335:          * <!-- end-user-doc -->
336:          *
337:          * @generated
338:          */
339:         @Override
340:         public EReference getSettingLocation_EObject() {
341:                 return (EReference) settingLocationEClass.getEStructuralFeatures().get(0);
342:         }
343:
344:         /**
345:          * <!-- begin-user-doc -->
346:          * <!-- end-user-doc -->
347:          *
348:          * @generated
349:          */
350:         @Override
351:         public EReference getSettingLocation_Feature() {
352:                 return (EReference) settingLocationEClass.getEStructuralFeatures().get(1);
353:         }
354:
355:         /**
356:          * <!-- begin-user-doc -->
357:          * <!-- end-user-doc -->
358:          *
359:          * @generated
360:          */
361:         @Override
362:         public EClass getDMRLocation() {
363:                 return dmrLocationEClass;
364:         }
365:
366:         /**
367:          * <!-- begin-user-doc -->
368:          * <!-- end-user-doc -->
369:          *
370:          * @generated
371:          */
372:         @Override
373:         public EReference getDMRLocation_DomainModelReference() {
374:                 return (EReference) dmrLocationEClass.getEStructuralFeatures().get(0);
375:         }
376:
377:         /**
378:          * <!-- begin-user-doc -->
379:          * <!-- end-user-doc -->
380:          *
381:          * @generated
382:          */
383:         @Override
384:         public EClass getSettingToSheetMapping() {
385:                 return settingToSheetMappingEClass;
386:         }
387:
388:         /**
389:          * <!-- begin-user-doc -->
390:          * <!-- end-user-doc -->
391:          *
392:          * @generated
393:          */
394:         @Override
395:         public EReference getSettingToSheetMapping_SheetLocation() {
396:                 return (EReference) settingToSheetMappingEClass.getEStructuralFeatures().get(0);
397:         }
398:
399:         /**
400:          * <!-- begin-user-doc -->
401:          * <!-- end-user-doc -->
402:          *
403:          * @generated
404:          */
405:         @Override
406:         public EReference getSettingToSheetMapping_SettingLocation() {
407:                 return (EReference) settingToSheetMappingEClass.getEStructuralFeatures().get(1);
408:         }
409:
410:         /**
411:          * <!-- begin-user-doc -->
412:          * <!-- end-user-doc -->
413:          *
414:          * @generated
415:          */
416:         @Override
417:         public EClass getSheetLocation() {
418:                 return sheetLocationEClass;
419:         }
420:
421:         /**
422:          * <!-- begin-user-doc -->
423:          * <!-- end-user-doc -->
424:          *
425:          * @generated
426:          */
427:         @Override
428:         public EAttribute getSheetLocation_Sheet() {
429:                 return (EAttribute) sheetLocationEClass.getEStructuralFeatures().get(0);
430:         }
431:
432:         /**
433:          * <!-- begin-user-doc -->
434:          * <!-- end-user-doc -->
435:          *
436:          * @generated
437:          */
438:         @Override
439:         public EAttribute getSheetLocation_Column() {
440:                 return (EAttribute) sheetLocationEClass.getEStructuralFeatures().get(1);
441:         }
442:
443:         /**
444:          * <!-- begin-user-doc -->
445:          * <!-- end-user-doc -->
446:          *
447:          * @generated
448:          */
449:         @Override
450:         public EAttribute getSheetLocation_Row() {
451:                 return (EAttribute) sheetLocationEClass.getEStructuralFeatures().get(2);
452:         }
453:
454:         /**
455:          * <!-- begin-user-doc -->
456:          * <!-- end-user-doc -->
457:          *
458:          * @generated
459:          */
460:         @Override
461:         public EAttribute getSheetLocation_ColumnName() {
462:                 return (EAttribute) sheetLocationEClass.getEStructuralFeatures().get(3);
463:         }
464:
465:         /**
466:          * <!-- begin-user-doc -->
467:          * <!-- end-user-doc -->
468:          *
469:          * @generated
470:          */
471:         @Override
472:         public EAttribute getSheetLocation_Valid() {
473:                 return (EAttribute) sheetLocationEClass.getEStructuralFeatures().get(4);
474:         }
475:
476:         /**
477:          * <!-- begin-user-doc -->
478:          * <!-- end-user-doc -->
479:          *
480:          * @generated
481:          */
482:         @Override
483:         public EEnum getSeverity() {
484:                 return severityEEnum;
485:         }
486:
487:         /**
488:          * <!-- begin-user-doc -->
489:          * <!-- end-user-doc -->
490:          *
491:          * @generated
492:          */
493:         @Override
494:         public ErrorFactory getErrorFactory() {
495:                 return (ErrorFactory) getEFactoryInstance();
496:         }
497:
498:         /**
499:          * <!-- begin-user-doc -->
500:          * <!-- end-user-doc -->
501:          *
502:          * @generated
503:          */
504:         private boolean isCreated = false;
505:
506:         /**
507:          * Creates the meta-model objects for the package. This method is
508:          * guarded to have no affect on any invocation but its first.
509:          * <!-- begin-user-doc -->
510:          * <!-- end-user-doc -->
511:          *
512:          * @generated
513:          */
514:         public void createPackageContents() {
515:•                if (isCreated) {
516:                         return;
517:                 }
518:                 isCreated = true;
519:
520:                 // Create classes and their features
521:                 spreadsheetImportResultEClass = createEClass(SPREADSHEET_IMPORT_RESULT);
522:                 createEReference(spreadsheetImportResultEClass, SPREADSHEET_IMPORT_RESULT__ERROR_REPORTS);
523:                 createEReference(spreadsheetImportResultEClass, SPREADSHEET_IMPORT_RESULT__IMPORTED_EOBJECTS);
524:                 createEReference(spreadsheetImportResultEClass, SPREADSHEET_IMPORT_RESULT__SETTING_TO_SHEET_MAP);
525:
526:                 errorReportEClass = createEClass(ERROR_REPORT);
527:                 createEAttribute(errorReportEClass, ERROR_REPORT__SEVERITY);
528:                 createEAttribute(errorReportEClass, ERROR_REPORT__MESSAGE);
529:                 createEReference(errorReportEClass, ERROR_REPORT__EMF_LOCATION);
530:                 createEReference(errorReportEClass, ERROR_REPORT__SHEET_LOCATION);
531:
532:                 sheetLocationEClass = createEClass(SHEET_LOCATION);
533:                 createEAttribute(sheetLocationEClass, SHEET_LOCATION__SHEET);
534:                 createEAttribute(sheetLocationEClass, SHEET_LOCATION__COLUMN);
535:                 createEAttribute(sheetLocationEClass, SHEET_LOCATION__ROW);
536:                 createEAttribute(sheetLocationEClass, SHEET_LOCATION__COLUMN_NAME);
537:                 createEAttribute(sheetLocationEClass, SHEET_LOCATION__VALID);
538:
539:                 emfLocationEClass = createEClass(EMF_LOCATION);
540:                 createEReference(emfLocationEClass, EMF_LOCATION__ROOT);
541:                 createEReference(emfLocationEClass, EMF_LOCATION__SETTING_LOCATION);
542:                 createEReference(emfLocationEClass, EMF_LOCATION__DMR_LOCATION);
543:
544:                 settingLocationEClass = createEClass(SETTING_LOCATION);
545:                 createEReference(settingLocationEClass, SETTING_LOCATION__EOBJECT);
546:                 createEReference(settingLocationEClass, SETTING_LOCATION__FEATURE);
547:
548:                 dmrLocationEClass = createEClass(DMR_LOCATION);
549:                 createEReference(dmrLocationEClass, DMR_LOCATION__DOMAIN_MODEL_REFERENCE);
550:
551:                 settingToSheetMappingEClass = createEClass(SETTING_TO_SHEET_MAPPING);
552:                 createEReference(settingToSheetMappingEClass, SETTING_TO_SHEET_MAPPING__SHEET_LOCATION);
553:                 createEReference(settingToSheetMappingEClass, SETTING_TO_SHEET_MAPPING__SETTING_LOCATION);
554:
555:                 // Create enums
556:                 severityEEnum = createEEnum(SEVERITY);
557:         }
558:
559:         /**
560:          * <!-- begin-user-doc -->
561:          * <!-- end-user-doc -->
562:          *
563:          * @generated
564:          */
565:         private boolean isInitialized = false;
566:
567:         /**
568:          * Complete the initialization of the package and its meta-model. This
569:          * method is guarded to have no affect on any invocation but its first.
570:          * <!-- begin-user-doc -->
571:          * <!-- end-user-doc -->
572:          *
573:          * @generated
574:          */
575:         public void initializePackageContents() {
576:•                if (isInitialized) {
577:                         return;
578:                 }
579:                 isInitialized = true;
580:
581:                 // Initialize package
582:                 setName(eNAME);
583:                 setNsPrefix(eNS_PREFIX);
584:                 setNsURI(eNS_URI);
585:
586:                 // Obtain other dependent packages
587:                 final EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE
588:                         .getEPackage(EcorePackage.eNS_URI);
589:                 final VViewPackage theViewPackage = (VViewPackage) EPackage.Registry.INSTANCE.getEPackage(VViewPackage.eNS_URI);
590:
591:                 // Create type parameters
592:
593:                 // Set bounds for type parameters
594:
595:                 // Add supertypes to classes
596:
597:                 // Initialize classes and features; add operations and parameters
598:                 initEClass(spreadsheetImportResultEClass, SpreadsheetImportResult.class, "SpreadsheetImportResult", //$NON-NLS-1$
599:                         !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
600:                 initEReference(getSpreadsheetImportResult_ErrorReports(), getErrorReport(), null, "errorReports", null, 0, //$NON-NLS-1$
601:                         -1, SpreadsheetImportResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
602:                         !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
603:                 initEReference(getSpreadsheetImportResult_ImportedEObjects(), theEcorePackage.getEObject(), null,
604:                         "importedEObjects", null, 0, -1, SpreadsheetImportResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$
605:                         !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
606:                 initEReference(getSpreadsheetImportResult_SettingToSheetMap(), getSettingToSheetMapping(), null,
607:                         "settingToSheetMap", null, 0, -1, SpreadsheetImportResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$
608:                         !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
609:
610:                 initEClass(errorReportEClass, ErrorReport.class, "ErrorReport", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
611:                         IS_GENERATED_INSTANCE_CLASS);
612:                 initEAttribute(getErrorReport_Severity(), getSeverity(), "severity", null, 1, 1, ErrorReport.class, //$NON-NLS-1$
613:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
614:                 initEAttribute(getErrorReport_Message(), ecorePackage.getEString(), "message", null, 1, 1, ErrorReport.class, //$NON-NLS-1$
615:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
616:                 initEReference(getErrorReport_EmfLocation(), getEMFLocation(), null, "emfLocation", null, 0, 1, //$NON-NLS-1$
617:                         ErrorReport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
618:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
619:                 initEReference(getErrorReport_SheetLocation(), getSheetLocation(), null, "sheetLocation", null, 0, 1, //$NON-NLS-1$
620:                         ErrorReport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
621:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
622:
623:                 initEClass(sheetLocationEClass, SheetLocation.class, "SheetLocation", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
624:                         IS_GENERATED_INSTANCE_CLASS);
625:                 initEAttribute(getSheetLocation_Sheet(), ecorePackage.getEString(), "sheet", null, 1, 1, SheetLocation.class, //$NON-NLS-1$
626:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
627:                 initEAttribute(getSheetLocation_Column(), ecorePackage.getEInt(), "column", null, 1, 1, SheetLocation.class, //$NON-NLS-1$
628:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
629:                 initEAttribute(getSheetLocation_Row(), ecorePackage.getEInt(), "row", null, 1, 1, SheetLocation.class, //$NON-NLS-1$
630:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
631:                 initEAttribute(getSheetLocation_ColumnName(), ecorePackage.getEString(), "columnName", null, 1, 1, //$NON-NLS-1$
632:                         SheetLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
633:                         !IS_DERIVED, IS_ORDERED);
634:                 initEAttribute(getSheetLocation_Valid(), ecorePackage.getEBoolean(), "valid", "true", 1, 1, SheetLocation.class, //$NON-NLS-1$ //$NON-NLS-2$
635:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
636:
637:                 initEClass(emfLocationEClass, EMFLocation.class, "EMFLocation", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
638:                         IS_GENERATED_INSTANCE_CLASS);
639:                 initEReference(getEMFLocation_Root(), theEcorePackage.getEObject(), null, "root", null, 1, 1, EMFLocation.class, //$NON-NLS-1$
640:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
641:                         !IS_DERIVED, IS_ORDERED);
642:                 initEReference(getEMFLocation_SettingLocation(), getSettingLocation(), null, "settingLocation", null, 0, 1, //$NON-NLS-1$
643:                         EMFLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
644:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
645:                 initEReference(getEMFLocation_DmrLocation(), getDMRLocation(), null, "dmrLocation", null, 0, 1, //$NON-NLS-1$
646:                         EMFLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
647:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
648:
649:                 initEClass(settingLocationEClass, SettingLocation.class, "SettingLocation", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
650:                         IS_GENERATED_INSTANCE_CLASS);
651:                 initEReference(getSettingLocation_EObject(), theEcorePackage.getEObject(), null, "eObject", null, 1, 1, //$NON-NLS-1$
652:                         SettingLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
653:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
654:                 initEReference(getSettingLocation_Feature(), theEcorePackage.getEStructuralFeature(), null, "feature", null, 1, //$NON-NLS-1$
655:                         1, SettingLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
656:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
657:
658:                 initEClass(dmrLocationEClass, DMRLocation.class, "DMRLocation", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
659:                         IS_GENERATED_INSTANCE_CLASS);
660:                 initEReference(getDMRLocation_DomainModelReference(), theViewPackage.getDomainModelReference(), null,
661:                         "domainModelReference", null, 1, 1, DMRLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$
662:                         IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
663:
664:                 initEClass(settingToSheetMappingEClass, SettingToSheetMapping.class, "SettingToSheetMapping", !IS_ABSTRACT, //$NON-NLS-1$
665:                         !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
666:                 initEReference(getSettingToSheetMapping_SheetLocation(), getSheetLocation(), null, "sheetLocation", null, //$NON-NLS-1$
667:                         1, 1, SettingToSheetMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
668:                         !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
669:                 initEReference(getSettingToSheetMapping_SettingLocation(), getSettingLocation(), null, "settingLocation", //$NON-NLS-1$
670:                         null, 1, 1, SettingToSheetMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
671:                         !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
672:
673:                 // Initialize enums and add enum literals
674:                 initEEnum(severityEEnum, Severity.class, "Severity"); //$NON-NLS-1$
675:                 addEEnumLiteral(severityEEnum, Severity.OK);
676:                 addEEnumLiteral(severityEEnum, Severity.INFO);
677:                 addEEnumLiteral(severityEEnum, Severity.WARNING);
678:                 addEEnumLiteral(severityEEnum, Severity.ERROR);
679:                 addEEnumLiteral(severityEEnum, Severity.CANCEL);
680:
681:                 // Create resource
682:                 createResource(eNS_URI);
683:         }
684:
685: } // ErrorPackageImpl