Skip to content

Package: TestPackageImpl

TestPackageImpl

nameinstructionbranchcomplexitylinemethod
TestPackageImpl()
M: 0 C: 107
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 36
100%
M: 0 C: 1
100%
createExtendedMetaDataAnnotations()
M: 0 C: 117
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 29
100%
M: 0 C: 1
100%
createPackageContents()
M: 1 C: 412
100%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 84
99%
M: 0 C: 1
100%
getAge()
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%
getBook()
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%
getBook_Pages()
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%
getBook_Title()
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%
getBook_Writers()
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%
getColor()
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%
getComputer()
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%
getComputer_Colors()
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%
getComputer_Mainboard()
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%
getComputer_Name()
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%
getComputer_PowerBlock()
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%
getContainer()
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%
getContainer_Contents()
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%
getContent()
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%
getContent_SecondAttribute()
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%
getContent_UniqueAttribute()
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%
getCrossReferenceContainer()
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%
getCrossReferenceContainer_Contents()
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%
getCrossReferenceContainer_SingleContent()
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%
getCrossReferenceContent()
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%
getCrossReferenceContent_Parent()
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%
getCrossReferenceContent_SingleParent()
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%
getCustomDataType()
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%
getGender()
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%
getLibrarian()
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%
getLibrarian_Name()
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%
getLibrary()
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%
getLibrary_Books()
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%
getLibrary_Librarian()
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%
getLibrary_Name()
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%
getLibrary_PhoneNumber()
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%
getLibrary_Writers()
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%
getMainboard()
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%
getMainboard_Name()
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%
getMinLengthOf3()
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%
getOnlyCapitals()
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%
getPerson()
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%
getPerson_Age()
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%
getPerson_Custom()
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%
getPerson_FirstName()
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%
getPerson_Gender()
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%
getPerson_LastName()
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%
getPhoneNumber()
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%
getPowerBlock()
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%
getPowerBlock_Name()
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%
getReferencer()
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%
getReferencer_ReferencedContent()
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%
getStrictMinLengthOf3()
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%
getStringWithMaxLength8()
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%
getTableContent()
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%
getTableContentWithInnerChild()
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%
getTableContentWithInnerChild2()
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%
getTableContentWithInnerChild2_InnerChild()
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%
getTableContentWithInnerChild_InnerChild()
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%
getTableContentWithInnerChild_Stuff()
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%
getTableContentWithValidation()
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%
getTableContentWithValidation_Name()
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%
getTableContentWithValidation_Weight()
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%
getTableContentWithoutValidation()
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%
getTableContentWithoutValidation_Name()
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%
getTableContentWithoutValidation_Weight()
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%
getTableObject()
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%
getTableObject_Label()
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%
getTableWithMultiplicity()
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%
getTableWithMultiplicity_Content()
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%
getTableWithUnique()
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%
getTableWithUnique_Content()
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%
getTableWithoutMultiplicity()
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%
getTableWithoutMultiplicityConcrete()
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%
getTableWithoutMultiplicityConcrete_Content()
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%
getTableWithoutMultiplicity_Content()
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%
getTestFactory()
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%
getWriter()
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%
getWriter_BirthDate()
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%
getWriter_Books()
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%
getWriter_EMail()
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%
getWriter_FirstName()
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%
getWriter_Initials()
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%
getWriter_LastName()
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%
getWriter_Library()
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%
getWriter_Pseudonym()
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%
getWriter_Title()
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: 8 C: 35
81%
M: 2 C: 2
50%
M: 2 C: 1
33%
M: 2 C: 12
86%
M: 0 C: 1
100%
initializePackageContents()
M: 1 C: 1711
100%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 239
100%
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-2019 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: * Eugen Neufeld - initial API and implementation
13: * Christian W. Damus - bug 543190
14: *******************************************************************************/
15: package org.eclipse.emf.ecp.view.validation.test.model.impl;
16:
17: import static org.eclipse.emf.ecp.view.validation.test.model.TestPackage.CONTAINER;
18:
19: import org.eclipse.emf.ecore.EAttribute;
20: import org.eclipse.emf.ecore.EClass;
21: import org.eclipse.emf.ecore.EDataType;
22: import org.eclipse.emf.ecore.EEnum;
23: import org.eclipse.emf.ecore.EGenericType;
24: import org.eclipse.emf.ecore.EOperation;
25: import org.eclipse.emf.ecore.EPackage;
26: import org.eclipse.emf.ecore.EReference;
27: import org.eclipse.emf.ecore.EValidator;
28: import org.eclipse.emf.ecore.impl.EPackageImpl;
29: import org.eclipse.emf.ecp.view.validation.test.model.Book;
30: import org.eclipse.emf.ecp.view.validation.test.model.Color;
31: import org.eclipse.emf.ecp.view.validation.test.model.Computer;
32: import org.eclipse.emf.ecp.view.validation.test.model.Content;
33: import org.eclipse.emf.ecp.view.validation.test.model.CrossReferenceContainer;
34: import org.eclipse.emf.ecp.view.validation.test.model.CrossReferenceContent;
35: import org.eclipse.emf.ecp.view.validation.test.model.Gender;
36: import org.eclipse.emf.ecp.view.validation.test.model.Librarian;
37: import org.eclipse.emf.ecp.view.validation.test.model.Library;
38: import org.eclipse.emf.ecp.view.validation.test.model.Mainboard;
39: import org.eclipse.emf.ecp.view.validation.test.model.Person;
40: import org.eclipse.emf.ecp.view.validation.test.model.PowerBlock;
41: import org.eclipse.emf.ecp.view.validation.test.model.Referencer;
42: import org.eclipse.emf.ecp.view.validation.test.model.TableContent;
43: import org.eclipse.emf.ecp.view.validation.test.model.TableContentWithInnerChild;
44: import org.eclipse.emf.ecp.view.validation.test.model.TableContentWithInnerChild2;
45: import org.eclipse.emf.ecp.view.validation.test.model.TableContentWithValidation;
46: import org.eclipse.emf.ecp.view.validation.test.model.TableContentWithoutValidation;
47: import org.eclipse.emf.ecp.view.validation.test.model.TableObject;
48: import org.eclipse.emf.ecp.view.validation.test.model.TableWithMultiplicity;
49: import org.eclipse.emf.ecp.view.validation.test.model.TableWithUnique;
50: import org.eclipse.emf.ecp.view.validation.test.model.TableWithoutMultiplicity;
51: import org.eclipse.emf.ecp.view.validation.test.model.TableWithoutMultiplicityConcrete;
52: import org.eclipse.emf.ecp.view.validation.test.model.TestFactory;
53: import org.eclipse.emf.ecp.view.validation.test.model.TestPackage;
54: import org.eclipse.emf.ecp.view.validation.test.model.Writer;
55: import org.eclipse.emf.ecp.view.validation.test.model.util.TestValidator;
56:
57: /**
58: * <!-- begin-user-doc -->
59: * An implementation of the model <b>Package</b>.
60: * <!-- end-user-doc -->
61: *
62: * @generated
63: */
64: public class TestPackageImpl extends EPackageImpl implements TestPackage {
65:         /**
66:          * <!-- begin-user-doc -->
67:          * <!-- end-user-doc -->
68:          *
69:          * @generated
70:          */
71:         private EClass libraryEClass = null;
72:
73:         /**
74:          * <!-- begin-user-doc -->
75:          * <!-- end-user-doc -->
76:          *
77:          * @generated
78:          */
79:         private EClass writerEClass = null;
80:
81:         /**
82:          * <!-- begin-user-doc -->
83:          * <!-- end-user-doc -->
84:          *
85:          * @generated
86:          */
87:         private EClass bookEClass = null;
88:
89:         /**
90:          * <!-- begin-user-doc -->
91:          * <!-- end-user-doc -->
92:          *
93:          * @generated
94:          */
95:         private EClass librarianEClass = null;
96:
97:         /**
98:          * <!-- begin-user-doc -->
99:          * <!-- end-user-doc -->
100:          *
101:          * @generated
102:          */
103:         private EClass computerEClass = null;
104:
105:         /**
106:          * <!-- begin-user-doc -->
107:          * <!-- end-user-doc -->
108:          *
109:          * @generated
110:          */
111:         private EClass mainboardEClass = null;
112:
113:         /**
114:          * <!-- begin-user-doc -->
115:          * <!-- end-user-doc -->
116:          *
117:          * @generated
118:          */
119:         private EClass powerBlockEClass = null;
120:
121:         /**
122:          * <!-- begin-user-doc -->
123:          * <!-- end-user-doc -->
124:          *
125:          * @generated
126:          */
127:         private EClass containerEClass = null;
128:
129:         /**
130:          * <!-- begin-user-doc -->
131:          * <!-- end-user-doc -->
132:          *
133:          * @generated
134:          */
135:         private EClass contentEClass = null;
136:
137:         /**
138:          * <!-- begin-user-doc -->
139:          * <!-- end-user-doc -->
140:          *
141:          * @generated
142:          */
143:         private EClass tableWithMultiplicityEClass = null;
144:
145:         /**
146:          * <!-- begin-user-doc -->
147:          * <!-- end-user-doc -->
148:          *
149:          * @generated
150:          */
151:         private EClass tableContentEClass = null;
152:
153:         /**
154:          * <!-- begin-user-doc -->
155:          * <!-- end-user-doc -->
156:          *
157:          * @generated
158:          */
159:         private EClass tableContentWithoutValidationEClass = null;
160:
161:         /**
162:          * <!-- begin-user-doc -->
163:          * <!-- end-user-doc -->
164:          *
165:          * @generated
166:          */
167:         private EClass tableContentWithValidationEClass = null;
168:
169:         /**
170:          * <!-- begin-user-doc -->
171:          * <!-- end-user-doc -->
172:          *
173:          * @generated
174:          */
175:         private EClass tableWithoutMultiplicityEClass = null;
176:
177:         /**
178:          * <!-- begin-user-doc -->
179:          * <!-- end-user-doc -->
180:          *
181:          * @generated
182:          */
183:         private EClass tableWithUniqueEClass = null;
184:
185:         /**
186:          * <!-- begin-user-doc -->
187:          * <!-- end-user-doc -->
188:          *
189:          * @generated
190:          */
191:         private EClass tableContentWithInnerChild2EClass = null;
192:
193:         /**
194:          * <!-- begin-user-doc -->
195:          * <!-- end-user-doc -->
196:          *
197:          * @generated
198:          */
199:         private EClass tableContentWithInnerChildEClass = null;
200:
201:         /**
202:          * <!-- begin-user-doc -->
203:          * <!-- end-user-doc -->
204:          *
205:          * @generated
206:          */
207:         private EClass tableWithoutMultiplicityConcreteEClass = null;
208:
209:         /**
210:          * <!-- begin-user-doc -->
211:          * <!-- end-user-doc -->
212:          *
213:          * @generated
214:          */
215:         private EClass referencerEClass = null;
216:
217:         /**
218:          * <!-- begin-user-doc -->
219:          * <!-- end-user-doc -->
220:          *
221:          * @generated
222:          */
223:         private EClass crossReferenceContainerEClass = null;
224:
225:         /**
226:          * <!-- begin-user-doc -->
227:          * <!-- end-user-doc -->
228:          *
229:          * @generated
230:          */
231:         private EClass crossReferenceContentEClass = null;
232:
233:         /**
234:          * <!-- begin-user-doc -->
235:          * <!-- end-user-doc -->
236:          *
237:          * @generated
238:          */
239:         private EClass personEClass = null;
240:
241:         /**
242:          * <!-- begin-user-doc -->
243:          * <!-- end-user-doc -->
244:          *
245:          * @generated
246:          */
247:         private EClass tableObjectEClass = null;
248:
249:         /**
250:          * <!-- begin-user-doc -->
251:          * <!-- end-user-doc -->
252:          *
253:          * @generated
254:          */
255:         private EEnum genderEEnum = null;
256:
257:         /**
258:          * <!-- begin-user-doc -->
259:          * <!-- end-user-doc -->
260:          *
261:          * @generated
262:          */
263:         private EEnum colorEEnum = null;
264:
265:         /**
266:          * <!-- begin-user-doc -->
267:          * <!-- end-user-doc -->
268:          *
269:          * @generated
270:          */
271:         private EDataType stringWithMaxLength8EDataType = null;
272:
273:         /**
274:          * <!-- begin-user-doc -->
275:          * <!-- end-user-doc -->
276:          *
277:          * @generated
278:          */
279:         private EDataType onlyCapitalsEDataType = null;
280:
281:         /**
282:          * <!-- begin-user-doc -->
283:          * <!-- end-user-doc -->
284:          *
285:          * @generated
286:          */
287:         private EDataType customDataTypeEDataType = null;
288:
289:         /**
290:          * <!-- begin-user-doc -->
291:          * <!-- end-user-doc -->
292:          *
293:          * @generated
294:          */
295:         private EDataType phoneNumberEDataType = null;
296:
297:         /**
298:          * <!-- begin-user-doc -->
299:          * <!-- end-user-doc -->
300:          *
301:          * @generated
302:          */
303:         private EDataType minLengthOf3EDataType = null;
304:
305:         /**
306:          * <!-- begin-user-doc -->
307:          * <!-- end-user-doc -->
308:          *
309:          * @generated
310:          */
311:         private EDataType strictMinLengthOf3EDataType = null;
312:
313:         /**
314:          * <!-- begin-user-doc -->
315:          * <!-- end-user-doc -->
316:          *
317:          * @generated
318:          */
319:         private EDataType ageEDataType = null;
320:
321:         /**
322:          * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
323:          * EPackage.Registry} by the package
324:          * package URI value.
325:          * <p>
326:          * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
327:          * performs initialization of the package, or returns the registered package, if one already exists. <!--
328:          * begin-user-doc --> <!-- end-user-doc -->
329:          *
330:          * @see org.eclipse.emf.ecore.EPackage.Registry
331:          * @see org.eclipse.emf.ecp.view.validation.test.model.TestPackage#eNS_URI
332:          * @see #init()
333:          * @generated
334:          */
335:         private TestPackageImpl() {
336:                 super(eNS_URI, TestFactory.eINSTANCE);
337:         }
338:
339:         /**
340:          * <!-- begin-user-doc -->
341:          * <!-- end-user-doc -->
342:          *
343:          * @generated
344:          */
345:         private static boolean isInited = false;
346:
347:         /**
348:          * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
349:          *
350:          * <p>
351:          * This method is used to initialize {@link TestPackage#eINSTANCE} when that field is accessed.
352:          * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
353:          * <!-- begin-user-doc -->
354:          * <!-- end-user-doc -->
355:          *
356:          * @see #eNS_URI
357:          * @see #createPackageContents()
358:          * @see #initializePackageContents()
359:          * @generated
360:          */
361:         public static TestPackage init() {
362:•                if (isInited) {
363:                         return (TestPackage) EPackage.Registry.INSTANCE.getEPackage(TestPackage.eNS_URI);
364:                 }
365:
366:                 // Obtain or create and register package
367:                 final Object registeredTestPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
368:•                final TestPackageImpl theTestPackage = registeredTestPackage instanceof TestPackageImpl
369:                         ? (TestPackageImpl) registeredTestPackage
370:                         : new TestPackageImpl();
371:
372:                 isInited = true;
373:
374:                 // Create package meta-data objects
375:                 theTestPackage.createPackageContents();
376:
377:                 // Initialize created meta-data
378:                 theTestPackage.initializePackageContents();
379:
380:                 // Register package validator
381:                 EValidator.Registry.INSTANCE.put(theTestPackage,
382:                         new EValidator.Descriptor() {
383:                                 @Override
384:                                 public EValidator getEValidator() {
385:                                         return TestValidator.INSTANCE;
386:                                 }
387:                         });
388:
389:                 // Mark meta-data to indicate it can't be changed
390:                 theTestPackage.freeze();
391:
392:                 // Update the registry and return the package
393:                 EPackage.Registry.INSTANCE.put(TestPackage.eNS_URI, theTestPackage);
394:                 return theTestPackage;
395:         }
396:
397:         /**
398:          * <!-- begin-user-doc -->
399:          * <!-- end-user-doc -->
400:          *
401:          * @generated
402:          */
403:         @Override
404:         public EClass getLibrary() {
405:                 return libraryEClass;
406:         }
407:
408:         /**
409:          * <!-- begin-user-doc -->
410:          * <!-- end-user-doc -->
411:          *
412:          * @generated
413:          */
414:         @Override
415:         public EAttribute getLibrary_Name() {
416:                 return (EAttribute) libraryEClass.getEStructuralFeatures().get(0);
417:         }
418:
419:         /**
420:          * <!-- begin-user-doc -->
421:          * <!-- end-user-doc -->
422:          *
423:          * @generated
424:          */
425:         @Override
426:         public EReference getLibrary_Writers() {
427:                 return (EReference) libraryEClass.getEStructuralFeatures().get(1);
428:         }
429:
430:         /**
431:          * <!-- begin-user-doc -->
432:          * <!-- end-user-doc -->
433:          *
434:          * @generated
435:          */
436:         @Override
437:         public EReference getLibrary_Books() {
438:                 return (EReference) libraryEClass.getEStructuralFeatures().get(2);
439:         }
440:
441:         /**
442:          * <!-- begin-user-doc -->
443:          * <!-- end-user-doc -->
444:          *
445:          * @generated
446:          */
447:         @Override
448:         public EReference getLibrary_Librarian() {
449:                 return (EReference) libraryEClass.getEStructuralFeatures().get(3);
450:         }
451:
452:         /**
453:          * <!-- begin-user-doc -->
454:          * <!-- end-user-doc -->
455:          *
456:          * @generated
457:          */
458:         @Override
459:         public EAttribute getLibrary_PhoneNumber() {
460:                 return (EAttribute) libraryEClass.getEStructuralFeatures().get(4);
461:         }
462:
463:         /**
464:          * <!-- begin-user-doc -->
465:          * <!-- end-user-doc -->
466:          *
467:          * @generated
468:          */
469:         @Override
470:         public EClass getWriter() {
471:                 return writerEClass;
472:         }
473:
474:         /**
475:          * <!-- begin-user-doc -->
476:          * <!-- end-user-doc -->
477:          *
478:          * @generated
479:          */
480:         @Override
481:         public EAttribute getWriter_FirstName() {
482:                 return (EAttribute) writerEClass.getEStructuralFeatures().get(0);
483:         }
484:
485:         /**
486:          * <!-- begin-user-doc -->
487:          * <!-- end-user-doc -->
488:          *
489:          * @generated
490:          */
491:         @Override
492:         public EAttribute getWriter_LastName() {
493:                 return (EAttribute) writerEClass.getEStructuralFeatures().get(1);
494:         }
495:
496:         /**
497:          * <!-- begin-user-doc -->
498:          * <!-- end-user-doc -->
499:          *
500:          * @generated
501:          */
502:         @Override
503:         public EAttribute getWriter_EMail() {
504:                 return (EAttribute) writerEClass.getEStructuralFeatures().get(2);
505:         }
506:
507:         /**
508:          * <!-- begin-user-doc -->
509:          * <!-- end-user-doc -->
510:          *
511:          * @generated
512:          */
513:         @Override
514:         public EAttribute getWriter_BirthDate() {
515:                 return (EAttribute) writerEClass.getEStructuralFeatures().get(3);
516:         }
517:
518:         /**
519:          * <!-- begin-user-doc -->
520:          * <!-- end-user-doc -->
521:          *
522:          * @generated
523:          */
524:         @Override
525:         public EReference getWriter_Books() {
526:                 return (EReference) writerEClass.getEStructuralFeatures().get(4);
527:         }
528:
529:         /**
530:          * <!-- begin-user-doc -->
531:          * <!-- end-user-doc -->
532:          *
533:          * @generated
534:          */
535:         @Override
536:         public EAttribute getWriter_Pseudonym() {
537:                 return (EAttribute) writerEClass.getEStructuralFeatures().get(5);
538:         }
539:
540:         /**
541:          * <!-- begin-user-doc -->
542:          * <!-- end-user-doc -->
543:          *
544:          * @generated
545:          */
546:         @Override
547:         public EReference getWriter_Library() {
548:                 return (EReference) writerEClass.getEStructuralFeatures().get(6);
549:         }
550:
551:         /**
552:          * <!-- begin-user-doc -->
553:          * <!-- end-user-doc -->
554:          *
555:          * @generated
556:          */
557:         @Override
558:         public EAttribute getWriter_Initials() {
559:                 return (EAttribute) writerEClass.getEStructuralFeatures().get(7);
560:         }
561:
562:         /**
563:          * <!-- begin-user-doc -->
564:          * <!-- end-user-doc -->
565:          *
566:          * @generated
567:          */
568:         @Override
569:         public EAttribute getWriter_Title() {
570:                 return (EAttribute) writerEClass.getEStructuralFeatures().get(8);
571:         }
572:
573:         /**
574:          * <!-- begin-user-doc -->
575:          * <!-- end-user-doc -->
576:          *
577:          * @generated
578:          */
579:         @Override
580:         public EClass getBook() {
581:                 return bookEClass;
582:         }
583:
584:         /**
585:          * <!-- begin-user-doc -->
586:          * <!-- end-user-doc -->
587:          *
588:          * @generated
589:          */
590:         @Override
591:         public EAttribute getBook_Title() {
592:                 return (EAttribute) bookEClass.getEStructuralFeatures().get(0);
593:         }
594:
595:         /**
596:          * <!-- begin-user-doc -->
597:          * <!-- end-user-doc -->
598:          *
599:          * @generated
600:          */
601:         @Override
602:         public EAttribute getBook_Pages() {
603:                 return (EAttribute) bookEClass.getEStructuralFeatures().get(1);
604:         }
605:
606:         /**
607:          * <!-- begin-user-doc -->
608:          * <!-- end-user-doc -->
609:          *
610:          * @generated
611:          */
612:         @Override
613:         public EReference getBook_Writers() {
614:                 return (EReference) bookEClass.getEStructuralFeatures().get(2);
615:         }
616:
617:         /**
618:          * <!-- begin-user-doc -->
619:          * <!-- end-user-doc -->
620:          *
621:          * @generated
622:          */
623:         @Override
624:         public EClass getLibrarian() {
625:                 return librarianEClass;
626:         }
627:
628:         /**
629:          * <!-- begin-user-doc -->
630:          * <!-- end-user-doc -->
631:          *
632:          * @generated
633:          */
634:         @Override
635:         public EAttribute getLibrarian_Name() {
636:                 return (EAttribute) librarianEClass.getEStructuralFeatures().get(0);
637:         }
638:
639:         /**
640:          * <!-- begin-user-doc -->
641:          * <!-- end-user-doc -->
642:          *
643:          * @generated
644:          */
645:         @Override
646:         public EClass getComputer() {
647:                 return computerEClass;
648:         }
649:
650:         /**
651:          * <!-- begin-user-doc -->
652:          * <!-- end-user-doc -->
653:          *
654:          * @generated
655:          */
656:         @Override
657:         public EReference getComputer_Mainboard() {
658:                 return (EReference) computerEClass.getEStructuralFeatures().get(0);
659:         }
660:
661:         /**
662:          * <!-- begin-user-doc -->
663:          * <!-- end-user-doc -->
664:          *
665:          * @generated
666:          */
667:         @Override
668:         public EAttribute getComputer_Name() {
669:                 return (EAttribute) computerEClass.getEStructuralFeatures().get(1);
670:         }
671:
672:         /**
673:          * <!-- begin-user-doc -->
674:          * <!-- end-user-doc -->
675:          *
676:          * @generated
677:          */
678:         @Override
679:         public EReference getComputer_PowerBlock() {
680:                 return (EReference) computerEClass.getEStructuralFeatures().get(2);
681:         }
682:
683:         /**
684:          * <!-- begin-user-doc -->
685:          * <!-- end-user-doc -->
686:          *
687:          * @generated
688:          */
689:         @Override
690:         public EAttribute getComputer_Colors() {
691:                 return (EAttribute) computerEClass.getEStructuralFeatures().get(3);
692:         }
693:
694:         /**
695:          * <!-- begin-user-doc -->
696:          * <!-- end-user-doc -->
697:          *
698:          * @generated
699:          */
700:         @Override
701:         public EClass getMainboard() {
702:                 return mainboardEClass;
703:         }
704:
705:         /**
706:          * <!-- begin-user-doc -->
707:          * <!-- end-user-doc -->
708:          *
709:          * @generated
710:          */
711:         @Override
712:         public EAttribute getMainboard_Name() {
713:                 return (EAttribute) mainboardEClass.getEStructuralFeatures().get(0);
714:         }
715:
716:         /**
717:          * <!-- begin-user-doc -->
718:          * <!-- end-user-doc -->
719:          *
720:          * @generated
721:          */
722:         @Override
723:         public EClass getPowerBlock() {
724:                 return powerBlockEClass;
725:         }
726:
727:         /**
728:          * <!-- begin-user-doc -->
729:          * <!-- end-user-doc -->
730:          *
731:          * @generated
732:          */
733:         @Override
734:         public EAttribute getPowerBlock_Name() {
735:                 return (EAttribute) powerBlockEClass.getEStructuralFeatures().get(0);
736:         }
737:
738:         /**
739:          * <!-- begin-user-doc -->
740:          * <!-- end-user-doc -->
741:          *
742:          * @generated
743:          */
744:         @Override
745:         public EClass getContainer() {
746:                 return containerEClass;
747:         }
748:
749:         /**
750:          * <!-- begin-user-doc -->
751:          * <!-- end-user-doc -->
752:          *
753:          * @generated
754:          */
755:         @Override
756:         public EReference getContainer_Contents() {
757:                 return (EReference) containerEClass.getEStructuralFeatures().get(0);
758:         }
759:
760:         /**
761:          * <!-- begin-user-doc -->
762:          * <!-- end-user-doc -->
763:          *
764:          * @generated
765:          */
766:         @Override
767:         public EClass getContent() {
768:                 return contentEClass;
769:         }
770:
771:         /**
772:          * <!-- begin-user-doc -->
773:          * <!-- end-user-doc -->
774:          *
775:          * @generated
776:          */
777:         @Override
778:         public EAttribute getContent_UniqueAttribute() {
779:                 return (EAttribute) contentEClass.getEStructuralFeatures().get(0);
780:         }
781:
782:         /**
783:          * <!-- begin-user-doc -->
784:          * <!-- end-user-doc -->
785:          *
786:          * @generated
787:          */
788:         @Override
789:         public EAttribute getContent_SecondAttribute() {
790:                 return (EAttribute) contentEClass.getEStructuralFeatures().get(1);
791:         }
792:
793:         /**
794:          * <!-- begin-user-doc -->
795:          * <!-- end-user-doc -->
796:          *
797:          * @generated
798:          */
799:         @Override
800:         public EClass getTableWithMultiplicity() {
801:                 return tableWithMultiplicityEClass;
802:         }
803:
804:         /**
805:          * <!-- begin-user-doc -->
806:          * <!-- end-user-doc -->
807:          *
808:          * @generated
809:          */
810:         @Override
811:         public EReference getTableWithMultiplicity_Content() {
812:                 return (EReference) tableWithMultiplicityEClass.getEStructuralFeatures().get(0);
813:         }
814:
815:         /**
816:          * <!-- begin-user-doc -->
817:          * <!-- end-user-doc -->
818:          *
819:          * @generated
820:          */
821:         @Override
822:         public EClass getTableContent() {
823:                 return tableContentEClass;
824:         }
825:
826:         /**
827:          * <!-- begin-user-doc -->
828:          * <!-- end-user-doc -->
829:          *
830:          * @generated
831:          */
832:         @Override
833:         public EClass getTableContentWithoutValidation() {
834:                 return tableContentWithoutValidationEClass;
835:         }
836:
837:         /**
838:          * <!-- begin-user-doc -->
839:          * <!-- end-user-doc -->
840:          *
841:          * @generated
842:          */
843:         @Override
844:         public EAttribute getTableContentWithoutValidation_Name() {
845:                 return (EAttribute) tableContentWithoutValidationEClass.getEStructuralFeatures().get(0);
846:         }
847:
848:         /**
849:          * <!-- begin-user-doc -->
850:          * <!-- end-user-doc -->
851:          *
852:          * @generated
853:          */
854:         @Override
855:         public EAttribute getTableContentWithoutValidation_Weight() {
856:                 return (EAttribute) tableContentWithoutValidationEClass.getEStructuralFeatures().get(1);
857:         }
858:
859:         /**
860:          * <!-- begin-user-doc -->
861:          * <!-- end-user-doc -->
862:          *
863:          * @generated
864:          */
865:         @Override
866:         public EClass getTableContentWithValidation() {
867:                 return tableContentWithValidationEClass;
868:         }
869:
870:         /**
871:          * <!-- begin-user-doc -->
872:          * <!-- end-user-doc -->
873:          *
874:          * @generated
875:          */
876:         @Override
877:         public EAttribute getTableContentWithValidation_Name() {
878:                 return (EAttribute) tableContentWithValidationEClass.getEStructuralFeatures().get(0);
879:         }
880:
881:         /**
882:          * <!-- begin-user-doc -->
883:          * <!-- end-user-doc -->
884:          *
885:          * @generated
886:          */
887:         @Override
888:         public EAttribute getTableContentWithValidation_Weight() {
889:                 return (EAttribute) tableContentWithValidationEClass.getEStructuralFeatures().get(1);
890:         }
891:
892:         /**
893:          * <!-- begin-user-doc -->
894:          * <!-- end-user-doc -->
895:          *
896:          * @generated
897:          */
898:         @Override
899:         public EClass getTableWithoutMultiplicity() {
900:                 return tableWithoutMultiplicityEClass;
901:         }
902:
903:         /**
904:          * <!-- begin-user-doc -->
905:          * <!-- end-user-doc -->
906:          *
907:          * @generated
908:          */
909:         @Override
910:         public EReference getTableWithoutMultiplicity_Content() {
911:                 return (EReference) tableWithoutMultiplicityEClass.getEStructuralFeatures().get(0);
912:         }
913:
914:         /**
915:          * <!-- begin-user-doc -->
916:          * <!-- end-user-doc -->
917:          *
918:          * @generated
919:          */
920:         @Override
921:         public EClass getTableWithUnique() {
922:                 return tableWithUniqueEClass;
923:         }
924:
925:         /**
926:          * <!-- begin-user-doc -->
927:          * <!-- end-user-doc -->
928:          *
929:          * @generated
930:          */
931:         @Override
932:         public EReference getTableWithUnique_Content() {
933:                 return (EReference) tableWithUniqueEClass.getEStructuralFeatures().get(0);
934:         }
935:
936:         /**
937:          * <!-- begin-user-doc -->
938:          * <!-- end-user-doc -->
939:          *
940:          * @generated
941:          */
942:         @Override
943:         public EClass getTableContentWithInnerChild2() {
944:                 return tableContentWithInnerChild2EClass;
945:         }
946:
947:         /**
948:          * <!-- begin-user-doc -->
949:          * <!-- end-user-doc -->
950:          *
951:          * @generated
952:          */
953:         @Override
954:         public EReference getTableContentWithInnerChild2_InnerChild() {
955:                 return (EReference) tableContentWithInnerChild2EClass.getEStructuralFeatures().get(0);
956:         }
957:
958:         /**
959:          * <!-- begin-user-doc -->
960:          * <!-- end-user-doc -->
961:          *
962:          * @generated
963:          */
964:         @Override
965:         public EClass getTableContentWithInnerChild() {
966:                 return tableContentWithInnerChildEClass;
967:         }
968:
969:         /**
970:          * <!-- begin-user-doc -->
971:          * <!-- end-user-doc -->
972:          *
973:          * @generated
974:          */
975:         @Override
976:         public EReference getTableContentWithInnerChild_InnerChild() {
977:                 return (EReference) tableContentWithInnerChildEClass.getEStructuralFeatures().get(0);
978:         }
979:
980:         /**
981:          * <!-- begin-user-doc -->
982:          * <!-- end-user-doc -->
983:          *
984:          * @generated
985:          */
986:         @Override
987:         public EAttribute getTableContentWithInnerChild_Stuff() {
988:                 return (EAttribute) tableContentWithInnerChildEClass.getEStructuralFeatures().get(1);
989:         }
990:
991:         /**
992:          * <!-- begin-user-doc -->
993:          * <!-- end-user-doc -->
994:          *
995:          * @generated
996:          */
997:         @Override
998:         public EClass getTableWithoutMultiplicityConcrete() {
999:                 return tableWithoutMultiplicityConcreteEClass;
1000:         }
1001:
1002:         /**
1003:          * <!-- begin-user-doc -->
1004:          * <!-- end-user-doc -->
1005:          *
1006:          * @generated
1007:          */
1008:         @Override
1009:         public EReference getTableWithoutMultiplicityConcrete_Content() {
1010:                 return (EReference) tableWithoutMultiplicityConcreteEClass.getEStructuralFeatures().get(0);
1011:         }
1012:
1013:         /**
1014:          * <!-- begin-user-doc -->
1015:          * <!-- end-user-doc -->
1016:          *
1017:          * @generated
1018:          */
1019:         @Override
1020:         public EClass getReferencer() {
1021:                 return referencerEClass;
1022:         }
1023:
1024:         /**
1025:          * <!-- begin-user-doc -->
1026:          * <!-- end-user-doc -->
1027:          *
1028:          * @generated
1029:          */
1030:         @Override
1031:         public EReference getReferencer_ReferencedContent() {
1032:                 return (EReference) referencerEClass.getEStructuralFeatures().get(0);
1033:         }
1034:
1035:         /**
1036:          * <!-- begin-user-doc -->
1037:          * <!-- end-user-doc -->
1038:          *
1039:          * @generated
1040:          */
1041:         @Override
1042:         public EClass getCrossReferenceContainer() {
1043:                 return crossReferenceContainerEClass;
1044:         }
1045:
1046:         /**
1047:          * <!-- begin-user-doc -->
1048:          * <!-- end-user-doc -->
1049:          *
1050:          * @generated
1051:          */
1052:         @Override
1053:         public EReference getCrossReferenceContainer_Contents() {
1054:                 return (EReference) crossReferenceContainerEClass.getEStructuralFeatures().get(0);
1055:         }
1056:
1057:         /**
1058:          * <!-- begin-user-doc -->
1059:          * <!-- end-user-doc -->
1060:          *
1061:          * @generated
1062:          */
1063:         @Override
1064:         public EReference getCrossReferenceContainer_SingleContent() {
1065:                 return (EReference) crossReferenceContainerEClass.getEStructuralFeatures().get(1);
1066:         }
1067:
1068:         /**
1069:          * <!-- begin-user-doc -->
1070:          * <!-- end-user-doc -->
1071:          *
1072:          * @generated
1073:          */
1074:         @Override
1075:         public EClass getCrossReferenceContent() {
1076:                 return crossReferenceContentEClass;
1077:         }
1078:
1079:         /**
1080:          * <!-- begin-user-doc -->
1081:          * <!-- end-user-doc -->
1082:          *
1083:          * @generated
1084:          */
1085:         @Override
1086:         public EReference getCrossReferenceContent_Parent() {
1087:                 return (EReference) crossReferenceContentEClass.getEStructuralFeatures().get(0);
1088:         }
1089:
1090:         /**
1091:          * <!-- begin-user-doc -->
1092:          * <!-- end-user-doc -->
1093:          *
1094:          * @generated
1095:          */
1096:         @Override
1097:         public EReference getCrossReferenceContent_SingleParent() {
1098:                 return (EReference) crossReferenceContentEClass.getEStructuralFeatures().get(1);
1099:         }
1100:
1101:         /**
1102:          * <!-- begin-user-doc -->
1103:          * <!-- end-user-doc -->
1104:          *
1105:          * @generated
1106:          */
1107:         @Override
1108:         public EClass getPerson() {
1109:                 return personEClass;
1110:         }
1111:
1112:         /**
1113:          * <!-- begin-user-doc -->
1114:          * <!-- end-user-doc -->
1115:          *
1116:          * @generated
1117:          */
1118:         @Override
1119:         public EAttribute getPerson_FirstName() {
1120:                 return (EAttribute) personEClass.getEStructuralFeatures().get(0);
1121:         }
1122:
1123:         /**
1124:          * <!-- begin-user-doc -->
1125:          * <!-- end-user-doc -->
1126:          *
1127:          * @generated
1128:          */
1129:         @Override
1130:         public EAttribute getPerson_Gender() {
1131:                 return (EAttribute) personEClass.getEStructuralFeatures().get(1);
1132:         }
1133:
1134:         /**
1135:          * <!-- begin-user-doc -->
1136:          * <!-- end-user-doc -->
1137:          *
1138:          * @generated
1139:          */
1140:         @Override
1141:         public EAttribute getPerson_LastName() {
1142:                 return (EAttribute) personEClass.getEStructuralFeatures().get(2);
1143:         }
1144:
1145:         /**
1146:          * <!-- begin-user-doc -->
1147:          * <!-- end-user-doc -->
1148:          *
1149:          * @generated
1150:          */
1151:         @Override
1152:         public EAttribute getPerson_Custom() {
1153:                 return (EAttribute) personEClass.getEStructuralFeatures().get(3);
1154:         }
1155:
1156:         /**
1157:          * <!-- begin-user-doc -->
1158:          * <!-- end-user-doc -->
1159:          *
1160:          * @generated
1161:          */
1162:         @Override
1163:         public EAttribute getPerson_Age() {
1164:                 return (EAttribute) personEClass.getEStructuralFeatures().get(4);
1165:         }
1166:
1167:         /**
1168:          * <!-- begin-user-doc -->
1169:          * <!-- end-user-doc -->
1170:          *
1171:          * @generated
1172:          */
1173:         @Override
1174:         public EClass getTableObject() {
1175:                 return tableObjectEClass;
1176:         }
1177:
1178:         /**
1179:          * <!-- begin-user-doc -->
1180:          * <!-- end-user-doc -->
1181:          *
1182:          * @generated
1183:          */
1184:         @Override
1185:         public EAttribute getTableObject_Label() {
1186:                 return (EAttribute) tableObjectEClass.getEStructuralFeatures().get(0);
1187:         }
1188:
1189:         /**
1190:          * <!-- begin-user-doc -->
1191:          * <!-- end-user-doc -->
1192:          *
1193:          * @generated
1194:          */
1195:         @Override
1196:         public EDataType getStringWithMaxLength8() {
1197:                 return stringWithMaxLength8EDataType;
1198:         }
1199:
1200:         /**
1201:          * <!-- begin-user-doc -->
1202:          * <!-- end-user-doc -->
1203:          *
1204:          * @generated
1205:          */
1206:         @Override
1207:         public EDataType getOnlyCapitals() {
1208:                 return onlyCapitalsEDataType;
1209:         }
1210:
1211:         /**
1212:          * <!-- begin-user-doc -->
1213:          * <!-- end-user-doc -->
1214:          *
1215:          * @generated
1216:          */
1217:         @Override
1218:         public EDataType getCustomDataType() {
1219:                 return customDataTypeEDataType;
1220:         }
1221:
1222:         /**
1223:          * <!-- begin-user-doc -->
1224:          * <!-- end-user-doc -->
1225:          *
1226:          * @generated
1227:          */
1228:         @Override
1229:         public EDataType getPhoneNumber() {
1230:                 return phoneNumberEDataType;
1231:         }
1232:
1233:         /**
1234:          * <!-- begin-user-doc -->
1235:          * <!-- end-user-doc -->
1236:          *
1237:          * @generated
1238:          */
1239:         @Override
1240:         public EDataType getMinLengthOf3() {
1241:                 return minLengthOf3EDataType;
1242:         }
1243:
1244:         /**
1245:          * <!-- begin-user-doc -->
1246:          * <!-- end-user-doc -->
1247:          *
1248:          * @generated
1249:          */
1250:         @Override
1251:         public EDataType getStrictMinLengthOf3() {
1252:                 return strictMinLengthOf3EDataType;
1253:         }
1254:
1255:         /**
1256:          * <!-- begin-user-doc -->
1257:          * <!-- end-user-doc -->
1258:          *
1259:          * @generated
1260:          */
1261:         @Override
1262:         public EDataType getAge() {
1263:                 return ageEDataType;
1264:         }
1265:
1266:         /**
1267:          * <!-- begin-user-doc -->
1268:          * <!-- end-user-doc -->
1269:          *
1270:          * @generated
1271:          */
1272:         @Override
1273:         public EEnum getGender() {
1274:                 return genderEEnum;
1275:         }
1276:
1277:         /**
1278:          * <!-- begin-user-doc -->
1279:          * <!-- end-user-doc -->
1280:          *
1281:          * @generated
1282:          */
1283:         @Override
1284:         public EEnum getColor() {
1285:                 return colorEEnum;
1286:         }
1287:
1288:         /**
1289:          * <!-- begin-user-doc -->
1290:          * <!-- end-user-doc -->
1291:          *
1292:          * @generated
1293:          */
1294:         @Override
1295:         public TestFactory getTestFactory() {
1296:                 return (TestFactory) getEFactoryInstance();
1297:         }
1298:
1299:         /**
1300:          * <!-- begin-user-doc -->
1301:          * <!-- end-user-doc -->
1302:          *
1303:          * @generated
1304:          */
1305:         private boolean isCreated = false;
1306:
1307:         /**
1308:          * Creates the meta-model objects for the package. This method is
1309:          * guarded to have no affect on any invocation but its first.
1310:          * <!-- begin-user-doc -->
1311:          * <!-- end-user-doc -->
1312:          *
1313:          * @generated
1314:          */
1315:         public void createPackageContents() {
1316:•                if (isCreated) {
1317:                         return;
1318:                 }
1319:                 isCreated = true;
1320:
1321:                 // Create classes and their features
1322:                 libraryEClass = createEClass(LIBRARY);
1323:                 createEAttribute(libraryEClass, LIBRARY__NAME);
1324:                 createEReference(libraryEClass, LIBRARY__WRITERS);
1325:                 createEReference(libraryEClass, LIBRARY__BOOKS);
1326:                 createEReference(libraryEClass, LIBRARY__LIBRARIAN);
1327:                 createEAttribute(libraryEClass, LIBRARY__PHONE_NUMBER);
1328:
1329:                 writerEClass = createEClass(WRITER);
1330:                 createEAttribute(writerEClass, WRITER__FIRST_NAME);
1331:                 createEAttribute(writerEClass, WRITER__LAST_NAME);
1332:                 createEAttribute(writerEClass, WRITER__EMAIL);
1333:                 createEAttribute(writerEClass, WRITER__BIRTH_DATE);
1334:                 createEReference(writerEClass, WRITER__BOOKS);
1335:                 createEAttribute(writerEClass, WRITER__PSEUDONYM);
1336:                 createEReference(writerEClass, WRITER__LIBRARY);
1337:                 createEAttribute(writerEClass, WRITER__INITIALS);
1338:                 createEAttribute(writerEClass, WRITER__TITLE);
1339:
1340:                 bookEClass = createEClass(BOOK);
1341:                 createEAttribute(bookEClass, BOOK__TITLE);
1342:                 createEAttribute(bookEClass, BOOK__PAGES);
1343:                 createEReference(bookEClass, BOOK__WRITERS);
1344:
1345:                 librarianEClass = createEClass(LIBRARIAN);
1346:                 createEAttribute(librarianEClass, LIBRARIAN__NAME);
1347:
1348:                 computerEClass = createEClass(COMPUTER);
1349:                 createEReference(computerEClass, COMPUTER__MAINBOARD);
1350:                 createEAttribute(computerEClass, COMPUTER__NAME);
1351:                 createEReference(computerEClass, COMPUTER__POWER_BLOCK);
1352:                 createEAttribute(computerEClass, COMPUTER__COLORS);
1353:
1354:                 mainboardEClass = createEClass(MAINBOARD);
1355:                 createEAttribute(mainboardEClass, MAINBOARD__NAME);
1356:
1357:                 powerBlockEClass = createEClass(POWER_BLOCK);
1358:                 createEAttribute(powerBlockEClass, POWER_BLOCK__NAME);
1359:
1360:                 containerEClass = createEClass(CONTAINER);
1361:                 createEReference(containerEClass, CONTAINER__CONTENTS);
1362:
1363:                 contentEClass = createEClass(CONTENT);
1364:                 createEAttribute(contentEClass, CONTENT__UNIQUE_ATTRIBUTE);
1365:                 createEAttribute(contentEClass, CONTENT__SECOND_ATTRIBUTE);
1366:
1367:                 tableWithMultiplicityEClass = createEClass(TABLE_WITH_MULTIPLICITY);
1368:                 createEReference(tableWithMultiplicityEClass, TABLE_WITH_MULTIPLICITY__CONTENT);
1369:
1370:                 tableContentEClass = createEClass(TABLE_CONTENT);
1371:
1372:                 tableContentWithoutValidationEClass = createEClass(TABLE_CONTENT_WITHOUT_VALIDATION);
1373:                 createEAttribute(tableContentWithoutValidationEClass, TABLE_CONTENT_WITHOUT_VALIDATION__NAME);
1374:                 createEAttribute(tableContentWithoutValidationEClass, TABLE_CONTENT_WITHOUT_VALIDATION__WEIGHT);
1375:
1376:                 tableContentWithValidationEClass = createEClass(TABLE_CONTENT_WITH_VALIDATION);
1377:                 createEAttribute(tableContentWithValidationEClass, TABLE_CONTENT_WITH_VALIDATION__NAME);
1378:                 createEAttribute(tableContentWithValidationEClass, TABLE_CONTENT_WITH_VALIDATION__WEIGHT);
1379:
1380:                 tableWithoutMultiplicityEClass = createEClass(TABLE_WITHOUT_MULTIPLICITY);
1381:                 createEReference(tableWithoutMultiplicityEClass, TABLE_WITHOUT_MULTIPLICITY__CONTENT);
1382:
1383:                 tableWithUniqueEClass = createEClass(TABLE_WITH_UNIQUE);
1384:                 createEReference(tableWithUniqueEClass, TABLE_WITH_UNIQUE__CONTENT);
1385:
1386:                 tableContentWithInnerChild2EClass = createEClass(TABLE_CONTENT_WITH_INNER_CHILD2);
1387:                 createEReference(tableContentWithInnerChild2EClass, TABLE_CONTENT_WITH_INNER_CHILD2__INNER_CHILD);
1388:
1389:                 tableContentWithInnerChildEClass = createEClass(TABLE_CONTENT_WITH_INNER_CHILD);
1390:                 createEReference(tableContentWithInnerChildEClass, TABLE_CONTENT_WITH_INNER_CHILD__INNER_CHILD);
1391:                 createEAttribute(tableContentWithInnerChildEClass, TABLE_CONTENT_WITH_INNER_CHILD__STUFF);
1392:
1393:                 tableWithoutMultiplicityConcreteEClass = createEClass(TABLE_WITHOUT_MULTIPLICITY_CONCRETE);
1394:                 createEReference(tableWithoutMultiplicityConcreteEClass, TABLE_WITHOUT_MULTIPLICITY_CONCRETE__CONTENT);
1395:
1396:                 referencerEClass = createEClass(REFERENCER);
1397:                 createEReference(referencerEClass, REFERENCER__REFERENCED_CONTENT);
1398:
1399:                 crossReferenceContainerEClass = createEClass(CROSS_REFERENCE_CONTAINER);
1400:                 createEReference(crossReferenceContainerEClass, CROSS_REFERENCE_CONTAINER__CONTENTS);
1401:                 createEReference(crossReferenceContainerEClass, CROSS_REFERENCE_CONTAINER__SINGLE_CONTENT);
1402:
1403:                 crossReferenceContentEClass = createEClass(CROSS_REFERENCE_CONTENT);
1404:                 createEReference(crossReferenceContentEClass, CROSS_REFERENCE_CONTENT__PARENT);
1405:                 createEReference(crossReferenceContentEClass, CROSS_REFERENCE_CONTENT__SINGLE_PARENT);
1406:
1407:                 personEClass = createEClass(PERSON);
1408:                 createEAttribute(personEClass, PERSON__FIRST_NAME);
1409:                 createEAttribute(personEClass, PERSON__GENDER);
1410:                 createEAttribute(personEClass, PERSON__LAST_NAME);
1411:                 createEAttribute(personEClass, PERSON__CUSTOM);
1412:                 createEAttribute(personEClass, PERSON__AGE);
1413:
1414:                 tableObjectEClass = createEClass(TABLE_OBJECT);
1415:                 createEAttribute(tableObjectEClass, TABLE_OBJECT__LABEL);
1416:
1417:                 // Create enums
1418:                 genderEEnum = createEEnum(GENDER);
1419:                 colorEEnum = createEEnum(COLOR);
1420:
1421:                 // Create data types
1422:                 stringWithMaxLength8EDataType = createEDataType(STRING_WITH_MAX_LENGTH8);
1423:                 onlyCapitalsEDataType = createEDataType(ONLY_CAPITALS);
1424:                 customDataTypeEDataType = createEDataType(CUSTOM_DATA_TYPE);
1425:                 phoneNumberEDataType = createEDataType(PHONE_NUMBER);
1426:                 minLengthOf3EDataType = createEDataType(MIN_LENGTH_OF3);
1427:                 strictMinLengthOf3EDataType = createEDataType(STRICT_MIN_LENGTH_OF3);
1428:                 ageEDataType = createEDataType(AGE);
1429:         }
1430:
1431:         /**
1432:          * <!-- begin-user-doc -->
1433:          * <!-- end-user-doc -->
1434:          *
1435:          * @generated
1436:          */
1437:         private boolean isInitialized = false;
1438:
1439:         /**
1440:          * Complete the initialization of the package and its meta-model. This
1441:          * method is guarded to have no affect on any invocation but its first.
1442:          * <!-- begin-user-doc -->
1443:          * <!-- end-user-doc -->
1444:          *
1445:          * @generated
1446:          */
1447:         public void initializePackageContents() {
1448:•                if (isInitialized) {
1449:                         return;
1450:                 }
1451:                 isInitialized = true;
1452:
1453:                 // Initialize package
1454:                 setName(eNAME);
1455:                 setNsPrefix(eNS_PREFIX);
1456:                 setNsURI(eNS_URI);
1457:
1458:                 // Create type parameters
1459:
1460:                 // Set bounds for type parameters
1461:
1462:                 // Add supertypes to classes
1463:                 tableWithMultiplicityEClass.getESuperTypes().add(getTableObject());
1464:                 tableContentWithoutValidationEClass.getESuperTypes().add(getTableContent());
1465:                 tableContentWithValidationEClass.getESuperTypes().add(getTableContent());
1466:                 tableWithoutMultiplicityEClass.getESuperTypes().add(getTableObject());
1467:                 tableWithUniqueEClass.getESuperTypes().add(getTableObject());
1468:                 tableContentWithInnerChild2EClass.getESuperTypes().add(getTableContent());
1469:                 tableContentWithInnerChildEClass.getESuperTypes().add(getTableContent());
1470:                 tableWithoutMultiplicityConcreteEClass.getESuperTypes().add(getTableObject());
1471:
1472:                 // Initialize classes and features; add operations and parameters
1473:                 initEClass(libraryEClass, Library.class, "Library", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1474:                 initEAttribute(getLibrary_Name(), ecorePackage.getEString(), "name", null, 0, 1, Library.class, !IS_TRANSIENT,
1475:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1476:                 initEReference(getLibrary_Writers(), getWriter(), getWriter_Library(), "writers", null, 1, -1, Library.class,
1477:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1478:                         !IS_DERIVED, IS_ORDERED);
1479:                 initEReference(getLibrary_Books(), getBook(), null, "books", null, 0, -1, Library.class, !IS_TRANSIENT,
1480:                         !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
1481:                         IS_ORDERED);
1482:                 initEReference(getLibrary_Librarian(), getLibrarian(), null, "librarian", null, 0, 1, Library.class,
1483:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1484:                         !IS_DERIVED, IS_ORDERED);
1485:                 initEAttribute(getLibrary_PhoneNumber(), getPhoneNumber(), "phoneNumber", null, 0, 1, Library.class,
1486:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1487:
1488:                 EOperation op = addEOperation(libraryEClass, ecorePackage.getEBoolean(), "validate", 0, 1, IS_UNIQUE,
1489:                         IS_ORDERED);
1490:                 addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostic", 0, 1, IS_UNIQUE, IS_ORDERED);
1491:                 EGenericType g1 = createEGenericType(ecorePackage.getEMap());
1492:                 EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject());
1493:                 g1.getETypeArguments().add(g2);
1494:                 g2 = createEGenericType(ecorePackage.getEJavaObject());
1495:                 g1.getETypeArguments().add(g2);
1496:                 addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
1497:
1498:                 initEClass(writerEClass, Writer.class, "Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1499:                 initEAttribute(getWriter_FirstName(), ecorePackage.getEString(), "firstName", null, 0, 1, Writer.class,
1500:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1501:                 initEAttribute(getWriter_LastName(), ecorePackage.getEString(), "lastName", null, 0, 1, Writer.class,
1502:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1503:                 initEAttribute(getWriter_EMail(), ecorePackage.getEString(), "EMail", null, 0, 1, Writer.class, !IS_TRANSIENT,
1504:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1505:                 initEAttribute(getWriter_BirthDate(), ecorePackage.getEDate(), "BirthDate", null, 0, 1, Writer.class,
1506:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1507:                 initEReference(getWriter_Books(), getBook(), getBook_Writers(), "books", null, 0, -1, Writer.class,
1508:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1509:                         !IS_DERIVED, IS_ORDERED);
1510:                 initEAttribute(getWriter_Pseudonym(), ecorePackage.getEBoolean(), "Pseudonym", "false", 0, 1, Writer.class,
1511:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1512:                 initEReference(getWriter_Library(), getLibrary(), getLibrary_Writers(), "library", null, 0, 1, Writer.class,
1513:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1514:                         !IS_DERIVED, IS_ORDERED);
1515:                 initEAttribute(getWriter_Initials(), getMinLengthOf3(), "initials", null, 0, 1, Writer.class, !IS_TRANSIENT,
1516:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1517:                 initEAttribute(getWriter_Title(), getStrictMinLengthOf3(), "title", null, 0, 1, Writer.class, !IS_TRANSIENT,
1518:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1519:
1520:                 op = addEOperation(writerEClass, ecorePackage.getEBoolean(), "validate", 0, 1, IS_UNIQUE, IS_ORDERED);
1521:                 addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostic", 0, 1, IS_UNIQUE, IS_ORDERED);
1522:                 g1 = createEGenericType(ecorePackage.getEMap());
1523:                 g2 = createEGenericType(ecorePackage.getEJavaObject());
1524:                 g1.getETypeArguments().add(g2);
1525:                 g2 = createEGenericType(ecorePackage.getEJavaObject());
1526:                 g1.getETypeArguments().add(g2);
1527:                 addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
1528:
1529:                 initEClass(bookEClass, Book.class, "Book", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1530:                 initEAttribute(getBook_Title(), ecorePackage.getEString(), "title", null, 0, 1, Book.class, !IS_TRANSIENT,
1531:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1532:                 initEAttribute(getBook_Pages(), ecorePackage.getEInt(), "pages", "100", 0, 1, Book.class, !IS_TRANSIENT,
1533:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1534:                 initEReference(getBook_Writers(), getWriter(), getWriter_Books(), "writers", null, 0, 1, Book.class,
1535:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1536:                         !IS_DERIVED, IS_ORDERED);
1537:
1538:                 op = addEOperation(bookEClass, ecorePackage.getEBoolean(), "validate", 0, 1, IS_UNIQUE, IS_ORDERED);
1539:                 addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostic", 0, 1, IS_UNIQUE, IS_ORDERED);
1540:                 g1 = createEGenericType(ecorePackage.getEMap());
1541:                 g2 = createEGenericType(ecorePackage.getEJavaObject());
1542:                 g1.getETypeArguments().add(g2);
1543:                 g2 = createEGenericType(ecorePackage.getEJavaObject());
1544:                 g1.getETypeArguments().add(g2);
1545:                 addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
1546:
1547:                 initEClass(librarianEClass, Librarian.class, "Librarian", !IS_ABSTRACT, !IS_INTERFACE,
1548:                         IS_GENERATED_INSTANCE_CLASS);
1549:                 initEAttribute(getLibrarian_Name(), ecorePackage.getEString(), "name", null, 0, 1, Librarian.class,
1550:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1551:
1552:                 op = addEOperation(librarianEClass, ecorePackage.getEBoolean(), "validate", 0, 1, IS_UNIQUE, IS_ORDERED);
1553:                 addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostic", 0, 1, IS_UNIQUE, IS_ORDERED);
1554:                 g1 = createEGenericType(ecorePackage.getEMap());
1555:                 g2 = createEGenericType(ecorePackage.getEJavaObject());
1556:                 g1.getETypeArguments().add(g2);
1557:                 g2 = createEGenericType(ecorePackage.getEJavaObject());
1558:                 g1.getETypeArguments().add(g2);
1559:                 addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
1560:
1561:                 initEClass(computerEClass, Computer.class, "Computer", !IS_ABSTRACT, !IS_INTERFACE,
1562:                         IS_GENERATED_INSTANCE_CLASS);
1563:                 initEReference(getComputer_Mainboard(), getMainboard(), null, "mainboard", null, 0, 1, Computer.class,
1564:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1565:                         !IS_DERIVED, IS_ORDERED);
1566:                 initEAttribute(getComputer_Name(), ecorePackage.getEString(), "name", null, 1, 1, Computer.class, !IS_TRANSIENT,
1567:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1568:                 initEReference(getComputer_PowerBlock(), getPowerBlock(), null, "powerBlock", null, 0, 1, Computer.class,
1569:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1570:                         !IS_DERIVED, IS_ORDERED);
1571:                 initEAttribute(getComputer_Colors(), getColor(), "colors", null, 0, -1, Computer.class, !IS_TRANSIENT,
1572:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1573:
1574:                 initEClass(mainboardEClass, Mainboard.class, "Mainboard", !IS_ABSTRACT, !IS_INTERFACE,
1575:                         IS_GENERATED_INSTANCE_CLASS);
1576:                 initEAttribute(getMainboard_Name(), ecorePackage.getEString(), "name", null, 1, 1, Mainboard.class,
1577:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1578:
1579:                 initEClass(powerBlockEClass, PowerBlock.class, "PowerBlock", !IS_ABSTRACT, !IS_INTERFACE,
1580:                         IS_GENERATED_INSTANCE_CLASS);
1581:                 initEAttribute(getPowerBlock_Name(), ecorePackage.getEString(), "name", null, 1, 1, PowerBlock.class,
1582:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1583:
1584:                 initEClass(containerEClass, org.eclipse.emf.ecp.view.validation.test.model.Container.class, "Container",
1585:                         !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1586:                 initEReference(getContainer_Contents(), getContent(), null, "contents", null, 0, -1,
1587:                         org.eclipse.emf.ecp.view.validation.test.model.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
1588:                         IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1589:
1590:                 initEClass(contentEClass, Content.class, "Content", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1591:                 initEAttribute(getContent_UniqueAttribute(), ecorePackage.getEString(), "uniqueAttribute", null, 0, 1,
1592:                         Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
1593:                         IS_ORDERED);
1594:                 initEAttribute(getContent_SecondAttribute(), ecorePackage.getEString(), "secondAttribute", null, 0, 1,
1595:                         Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
1596:                         IS_ORDERED);
1597:
1598:                 initEClass(tableWithMultiplicityEClass, TableWithMultiplicity.class, "TableWithMultiplicity", !IS_ABSTRACT,
1599:                         !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1600:                 initEReference(getTableWithMultiplicity_Content(), getTableContent(), null, "content", null, 1, -1,
1601:                         TableWithMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
1602:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1603:
1604:                 initEClass(tableContentEClass, TableContent.class, "TableContent", IS_ABSTRACT, !IS_INTERFACE,
1605:                         IS_GENERATED_INSTANCE_CLASS);
1606:
1607:                 initEClass(tableContentWithoutValidationEClass, TableContentWithoutValidation.class,
1608:                         "TableContentWithoutValidation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1609:                 initEAttribute(getTableContentWithoutValidation_Name(), ecorePackage.getEString(), "name", null, 0, 1,
1610:                         TableContentWithoutValidation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
1611:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1612:                 initEAttribute(getTableContentWithoutValidation_Weight(), ecorePackage.getEInt(), "weight", null, 0, 1,
1613:                         TableContentWithoutValidation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
1614:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1615:
1616:                 initEClass(tableContentWithValidationEClass, TableContentWithValidation.class, "TableContentWithValidation",
1617:                         !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1618:                 initEAttribute(getTableContentWithValidation_Name(), ecorePackage.getEString(), "name", null, 1, 1,
1619:                         TableContentWithValidation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
1620:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1621:                 initEAttribute(getTableContentWithValidation_Weight(), ecorePackage.getEInt(), "weight", null, 0, 1,
1622:                         TableContentWithValidation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
1623:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1624:
1625:                 initEClass(tableWithoutMultiplicityEClass, TableWithoutMultiplicity.class, "TableWithoutMultiplicity",
1626:                         !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1627:                 initEReference(getTableWithoutMultiplicity_Content(), getTableContent(), null, "content", null, 0, -1,
1628:                         TableWithoutMultiplicity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
1629:                         !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1630:
1631:                 initEClass(tableWithUniqueEClass, TableWithUnique.class, "TableWithUnique", !IS_ABSTRACT, !IS_INTERFACE,
1632:                         IS_GENERATED_INSTANCE_CLASS);
1633:                 initEReference(getTableWithUnique_Content(), getTableContent(), null, "content", null, 0, -1,
1634:                         TableWithUnique.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
1635:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1636:
1637:                 initEClass(tableContentWithInnerChild2EClass, TableContentWithInnerChild2.class, "TableContentWithInnerChild2",
1638:                         !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1639:                 initEReference(getTableContentWithInnerChild2_InnerChild(), getTableContent(), null, "innerChild", null, 0, 1,
1640:                         TableContentWithInnerChild2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
1641:                         !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1642:
1643:                 initEClass(tableContentWithInnerChildEClass, TableContentWithInnerChild.class, "TableContentWithInnerChild",
1644:                         !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1645:                 initEReference(getTableContentWithInnerChild_InnerChild(), getTableContent(), null, "innerChild", null, 0, 1,
1646:                         TableContentWithInnerChild.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
1647:                         !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1648:                 initEAttribute(getTableContentWithInnerChild_Stuff(), ecorePackage.getEString(), "stuff", null, 0, 1,
1649:                         TableContentWithInnerChild.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
1650:                         IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1651:
1652:                 initEClass(tableWithoutMultiplicityConcreteEClass, TableWithoutMultiplicityConcrete.class,
1653:                         "TableWithoutMultiplicityConcrete", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1654:                 initEReference(getTableWithoutMultiplicityConcrete_Content(), getTableContentWithInnerChild(), null, "content",
1655:                         null, 0, -1, TableWithoutMultiplicityConcrete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
1656:                         IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1657:
1658:                 initEClass(referencerEClass, Referencer.class, "Referencer", !IS_ABSTRACT, !IS_INTERFACE,
1659:                         IS_GENERATED_INSTANCE_CLASS);
1660:                 initEReference(getReferencer_ReferencedContent(), getComputer(), null, "referencedContent", null, 0, 1,
1661:                         Referencer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
1662:                         !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1663:
1664:                 initEClass(crossReferenceContainerEClass, CrossReferenceContainer.class, "CrossReferenceContainer",
1665:                         !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1666:                 initEReference(getCrossReferenceContainer_Contents(), getCrossReferenceContent(),
1667:                         getCrossReferenceContent_Parent(), "contents", null, 0, -1, CrossReferenceContainer.class, !IS_TRANSIENT,
1668:                         !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
1669:                         IS_ORDERED);
1670:                 initEReference(getCrossReferenceContainer_SingleContent(), getCrossReferenceContent(),
1671:                         getCrossReferenceContent_SingleParent(), "singleContent", null, 0, 1, CrossReferenceContainer.class,
1672:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1673:                         !IS_DERIVED, IS_ORDERED);
1674:
1675:                 initEClass(crossReferenceContentEClass, CrossReferenceContent.class, "CrossReferenceContent", !IS_ABSTRACT,
1676:                         !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1677:                 initEReference(getCrossReferenceContent_Parent(), getCrossReferenceContainer(),
1678:                         getCrossReferenceContainer_Contents(), "parent", null, 0, 1, CrossReferenceContent.class, !IS_TRANSIENT,
1679:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
1680:                         IS_ORDERED);
1681:                 initEReference(getCrossReferenceContent_SingleParent(), getCrossReferenceContainer(),
1682:                         getCrossReferenceContainer_SingleContent(), "singleParent", null, 0, 1, CrossReferenceContent.class,
1683:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
1684:                         !IS_DERIVED, IS_ORDERED);
1685:
1686:                 initEClass(personEClass, Person.class, "Person", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1687:                 initEAttribute(getPerson_FirstName(), getStringWithMaxLength8(), "firstName", null, 0, 1, Person.class,
1688:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1689:                 initEAttribute(getPerson_Gender(), getGender(), "gender", null, 0, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE,
1690:                         IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1691:                 initEAttribute(getPerson_LastName(), getOnlyCapitals(), "lastName", null, 0, 1, Person.class, !IS_TRANSIENT,
1692:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1693:                 initEAttribute(getPerson_Custom(), getCustomDataType(), "custom", null, 0, 1, Person.class, !IS_TRANSIENT,
1694:                         !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1695:                 initEAttribute(getPerson_Age(), getAge(), "age", null, 0, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE,
1696:                         IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1697:
1698:                 initEClass(tableObjectEClass, TableObject.class, "TableObject", IS_ABSTRACT, !IS_INTERFACE,
1699:                         IS_GENERATED_INSTANCE_CLASS);
1700:                 initEAttribute(getTableObject_Label(), ecorePackage.getEString(), "label", null, 0, 1, TableObject.class,
1701:                         !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1702:
1703:                 // Initialize enums and add enum literals
1704:                 initEEnum(genderEEnum, Gender.class, "Gender");
1705:                 addEEnumLiteral(genderEEnum, Gender.MALE);
1706:                 addEEnumLiteral(genderEEnum, Gender.FEMALE);
1707:                 addEEnumLiteral(genderEEnum, Gender.BOTH);
1708:
1709:                 initEEnum(colorEEnum, Color.class, "Color");
1710:                 addEEnumLiteral(colorEEnum, Color.RED);
1711:                 addEEnumLiteral(colorEEnum, Color.GREEN);
1712:                 addEEnumLiteral(colorEEnum, Color.BLUE);
1713:
1714:                 // Initialize data types
1715:                 initEDataType(stringWithMaxLength8EDataType, String.class, "StringWithMaxLength8", IS_SERIALIZABLE,
1716:                         !IS_GENERATED_INSTANCE_CLASS);
1717:                 initEDataType(onlyCapitalsEDataType, String.class, "OnlyCapitals", IS_SERIALIZABLE,
1718:                         !IS_GENERATED_INSTANCE_CLASS);
1719:                 initEDataType(customDataTypeEDataType, String.class, "CustomDataType", IS_SERIALIZABLE,
1720:                         !IS_GENERATED_INSTANCE_CLASS);
1721:                 initEDataType(phoneNumberEDataType, String.class, "PhoneNumber", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1722:                 initEDataType(minLengthOf3EDataType, String.class, "MinLengthOf3", IS_SERIALIZABLE,
1723:                         !IS_GENERATED_INSTANCE_CLASS);
1724:                 initEDataType(strictMinLengthOf3EDataType, String.class, "StrictMinLengthOf3", IS_SERIALIZABLE,
1725:                         !IS_GENERATED_INSTANCE_CLASS);
1726:                 initEDataType(ageEDataType, Integer.class, "Age", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1727:
1728:                 // Create resource
1729:                 createResource(eNS_URI);
1730:
1731:                 // Create annotations
1732:                 // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
1733:                 createExtendedMetaDataAnnotations();
1734:         }
1735:
1736:         /**
1737:          * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
1738:          * <!-- begin-user-doc -->
1739:          * <!-- end-user-doc -->
1740:          *
1741:          * @generated
1742:          */
1743:         protected void createExtendedMetaDataAnnotations() {
1744:                 final String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
1745:                 addAnnotation(stringWithMaxLength8EDataType,
1746:                         source,
1747:                         new String[] {
1748:                                 "maxLength", "8"
1749:                         });
1750:                 addAnnotation(onlyCapitalsEDataType,
1751:                         source,
1752:                         new String[] {
1753:                                 "pattern", "[A-Z]+"
1754:                         });
1755:                 addAnnotation(phoneNumberEDataType,
1756:                         source,
1757:                         new String[] {
1758:                                 "pattern", "((\\+)?[a-c0-9*#]{1,20}){0,1}",
1759:                                 "loosePattern", "[+0-9]+"
1760:                         });
1761:                 addAnnotation(minLengthOf3EDataType,
1762:                         source,
1763:                         new String[] {
1764:                                 "minLength", "3",
1765:                                 "looseMinLength", "0"
1766:                         });
1767:                 addAnnotation(strictMinLengthOf3EDataType,
1768:                         source,
1769:                         new String[] {
1770:                                 "minLength", "3"
1771:                         });
1772:                 addAnnotation(ageEDataType,
1773:                         source,
1774:                         new String[] {
1775:                                 "minInclusive", "0",
1776:                                 "maxInclusive", "100"
1777:                         });
1778:         }
1779:
1780: } // TestPackageImpl