Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 251402 | Differences between
and this patch

Collapse All | Expand All

(-)feature.xml (-25 lines)
Lines 41-59 Link Here
41
         version="0.0.0"/>
41
         version="0.0.0"/>
42
42
43
   <plugin
43
   <plugin
44
         id="org.eclipse.test.performance"
45
         download-size="0"
46
         install-size="0"
47
         version="0.0.0"/>
48
49
   <plugin
50
         id="org.eclipse.test.performance.win32"
51
         download-size="0"
52
         install-size="0"
53
         version="0.0.0"
54
         fragment="true"/>
55
56
   <plugin
57
         id="org.eclipse.ant.optional.junit"
44
         id="org.eclipse.ant.optional.junit"
58
         download-size="0"
45
         download-size="0"
59
         install-size="0"
46
         install-size="0"
Lines 67-78 Link Here
67
         version="0.0.0"/>
54
         version="0.0.0"/>
68
55
69
   <plugin
56
   <plugin
70
         id="org.eclipse.emf.test.performance"
71
         download-size="0"
72
         install-size="0"
73
         version="0.0.0"/>
74
75
   <plugin
76
         id="org.eclipse.emf.test.build"
57
         id="org.eclipse.emf.test.build"
77
         download-size="0"
58
         download-size="0"
78
         install-size="0"
59
         install-size="0"
Lines 97-108 Link Here
97
         version="0.0.0"/>
78
         version="0.0.0"/>
98
79
99
   <plugin
80
   <plugin
100
         id="org.eclipse.emf.test.sdo"
101
         download-size="0"
102
         install-size="0"
103
         version="0.0.0"/>
104
105
   <plugin
106
         id="org.eclipse.emf.test.tools"
81
         id="org.eclipse.emf.test.tools"
107
         download-size="0"
82
         download-size="0"
108
         install-size="0"
83
         install-size="0"
(-)models/sdo.Personal/personalMixed.xsd (-64 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema targetNamespace="http:///org.eclipse.emf.test.models/personalMixed" 
3
xmlns="http:///org.eclipse.emf.test.models/personalMixed" 
4
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
5
6
 <xs:element name="personnel">
7
  <xs:complexType>
8
   <xs:sequence>
9
     <xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/>
10
   </xs:sequence>
11
  </xs:complexType>
12
 </xs:element>
13
14
 <xs:element name="person" type="personType"/>
15
16
 <xs:complexType name="personType" mixed="true">
17
   <xs:sequence>
18
     <xs:element ref="name"/>
19
     <xs:element ref="email" minOccurs='0' maxOccurs='unbounded'/>
20
     <xs:element ref="url"   minOccurs='0' maxOccurs='unbounded'/>
21
     <xs:element ref="link"/>
22
     <xs:any processContents="lax" minOccurs="0"/> 
23
   </xs:sequence>
24
   <xs:attribute name="id"  type="xs:ID" use='required'/>
25
   <xs:attribute name="contr" default="false">
26
    <xs:simpleType>
27
     <xs:restriction base = "xs:string">
28
       <xs:enumeration value="true"/>
29
       <xs:enumeration value="false"/>
30
     </xs:restriction>
31
    </xs:simpleType>
32
   </xs:attribute>
33
   <xs:attribute name="salary" type="xs:integer"/>
34
  </xs:complexType>
35
36
 <xs:element name="name" type="nameType"/>
37
  
38
39
  <xs:complexType name="nameType" mixed="true">
40
   <xs:sequence>
41
    <xs:element ref="family"/>
42
    <xs:element ref="given"/>
43
   </xs:sequence>
44
  </xs:complexType>
45
46
 <xs:element name="family" type='xs:string'/>
47
48
 <xs:element name="given" type='xs:string'/>
49
50
 <xs:element name="email" type='xs:string'/>
51
52
 <xs:element name="url">
53
  <xs:complexType>
54
   <xs:attribute name="href" type="xs:string" default="http://"/>
55
  </xs:complexType>
56
 </xs:element>
57
58
 <xs:element name="link" type="linkType"/>
59
   <xs:complexType name ="linkType" mixed="true">
60
   <xs:attribute name="manager" type="xs:IDREF"/>
61
   <xs:attribute name="subordinates" type="xs:IDREFS"/>
62
  </xs:complexType>
63
64
</xs:schema>
(-)models/sdo.Personal/personal.ecore (-241 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore:EPackage xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="personal"
5
    nsURI="http:///org.eclipse.emf.test.models/personal" nsPrefix="personal">
6
  <eClassifiers xsi:type="ecore:EEnum" name="ContrType">
7
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
8
      <details key="name" value="contr_._type"/>
9
    </eAnnotations>
10
    <eLiterals name="true"/>
11
    <eLiterals name="false" value="1"/>
12
  </eClassifiers>
13
  <eClassifiers xsi:type="ecore:EDataType" name="ContrTypeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
14
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
15
      <details key="name" value="contr_._type:Object"/>
16
      <details key="baseType" value="contr_._type"/>
17
    </eAnnotations>
18
  </eClassifiers>
19
  <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
20
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
21
      <details key="name" value=""/>
22
      <details key="kind" value="mixed"/>
23
    </eAnnotations>
24
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
25
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
26
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
27
        <details key="kind" value="elementWildcard"/>
28
        <details key="name" value=":mixed"/>
29
      </eAnnotations>
30
    </eStructuralFeatures>
31
    <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
32
        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
33
        transient="true" containment="true" resolveProxies="false">
34
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
35
        <details key="kind" value="attribute"/>
36
        <details key="name" value="xmlns:prefix"/>
37
      </eAnnotations>
38
    </eStructuralFeatures>
39
    <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
40
        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
41
        transient="true" containment="true" resolveProxies="false">
42
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
43
        <details key="kind" value="attribute"/>
44
        <details key="name" value="xsi:schemaLocation"/>
45
      </eAnnotations>
46
    </eStructuralFeatures>
47
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-2"
48
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true"
49
        transient="true" derived="true">
50
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
51
        <details key="kind" value="element"/>
52
        <details key="name" value="email"/>
53
        <details key="namespace" value="##targetNamespace"/>
54
      </eAnnotations>
55
    </eStructuralFeatures>
56
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" unique="false"
57
        upperBound="-2" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
58
        volatile="true" transient="true" derived="true">
59
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
60
        <details key="kind" value="element"/>
61
        <details key="name" value="family"/>
62
        <details key="namespace" value="##targetNamespace"/>
63
      </eAnnotations>
64
    </eStructuralFeatures>
65
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" unique="false" upperBound="-2"
66
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true"
67
        transient="true" derived="true">
68
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
69
        <details key="kind" value="element"/>
70
        <details key="name" value="given"/>
71
        <details key="namespace" value="##targetNamespace"/>
72
      </eAnnotations>
73
    </eStructuralFeatures>
74
    <eStructuralFeatures xsi:type="ecore:EReference" name="link" upperBound="-2" eType="#//LinkType"
75
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
76
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
77
        <details key="kind" value="element"/>
78
        <details key="name" value="link"/>
79
        <details key="namespace" value="##targetNamespace"/>
80
      </eAnnotations>
81
    </eStructuralFeatures>
82
    <eStructuralFeatures xsi:type="ecore:EReference" name="name" upperBound="-2" eType="#//NameType"
83
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
84
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
85
        <details key="kind" value="element"/>
86
        <details key="name" value="name"/>
87
        <details key="namespace" value="##targetNamespace"/>
88
      </eAnnotations>
89
    </eStructuralFeatures>
90
    <eStructuralFeatures xsi:type="ecore:EReference" name="person" upperBound="-2"
91
        eType="#//PersonType" volatile="true" transient="true" derived="true" containment="true"
92
        resolveProxies="false">
93
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
94
        <details key="kind" value="element"/>
95
        <details key="name" value="person"/>
96
        <details key="namespace" value="##targetNamespace"/>
97
      </eAnnotations>
98
    </eStructuralFeatures>
99
    <eStructuralFeatures xsi:type="ecore:EReference" name="personnel" upperBound="-2"
100
        eType="#//PersonnelType" volatile="true" transient="true" derived="true" containment="true"
101
        resolveProxies="false">
102
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
103
        <details key="kind" value="element"/>
104
        <details key="name" value="personnel"/>
105
        <details key="namespace" value="##targetNamespace"/>
106
      </eAnnotations>
107
    </eStructuralFeatures>
108
    <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-2" eType="#//UrlType"
109
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
110
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
111
        <details key="kind" value="element"/>
112
        <details key="name" value="url"/>
113
        <details key="namespace" value="##targetNamespace"/>
114
      </eAnnotations>
115
    </eStructuralFeatures>
116
  </eClassifiers>
117
  <eClassifiers xsi:type="ecore:EClass" name="LinkType">
118
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
119
      <details key="name" value="linkType"/>
120
      <details key="kind" value="empty"/>
121
    </eAnnotations>
122
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manager" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREF">
123
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
124
        <details key="kind" value="attribute"/>
125
        <details key="name" value="manager"/>
126
      </eAnnotations>
127
    </eStructuralFeatures>
128
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="subordinates" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREFS">
129
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
130
        <details key="kind" value="attribute"/>
131
        <details key="name" value="subordinates"/>
132
      </eAnnotations>
133
    </eStructuralFeatures>
134
  </eClassifiers>
135
  <eClassifiers xsi:type="ecore:EClass" name="NameType">
136
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
137
      <details key="name" value="nameType"/>
138
      <details key="kind" value="elementOnly"/>
139
    </eAnnotations>
140
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" lowerBound="1"
141
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
142
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
143
        <details key="kind" value="element"/>
144
        <details key="name" value="family"/>
145
        <details key="namespace" value="##targetNamespace"/>
146
      </eAnnotations>
147
    </eStructuralFeatures>
148
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
149
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
150
        <details key="kind" value="element"/>
151
        <details key="name" value="given"/>
152
        <details key="namespace" value="##targetNamespace"/>
153
      </eAnnotations>
154
    </eStructuralFeatures>
155
  </eClassifiers>
156
  <eClassifiers xsi:type="ecore:EClass" name="PersonnelType">
157
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
158
      <details key="name" value="personnel_._type"/>
159
      <details key="kind" value="elementOnly"/>
160
    </eAnnotations>
161
    <eStructuralFeatures xsi:type="ecore:EReference" name="person" lowerBound="1"
162
        upperBound="-1" eType="#//PersonType" containment="true" resolveProxies="false">
163
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
164
        <details key="kind" value="element"/>
165
        <details key="name" value="person"/>
166
        <details key="namespace" value="##targetNamespace"/>
167
      </eAnnotations>
168
    </eStructuralFeatures>
169
  </eClassifiers>
170
  <eClassifiers xsi:type="ecore:EClass" name="PersonType">
171
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
172
      <details key="name" value="personType"/>
173
      <details key="kind" value="elementOnly"/>
174
    </eAnnotations>
175
    <eStructuralFeatures xsi:type="ecore:EReference" name="name" lowerBound="1" eType="#//NameType"
176
        containment="true" resolveProxies="false">
177
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
178
        <details key="kind" value="element"/>
179
        <details key="name" value="name"/>
180
        <details key="namespace" value="##targetNamespace"/>
181
      </eAnnotations>
182
    </eStructuralFeatures>
183
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-1"
184
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
185
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
186
        <details key="kind" value="element"/>
187
        <details key="name" value="email"/>
188
        <details key="namespace" value="##targetNamespace"/>
189
      </eAnnotations>
190
    </eStructuralFeatures>
191
    <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-1" eType="#//UrlType"
192
        containment="true" resolveProxies="false">
193
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
194
        <details key="kind" value="element"/>
195
        <details key="name" value="url"/>
196
        <details key="namespace" value="##targetNamespace"/>
197
      </eAnnotations>
198
    </eStructuralFeatures>
199
    <eStructuralFeatures xsi:type="ecore:EReference" name="link" eType="#//LinkType"
200
        containment="true" resolveProxies="false">
201
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
202
        <details key="kind" value="element"/>
203
        <details key="name" value="link"/>
204
        <details key="namespace" value="##targetNamespace"/>
205
      </eAnnotations>
206
    </eStructuralFeatures>
207
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="contr" eType="#//ContrType"
208
        defaultValueLiteral="false" unsettable="true">
209
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
210
        <details key="kind" value="attribute"/>
211
        <details key="name" value="contr"/>
212
      </eAnnotations>
213
    </eStructuralFeatures>
214
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//ID"
215
        iD="true">
216
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
217
        <details key="kind" value="attribute"/>
218
        <details key="name" value="id"/>
219
      </eAnnotations>
220
    </eStructuralFeatures>
221
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="salary" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer">
222
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
223
        <details key="kind" value="attribute"/>
224
        <details key="name" value="salary"/>
225
      </eAnnotations>
226
    </eStructuralFeatures>
227
  </eClassifiers>
228
  <eClassifiers xsi:type="ecore:EClass" name="UrlType">
229
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
230
      <details key="name" value="url_._type"/>
231
      <details key="kind" value="empty"/>
232
    </eAnnotations>
233
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="href" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
234
        defaultValueLiteral="http://" unsettable="true">
235
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
236
        <details key="kind" value="attribute"/>
237
        <details key="name" value="href"/>
238
      </eAnnotations>
239
    </eStructuralFeatures>
240
  </eClassifiers>
241
</ecore:EPackage>
(-)models/sdo.Personal/personal.xsd (-63 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema targetNamespace="http:///org.eclipse.emf.test.models/personal" 
3
xmlns="http:///org.eclipse.emf.test.models/personal" 
4
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
5
6
 <xs:element name="personnel">
7
  <xs:complexType>
8
   <xs:sequence>
9
     <xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/>
10
   </xs:sequence>
11
  </xs:complexType>
12
 </xs:element>
13
14
 <xs:element name="person" type="personType"/>
15
16
 <xs:complexType name="personType">
17
   <xs:sequence>
18
     <xs:element ref="name"/>
19
     <xs:element ref="email" minOccurs='0' maxOccurs='unbounded'/>
20
     <xs:element ref="url"   minOccurs='0' maxOccurs='unbounded'/>
21
     <xs:element ref="link"  minOccurs='0' maxOccurs='1'/>
22
   </xs:sequence>
23
   <xs:attribute name="id"  type="xs:ID" use='required'/>
24
   <xs:attribute name="contr" default="false">
25
    <xs:simpleType>
26
     <xs:restriction base = "xs:string">
27
       <xs:enumeration value="true"/>
28
       <xs:enumeration value="false"/>
29
     </xs:restriction>
30
    </xs:simpleType>
31
   </xs:attribute>
32
   <xs:attribute name="salary" type="xs:integer"/>
33
  </xs:complexType>
34
35
 <xs:element name="name" type="nameType"/>
36
  
37
38
  <xs:complexType name="nameType">
39
   <xs:all>
40
    <xs:element ref="family"/>
41
    <xs:element ref="given"/>
42
   </xs:all>
43
  </xs:complexType>
44
45
 <xs:element name="family" type='xs:string'/>
46
47
 <xs:element name="given" type='xs:string'/>
48
49
 <xs:element name="email" type='xs:string'/>
50
51
 <xs:element name="url">
52
  <xs:complexType>
53
   <xs:attribute name="href" type="xs:string" default="http://"/>
54
  </xs:complexType>
55
 </xs:element>
56
57
 <xs:element name="link" type="linkType"/>
58
   <xs:complexType name ="linkType">
59
   <xs:attribute name="manager" type="xs:IDREF"/>
60
   <xs:attribute name="subordinates" type="xs:IDREFS"/>
61
  </xs:complexType>
62
63
</xs:schema>
(-)src/org/eclipse/emf/test/models/personal/impl/UrlTypeImpl.java (-234 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UrlTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
21
import org.eclipse.emf.ecore.EClass;
22
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
25
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
26
27
import org.eclipse.emf.test.models.personal.UrlType;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Url Type</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl#getHref <em>Href</em>}</li>
37
 * </ul>
38
 * </p>
39
 *
40
 * @generated
41
 */
42
public class UrlTypeImpl extends EDataObjectImpl implements UrlType
43
{
44
  /**
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  private static final long serialVersionUID = 1L;
50
51
  /**
52
   * The default value of the '{@link #getHref() <em>Href</em>}' attribute.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @see #getHref()
56
   * @generated
57
   * @ordered
58
   */
59
  protected static final String HREF_EDEFAULT = "http://";
60
61
  /**
62
   * The cached value of the '{@link #getHref() <em>Href</em>}' attribute.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @see #getHref()
66
   * @generated
67
   * @ordered
68
   */
69
  protected String href = HREF_EDEFAULT;
70
71
  /**
72
   * This is true if the Href attribute has been set.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @generated
76
   * @ordered
77
   */
78
  protected boolean hrefESet;
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  protected UrlTypeImpl()
86
  {
87
    super();
88
  }
89
90
  /**
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @generated
94
   */
95
  @Override
96
  protected EClass eStaticClass()
97
  {
98
    return PersonalPackageImpl.Literals.URL_TYPE;
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  public String getHref()
107
  {
108
    return href;
109
  }
110
111
  /**
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @generated
115
   */
116
  public void setHref(String newHref)
117
  {
118
    String oldHref = href;
119
    href = newHref;
120
    boolean oldHrefESet = hrefESet;
121
    hrefESet = true;
122
    if (eNotificationRequired())
123
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.URL_TYPE__HREF, oldHref, href, !oldHrefESet));
124
  }
125
126
  /**
127
   * <!-- begin-user-doc -->
128
   * <!-- end-user-doc -->
129
   * @generated
130
   */
131
  public void unsetHref()
132
  {
133
    String oldHref = href;
134
    boolean oldHrefESet = hrefESet;
135
    href = HREF_EDEFAULT;
136
    hrefESet = false;
137
    if (eNotificationRequired())
138
      eNotify(new ENotificationImpl(this, Notification.UNSET, PersonalPackageImpl.URL_TYPE__HREF, oldHref, HREF_EDEFAULT, oldHrefESet));
139
  }
140
141
  /**
142
   * <!-- begin-user-doc -->
143
   * <!-- end-user-doc -->
144
   * @generated
145
   */
146
  public boolean isSetHref()
147
  {
148
    return hrefESet;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  @Override
157
  public Object eGet(int featureID, boolean resolve, boolean coreType)
158
  {
159
    switch (featureID)
160
    {
161
      case PersonalPackageImpl.URL_TYPE__HREF:
162
        return getHref();
163
    }
164
    return super.eGet(featureID, resolve, coreType);
165
  }
166
167
  /**
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   */
172
  @Override
173
  public void eSet(int featureID, Object newValue)
174
  {
175
    switch (featureID)
176
    {
177
      case PersonalPackageImpl.URL_TYPE__HREF:
178
        setHref((String)newValue);
179
        return;
180
    }
181
    super.eSet(featureID, newValue);
182
  }
183
184
  /**
185
   * <!-- begin-user-doc -->
186
   * <!-- end-user-doc -->
187
   * @generated
188
   */
189
  @Override
190
  public void eUnset(int featureID)
191
  {
192
    switch (featureID)
193
    {
194
      case PersonalPackageImpl.URL_TYPE__HREF:
195
        unsetHref();
196
        return;
197
    }
198
    super.eUnset(featureID);
199
  }
200
201
  /**
202
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
204
   * @generated
205
   */
206
  @Override
207
  public boolean eIsSet(int featureID)
208
  {
209
    switch (featureID)
210
    {
211
      case PersonalPackageImpl.URL_TYPE__HREF:
212
        return isSetHref();
213
    }
214
    return super.eIsSet(featureID);
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  @Override
223
  public String toString()
224
  {
225
    if (eIsProxy()) return super.toString();
226
227
    StringBuffer result = new StringBuffer(super.toString());
228
    result.append(" (href: ");
229
    if (hrefESet) result.append(href); else result.append("<unset>");
230
    result.append(')');
231
    return result.toString();
232
  }
233
234
} //UrlTypeImpl
(-)src/org/eclipse/emf/test/models/personal/impl/PersonalFactoryImpl.java (-269 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalFactoryImpl.java,v 1.2 2007/01/18 22:06:41 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EDataType;
21
import org.eclipse.emf.ecore.EObject;
22
import org.eclipse.emf.ecore.EPackage;
23
24
import org.eclipse.emf.ecore.impl.EFactoryImpl;
25
26
import org.eclipse.emf.ecore.plugin.EcorePlugin;
27
28
import org.eclipse.emf.test.models.personal.*;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model <b>Factory</b>.
33
 * <!-- end-user-doc -->
34
 * @generated
35
 */
36
public class PersonalFactoryImpl extends EFactoryImpl implements PersonalFactory
37
{
38
  /**
39
   * The singleton instance of the factory.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public static final PersonalFactoryImpl eINSTANCE = init();
45
46
  /**
47
   * Creates the default factory implementation.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @generated
51
   */
52
  public static PersonalFactoryImpl init()
53
  {
54
    try
55
    {
56
      PersonalFactoryImpl thePersonalFactory = (PersonalFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/personal"); 
57
      if (thePersonalFactory != null)
58
      {
59
        return thePersonalFactory;
60
      }
61
    }
62
    catch (Exception exception)
63
    {
64
      EcorePlugin.INSTANCE.log(exception);
65
    }
66
    return new PersonalFactoryImpl();
67
  }
68
69
  /**
70
   * Creates an instance of the factory.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @generated
74
   */
75
  public PersonalFactoryImpl()
76
  {
77
    super();
78
  }
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  @Override
86
  public EObject create(EClass eClass)
87
  {
88
    switch (eClass.getClassifierID())
89
    {
90
      case PersonalPackageImpl.DOCUMENT_ROOT: return (EObject)createDocumentRoot();
91
      case PersonalPackageImpl.LINK_TYPE: return (EObject)createLinkType();
92
      case PersonalPackageImpl.NAME_TYPE: return (EObject)createNameType();
93
      case PersonalPackageImpl.PERSONNEL_TYPE: return (EObject)createPersonnelType();
94
      case PersonalPackageImpl.PERSON_TYPE: return (EObject)createPersonType();
95
      case PersonalPackageImpl.URL_TYPE: return (EObject)createUrlType();
96
      default:
97
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
98
    }
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  @Override
107
  public Object createFromString(EDataType eDataType, String initialValue)
108
  {
109
    switch (eDataType.getClassifierID())
110
    {
111
      case PersonalPackageImpl.CONTR_TYPE:
112
        return createContrTypeFromString(eDataType, initialValue);
113
      case PersonalPackageImpl.CONTR_TYPE_OBJECT:
114
        return createContrTypeObjectFromString(eDataType, initialValue);
115
      default:
116
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
117
    }
118
  }
119
120
  /**
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @generated
124
   */
125
  @Override
126
  public String convertToString(EDataType eDataType, Object instanceValue)
127
  {
128
    switch (eDataType.getClassifierID())
129
    {
130
      case PersonalPackageImpl.CONTR_TYPE:
131
        return convertContrTypeToString(eDataType, instanceValue);
132
      case PersonalPackageImpl.CONTR_TYPE_OBJECT:
133
        return convertContrTypeObjectToString(eDataType, instanceValue);
134
      default:
135
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
136
    }
137
  }
138
139
  /**
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @generated
143
   */
144
  public DocumentRoot createDocumentRoot()
145
  {
146
    DocumentRootImpl documentRoot = new DocumentRootImpl();
147
    return documentRoot;
148
  }
149
150
  /**
151
   * <!-- begin-user-doc -->
152
   * <!-- end-user-doc -->
153
   * @generated
154
   */
155
  public LinkType createLinkType()
156
  {
157
    LinkTypeImpl linkType = new LinkTypeImpl();
158
    return linkType;
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  public NameType createNameType()
167
  {
168
    NameTypeImpl nameType = new NameTypeImpl();
169
    return nameType;
170
  }
171
172
  /**
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   */
177
  public PersonnelType createPersonnelType()
178
  {
179
    PersonnelTypeImpl personnelType = new PersonnelTypeImpl();
180
    return personnelType;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  public PersonType createPersonType()
189
  {
190
    PersonTypeImpl personType = new PersonTypeImpl();
191
    return personType;
192
  }
193
194
  /**
195
   * <!-- begin-user-doc -->
196
   * <!-- end-user-doc -->
197
   * @generated
198
   */
199
  public UrlType createUrlType()
200
  {
201
    UrlTypeImpl urlType = new UrlTypeImpl();
202
    return urlType;
203
  }
204
205
  /**
206
   * <!-- begin-user-doc -->
207
   * <!-- end-user-doc -->
208
   * @generated
209
   */
210
  public ContrType createContrTypeFromString(EDataType eDataType, String initialValue)
211
  {
212
    ContrType result = ContrType.get(initialValue);
213
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
214
    return result;
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  public String convertContrTypeToString(EDataType eDataType, Object instanceValue)
223
  {
224
    return instanceValue == null ? null : instanceValue.toString();
225
  }
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  public ContrType createContrTypeObjectFromString(EDataType eDataType, String initialValue)
233
  {
234
    return createContrTypeFromString(PersonalPackageImpl.Literals.CONTR_TYPE, initialValue);
235
  }
236
237
  /**
238
   * <!-- begin-user-doc -->
239
   * <!-- end-user-doc -->
240
   * @generated
241
   */
242
  public String convertContrTypeObjectToString(EDataType eDataType, Object instanceValue)
243
  {
244
    return convertContrTypeToString(PersonalPackageImpl.Literals.CONTR_TYPE, instanceValue);
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public PersonalPackageImpl getPersonalPackageImpl()
253
  {
254
    return (PersonalPackageImpl)getEPackage();
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @deprecated
261
   * @generated
262
   */
263
  @Deprecated
264
  public static PersonalPackageImpl getPackage()
265
  {
266
    return PersonalPackageImpl.eINSTANCE;
267
  }
268
269
} //PersonalFactoryImpl
(-)src/org/eclipse/emf/test/models/personal/impl/NameTypeImpl.java (-254 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: NameTypeImpl.java,v 1.2 2007/01/18 22:06:41 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
21
import org.eclipse.emf.ecore.EClass;
22
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
25
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
26
27
import org.eclipse.emf.test.models.personal.NameType;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Name Type</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl#getFamily <em>Family</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl#getGiven <em>Given</em>}</li>
38
 * </ul>
39
 * </p>
40
 *
41
 * @generated
42
 */
43
public class NameTypeImpl extends EDataObjectImpl implements NameType
44
{
45
  /**
46
   * <!-- begin-user-doc -->
47
   * <!-- end-user-doc -->
48
   * @generated
49
   */
50
  private static final long serialVersionUID = 1L;
51
52
  /**
53
   * The default value of the '{@link #getFamily() <em>Family</em>}' attribute.
54
   * <!-- begin-user-doc -->
55
   * <!-- end-user-doc -->
56
   * @see #getFamily()
57
   * @generated
58
   * @ordered
59
   */
60
  protected static final String FAMILY_EDEFAULT = null;
61
62
  /**
63
   * The cached value of the '{@link #getFamily() <em>Family</em>}' attribute.
64
   * <!-- begin-user-doc -->
65
   * <!-- end-user-doc -->
66
   * @see #getFamily()
67
   * @generated
68
   * @ordered
69
   */
70
  protected String family = FAMILY_EDEFAULT;
71
72
  /**
73
   * The default value of the '{@link #getGiven() <em>Given</em>}' attribute.
74
   * <!-- begin-user-doc -->
75
   * <!-- end-user-doc -->
76
   * @see #getGiven()
77
   * @generated
78
   * @ordered
79
   */
80
  protected static final String GIVEN_EDEFAULT = null;
81
82
  /**
83
   * The cached value of the '{@link #getGiven() <em>Given</em>}' attribute.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @see #getGiven()
87
   * @generated
88
   * @ordered
89
   */
90
  protected String given = GIVEN_EDEFAULT;
91
92
  /**
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * @generated
96
   */
97
  protected NameTypeImpl()
98
  {
99
    super();
100
  }
101
102
  /**
103
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
105
   * @generated
106
   */
107
  @Override
108
  protected EClass eStaticClass()
109
  {
110
    return PersonalPackageImpl.Literals.NAME_TYPE;
111
  }
112
113
  /**
114
   * <!-- begin-user-doc -->
115
   * <!-- end-user-doc -->
116
   * @generated
117
   */
118
  public String getFamily()
119
  {
120
    return family;
121
  }
122
123
  /**
124
   * <!-- begin-user-doc -->
125
   * <!-- end-user-doc -->
126
   * @generated
127
   */
128
  public void setFamily(String newFamily)
129
  {
130
    String oldFamily = family;
131
    family = newFamily;
132
    if (eNotificationRequired())
133
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.NAME_TYPE__FAMILY, oldFamily, family));
134
  }
135
136
  /**
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   */
141
  public String getGiven()
142
  {
143
    return given;
144
  }
145
146
  /**
147
   * <!-- begin-user-doc -->
148
   * <!-- end-user-doc -->
149
   * @generated
150
   */
151
  public void setGiven(String newGiven)
152
  {
153
    String oldGiven = given;
154
    given = newGiven;
155
    if (eNotificationRequired())
156
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.NAME_TYPE__GIVEN, oldGiven, given));
157
  }
158
159
  /**
160
   * <!-- begin-user-doc -->
161
   * <!-- end-user-doc -->
162
   * @generated
163
   */
164
  @Override
165
  public Object eGet(int featureID, boolean resolve, boolean coreType)
166
  {
167
    switch (featureID)
168
    {
169
      case PersonalPackageImpl.NAME_TYPE__FAMILY:
170
        return getFamily();
171
      case PersonalPackageImpl.NAME_TYPE__GIVEN:
172
        return getGiven();
173
    }
174
    return super.eGet(featureID, resolve, coreType);
175
  }
176
177
  /**
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  @Override
183
  public void eSet(int featureID, Object newValue)
184
  {
185
    switch (featureID)
186
    {
187
      case PersonalPackageImpl.NAME_TYPE__FAMILY:
188
        setFamily((String)newValue);
189
        return;
190
      case PersonalPackageImpl.NAME_TYPE__GIVEN:
191
        setGiven((String)newValue);
192
        return;
193
    }
194
    super.eSet(featureID, newValue);
195
  }
196
197
  /**
198
   * <!-- begin-user-doc -->
199
   * <!-- end-user-doc -->
200
   * @generated
201
   */
202
  @Override
203
  public void eUnset(int featureID)
204
  {
205
    switch (featureID)
206
    {
207
      case PersonalPackageImpl.NAME_TYPE__FAMILY:
208
        setFamily(FAMILY_EDEFAULT);
209
        return;
210
      case PersonalPackageImpl.NAME_TYPE__GIVEN:
211
        setGiven(GIVEN_EDEFAULT);
212
        return;
213
    }
214
    super.eUnset(featureID);
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  @Override
223
  public boolean eIsSet(int featureID)
224
  {
225
    switch (featureID)
226
    {
227
      case PersonalPackageImpl.NAME_TYPE__FAMILY:
228
        return FAMILY_EDEFAULT == null ? family != null : !FAMILY_EDEFAULT.equals(family);
229
      case PersonalPackageImpl.NAME_TYPE__GIVEN:
230
        return GIVEN_EDEFAULT == null ? given != null : !GIVEN_EDEFAULT.equals(given);
231
    }
232
    return super.eIsSet(featureID);
233
  }
234
235
  /**
236
   * <!-- begin-user-doc -->
237
   * <!-- end-user-doc -->
238
   * @generated
239
   */
240
  @Override
241
  public String toString()
242
  {
243
    if (eIsProxy()) return super.toString();
244
245
    StringBuffer result = new StringBuffer(super.toString());
246
    result.append(" (family: ");
247
    result.append(family);
248
    result.append(", given: ");
249
    result.append(given);
250
    result.append(')');
251
    return result.toString();
252
  }
253
254
} //NameTypeImpl
(-)src/org/eclipse/emf/test/models/personal/impl/PersonalPackageImpl.java (-1741 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalPackageImpl.java,v 1.4 2007/06/15 21:22:18 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
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.EFactory;
24
import org.eclipse.emf.ecore.EPackage;
25
import org.eclipse.emf.ecore.EReference;
26
27
import org.eclipse.emf.ecore.impl.EPackageImpl;
28
29
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
30
31
import org.eclipse.emf.test.models.personal.ContrType;
32
import org.eclipse.emf.test.models.personal.DocumentRoot;
33
import org.eclipse.emf.test.models.personal.LinkType;
34
import org.eclipse.emf.test.models.personal.NameType;
35
import org.eclipse.emf.test.models.personal.PersonType;
36
import org.eclipse.emf.test.models.personal.PersonalFactory;
37
import org.eclipse.emf.test.models.personal.PersonnelType;
38
import org.eclipse.emf.test.models.personal.UrlType;
39
40
/**
41
 * <!-- begin-user-doc -->
42
 * The <b>Package</b> for the model.
43
 * It contains accessors for the meta objects to represent
44
 * <ul>
45
 *   <li>each class,</li>
46
 *   <li>each feature of each class,</li>
47
 *   <li>each enum,</li>
48
 *   <li>and each data type</li>
49
 * </ul>
50
 * <!-- end-user-doc -->
51
 * @see org.eclipse.emf.test.models.personal.PersonalFactory
52
 * @model kind="package"
53
 * @generated
54
 */
55
public class PersonalPackageImpl extends EPackageImpl
56
{
57
  /**
58
   * The package name.
59
   * <!-- begin-user-doc -->
60
   * <!-- end-user-doc -->
61
   * @generated
62
   */
63
  public static final String eNAME = "personal";
64
65
  /**
66
   * The package namespace URI.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @generated
70
   */
71
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/personal";
72
73
  /**
74
   * The package namespace name.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @generated
78
   */
79
  public static final String eNS_PREFIX = "personal";
80
81
  /**
82
   * The singleton instance of the package.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @generated
86
   */
87
  public static final PersonalPackageImpl eINSTANCE = org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl.init();
88
89
  /**
90
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl <em>Document Root</em>}' class.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @see org.eclipse.emf.test.models.personal.impl.DocumentRootImpl
94
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getDocumentRoot()
95
   * @generated
96
   */
97
  public static final int DOCUMENT_ROOT = 0;
98
99
  /**
100
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @generated
104
   * @ordered
105
   */
106
  public static final int DOCUMENT_ROOT__MIXED = 0;
107
108
  /**
109
   * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
110
   * <!-- begin-user-doc -->
111
   * <!-- end-user-doc -->
112
   * @generated
113
   * @ordered
114
   */
115
  public static final int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
116
117
  /**
118
   * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
119
   * <!-- begin-user-doc -->
120
   * <!-- end-user-doc -->
121
   * @generated
122
   * @ordered
123
   */
124
  public static final int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
125
126
  /**
127
   * The feature id for the '<em><b>Email</b></em>' attribute.
128
   * <!-- begin-user-doc -->
129
   * <!-- end-user-doc -->
130
   * @generated
131
   * @ordered
132
   */
133
  public static final int DOCUMENT_ROOT__EMAIL = 3;
134
135
  /**
136
   * The feature id for the '<em><b>Family</b></em>' attribute.
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   * @ordered
141
   */
142
  public static final int DOCUMENT_ROOT__FAMILY = 4;
143
144
  /**
145
   * The feature id for the '<em><b>Given</b></em>' attribute.
146
   * <!-- begin-user-doc -->
147
   * <!-- end-user-doc -->
148
   * @generated
149
   * @ordered
150
   */
151
  public static final int DOCUMENT_ROOT__GIVEN = 5;
152
153
  /**
154
   * The feature id for the '<em><b>Link</b></em>' containment reference.
155
   * <!-- begin-user-doc -->
156
   * <!-- end-user-doc -->
157
   * @generated
158
   * @ordered
159
   */
160
  public static final int DOCUMENT_ROOT__LINK = 6;
161
162
  /**
163
   * The feature id for the '<em><b>Name</b></em>' containment reference.
164
   * <!-- begin-user-doc -->
165
   * <!-- end-user-doc -->
166
   * @generated
167
   * @ordered
168
   */
169
  public static final int DOCUMENT_ROOT__NAME = 7;
170
171
  /**
172
   * The feature id for the '<em><b>Person</b></em>' containment reference.
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   * @ordered
177
   */
178
  public static final int DOCUMENT_ROOT__PERSON = 8;
179
180
  /**
181
   * The feature id for the '<em><b>Personnel</b></em>' containment reference.
182
   * <!-- begin-user-doc -->
183
   * <!-- end-user-doc -->
184
   * @generated
185
   * @ordered
186
   */
187
  public static final int DOCUMENT_ROOT__PERSONNEL = 9;
188
189
  /**
190
   * The feature id for the '<em><b>Url</b></em>' containment reference.
191
   * <!-- begin-user-doc -->
192
   * <!-- end-user-doc -->
193
   * @generated
194
   * @ordered
195
   */
196
  public static final int DOCUMENT_ROOT__URL = 10;
197
198
  /**
199
   * The number of structural features of the '<em>Document Root</em>' class.
200
   * <!-- begin-user-doc -->
201
   * <!-- end-user-doc -->
202
   * @generated
203
   * @ordered
204
   */
205
  public static final int DOCUMENT_ROOT_FEATURE_COUNT = 11;
206
207
  /**
208
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl <em>Link Type</em>}' class.
209
   * <!-- begin-user-doc -->
210
   * <!-- end-user-doc -->
211
   * @see org.eclipse.emf.test.models.personal.impl.LinkTypeImpl
212
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getLinkType()
213
   * @generated
214
   */
215
  public static final int LINK_TYPE = 1;
216
217
  /**
218
   * The feature id for the '<em><b>Manager</b></em>' attribute.
219
   * <!-- begin-user-doc -->
220
   * <!-- end-user-doc -->
221
   * @generated
222
   * @ordered
223
   */
224
  public static final int LINK_TYPE__MANAGER = 0;
225
226
  /**
227
   * The feature id for the '<em><b>Subordinates</b></em>' attribute.
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   * @ordered
232
   */
233
  public static final int LINK_TYPE__SUBORDINATES = 1;
234
235
  /**
236
   * The number of structural features of the '<em>Link Type</em>' class.
237
   * <!-- begin-user-doc -->
238
   * <!-- end-user-doc -->
239
   * @generated
240
   * @ordered
241
   */
242
  public static final int LINK_TYPE_FEATURE_COUNT = 2;
243
244
  /**
245
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl <em>Name Type</em>}' class.
246
   * <!-- begin-user-doc -->
247
   * <!-- end-user-doc -->
248
   * @see org.eclipse.emf.test.models.personal.impl.NameTypeImpl
249
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getNameType()
250
   * @generated
251
   */
252
  public static final int NAME_TYPE = 2;
253
254
  /**
255
   * The feature id for the '<em><b>Family</b></em>' attribute.
256
   * <!-- begin-user-doc -->
257
   * <!-- end-user-doc -->
258
   * @generated
259
   * @ordered
260
   */
261
  public static final int NAME_TYPE__FAMILY = 0;
262
263
  /**
264
   * The feature id for the '<em><b>Given</b></em>' attribute.
265
   * <!-- begin-user-doc -->
266
   * <!-- end-user-doc -->
267
   * @generated
268
   * @ordered
269
   */
270
  public static final int NAME_TYPE__GIVEN = 1;
271
272
  /**
273
   * The number of structural features of the '<em>Name Type</em>' class.
274
   * <!-- begin-user-doc -->
275
   * <!-- end-user-doc -->
276
   * @generated
277
   * @ordered
278
   */
279
  public static final int NAME_TYPE_FEATURE_COUNT = 2;
280
281
  /**
282
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class.
283
   * <!-- begin-user-doc -->
284
   * <!-- end-user-doc -->
285
   * @see org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl
286
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonnelType()
287
   * @generated
288
   */
289
  public static final int PERSONNEL_TYPE = 3;
290
291
  /**
292
   * The feature id for the '<em><b>Person</b></em>' containment reference list.
293
   * <!-- begin-user-doc -->
294
   * <!-- end-user-doc -->
295
   * @generated
296
   * @ordered
297
   */
298
  public static final int PERSONNEL_TYPE__PERSON = 0;
299
300
  /**
301
   * The number of structural features of the '<em>Personnel Type</em>' class.
302
   * <!-- begin-user-doc -->
303
   * <!-- end-user-doc -->
304
   * @generated
305
   * @ordered
306
   */
307
  public static final int PERSONNEL_TYPE_FEATURE_COUNT = 1;
308
309
  /**
310
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl <em>Person Type</em>}' class.
311
   * <!-- begin-user-doc -->
312
   * <!-- end-user-doc -->
313
   * @see org.eclipse.emf.test.models.personal.impl.PersonTypeImpl
314
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonType()
315
   * @generated
316
   */
317
  public static final int PERSON_TYPE = 4;
318
319
  /**
320
   * The feature id for the '<em><b>Name</b></em>' containment reference.
321
   * <!-- begin-user-doc -->
322
   * <!-- end-user-doc -->
323
   * @generated
324
   * @ordered
325
   */
326
  public static final int PERSON_TYPE__NAME = 0;
327
328
  /**
329
   * The feature id for the '<em><b>Email</b></em>' attribute list.
330
   * <!-- begin-user-doc -->
331
   * <!-- end-user-doc -->
332
   * @generated
333
   * @ordered
334
   */
335
  public static final int PERSON_TYPE__EMAIL = 1;
336
337
  /**
338
   * The feature id for the '<em><b>Url</b></em>' containment reference list.
339
   * <!-- begin-user-doc -->
340
   * <!-- end-user-doc -->
341
   * @generated
342
   * @ordered
343
   */
344
  public static final int PERSON_TYPE__URL = 2;
345
346
  /**
347
   * The feature id for the '<em><b>Link</b></em>' containment reference.
348
   * <!-- begin-user-doc -->
349
   * <!-- end-user-doc -->
350
   * @generated
351
   * @ordered
352
   */
353
  public static final int PERSON_TYPE__LINK = 3;
354
355
  /**
356
   * The feature id for the '<em><b>Contr</b></em>' attribute.
357
   * <!-- begin-user-doc -->
358
   * <!-- end-user-doc -->
359
   * @generated
360
   * @ordered
361
   */
362
  public static final int PERSON_TYPE__CONTR = 4;
363
364
  /**
365
   * The feature id for the '<em><b>Id</b></em>' attribute.
366
   * <!-- begin-user-doc -->
367
   * <!-- end-user-doc -->
368
   * @generated
369
   * @ordered
370
   */
371
  public static final int PERSON_TYPE__ID = 5;
372
373
  /**
374
   * The feature id for the '<em><b>Salary</b></em>' attribute.
375
   * <!-- begin-user-doc -->
376
   * <!-- end-user-doc -->
377
   * @generated
378
   * @ordered
379
   */
380
  public static final int PERSON_TYPE__SALARY = 6;
381
382
  /**
383
   * The number of structural features of the '<em>Person Type</em>' class.
384
   * <!-- begin-user-doc -->
385
   * <!-- end-user-doc -->
386
   * @generated
387
   * @ordered
388
   */
389
  public static final int PERSON_TYPE_FEATURE_COUNT = 7;
390
391
  /**
392
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl <em>Url Type</em>}' class.
393
   * <!-- begin-user-doc -->
394
   * <!-- end-user-doc -->
395
   * @see org.eclipse.emf.test.models.personal.impl.UrlTypeImpl
396
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getUrlType()
397
   * @generated
398
   */
399
  public static final int URL_TYPE = 5;
400
401
  /**
402
   * The feature id for the '<em><b>Href</b></em>' attribute.
403
   * <!-- begin-user-doc -->
404
   * <!-- end-user-doc -->
405
   * @generated
406
   * @ordered
407
   */
408
  public static final int URL_TYPE__HREF = 0;
409
410
  /**
411
   * The number of structural features of the '<em>Url Type</em>' class.
412
   * <!-- begin-user-doc -->
413
   * <!-- end-user-doc -->
414
   * @generated
415
   * @ordered
416
   */
417
  public static final int URL_TYPE_FEATURE_COUNT = 1;
418
419
  /**
420
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}' enum.
421
   * <!-- begin-user-doc -->
422
   * <!-- end-user-doc -->
423
   * @see org.eclipse.emf.test.models.personal.ContrType
424
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrType()
425
   * @generated
426
   */
427
  public static final int CONTR_TYPE = 6;
428
429
  /**
430
   * The meta object id for the '<em>Contr Type Object</em>' data type.
431
   * <!-- begin-user-doc -->
432
   * <!-- end-user-doc -->
433
   * @see org.eclipse.emf.test.models.personal.ContrType
434
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrTypeObject()
435
   * @generated
436
   */
437
  public static final int CONTR_TYPE_OBJECT = 7;
438
439
  /**
440
   * <!-- begin-user-doc -->
441
   * <!-- end-user-doc -->
442
   * @generated
443
   */
444
  private EClass documentRootEClass = null;
445
446
  /**
447
   * <!-- begin-user-doc -->
448
   * <!-- end-user-doc -->
449
   * @generated
450
   */
451
  private EClass linkTypeEClass = null;
452
453
  /**
454
   * <!-- begin-user-doc -->
455
   * <!-- end-user-doc -->
456
   * @generated
457
   */
458
  private EClass nameTypeEClass = null;
459
460
  /**
461
   * <!-- begin-user-doc -->
462
   * <!-- end-user-doc -->
463
   * @generated
464
   */
465
  private EClass personnelTypeEClass = null;
466
467
  /**
468
   * <!-- begin-user-doc -->
469
   * <!-- end-user-doc -->
470
   * @generated
471
   */
472
  private EClass personTypeEClass = null;
473
474
  /**
475
   * <!-- begin-user-doc -->
476
   * <!-- end-user-doc -->
477
   * @generated
478
   */
479
  private EClass urlTypeEClass = null;
480
481
  /**
482
   * <!-- begin-user-doc -->
483
   * <!-- end-user-doc -->
484
   * @generated
485
   */
486
  private EEnum contrTypeEEnum = null;
487
488
  /**
489
   * <!-- begin-user-doc -->
490
   * <!-- end-user-doc -->
491
   * @generated
492
   */
493
  private EDataType contrTypeObjectEDataType = null;
494
495
  /**
496
   * Creates an instance of the model <b>Package</b>, registered with
497
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
498
   * package URI value.
499
   * <p>Note: the correct way to create the package is via the static
500
   * factory method {@link #init init()}, which also performs
501
   * initialization of the package, or returns the registered package,
502
   * if one already exists.
503
   * <!-- begin-user-doc -->
504
   * <!-- end-user-doc -->
505
   * @see org.eclipse.emf.ecore.EPackage.Registry
506
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#eNS_URI
507
   * @see #init()
508
   * @generated
509
   */
510
  private PersonalPackageImpl()
511
  {
512
    super(eNS_URI, ((EFactory)PersonalFactory.INSTANCE));
513
  }
514
515
  /**
516
   * <!-- begin-user-doc -->
517
   * <!-- end-user-doc -->
518
   * @generated
519
   */
520
  private static boolean isInited = false;
521
522
  /**
523
   * Creates, registers, and initializes the <b>Package</b> for this
524
   * model, and for any others upon which it depends.  Simple
525
   * dependencies are satisfied by calling this method on all
526
   * dependent packages before doing anything else.  This method drives
527
   * initialization for interdependent packages directly, in parallel
528
   * with this package, itself.
529
   * <p>Of this package and its interdependencies, all packages which
530
   * have not yet been registered by their URI values are first created
531
   * and registered.  The packages are then initialized in two steps:
532
   * meta-model objects for all of the packages are created before any
533
   * are initialized, since one package's meta-model objects may refer to
534
   * those of another.
535
   * <p>Invocation of this method will not affect any packages that have
536
   * already been initialized.
537
   * <!-- begin-user-doc -->
538
   * <!-- end-user-doc -->
539
   * @see #eNS_URI
540
   * @see #createPackageContents()
541
   * @see #initializePackageContents()
542
   * @generated
543
   */
544
  public static PersonalPackageImpl init()
545
  {
546
    if (isInited) return (PersonalPackageImpl)EPackage.Registry.INSTANCE.getEPackage(PersonalPackageImpl.eNS_URI);
547
548
    // Obtain or create and register package
549
    PersonalPackageImpl thePersonalPackageImpl = (PersonalPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PersonalPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new PersonalPackageImpl());
550
551
    isInited = true;
552
553
    // Initialize simple dependencies
554
    XMLTypePackage.eINSTANCE.eClass();
555
556
    // Create package meta-data objects
557
    thePersonalPackageImpl.createPackageContents();
558
559
    // Initialize created meta-data
560
    thePersonalPackageImpl.initializePackageContents();
561
562
    // Mark meta-data to indicate it can't be changed
563
    thePersonalPackageImpl.freeze();
564
565
    return thePersonalPackageImpl;
566
  }
567
568
569
  /**
570
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.DocumentRoot <em>Document Root</em>}'.
571
   * <!-- begin-user-doc -->
572
   * <!-- end-user-doc -->
573
   * @return the meta object for class '<em>Document Root</em>'.
574
   * @see org.eclipse.emf.test.models.personal.DocumentRoot
575
   * @generated
576
   */
577
  public EClass getDocumentRoot()
578
  {
579
    return documentRootEClass;
580
  }
581
582
  /**
583
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getMixed <em>Mixed</em>}'.
584
   * <!-- begin-user-doc -->
585
   * <!-- end-user-doc -->
586
   * @return the meta object for the attribute list '<em>Mixed</em>'.
587
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getMixed()
588
   * @see #getDocumentRoot()
589
   * @generated
590
   */
591
  public EAttribute getDocumentRoot_Mixed()
592
  {
593
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
594
  }
595
596
  /**
597
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
598
   * <!-- begin-user-doc -->
599
   * <!-- end-user-doc -->
600
   * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
601
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getXMLNSPrefixMap()
602
   * @see #getDocumentRoot()
603
   * @generated
604
   */
605
  public EReference getDocumentRoot_XMLNSPrefixMap()
606
  {
607
    return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
608
  }
609
610
  /**
611
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
612
   * <!-- begin-user-doc -->
613
   * <!-- end-user-doc -->
614
   * @return the meta object for the map '<em>XSI Schema Location</em>'.
615
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getXSISchemaLocation()
616
   * @see #getDocumentRoot()
617
   * @generated
618
   */
619
  public EReference getDocumentRoot_XSISchemaLocation()
620
  {
621
    return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
622
  }
623
624
  /**
625
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getEmail <em>Email</em>}'.
626
   * <!-- begin-user-doc -->
627
   * <!-- end-user-doc -->
628
   * @return the meta object for the attribute '<em>Email</em>'.
629
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getEmail()
630
   * @see #getDocumentRoot()
631
   * @generated
632
   */
633
  public EAttribute getDocumentRoot_Email()
634
  {
635
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3);
636
  }
637
638
  /**
639
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getFamily <em>Family</em>}'.
640
   * <!-- begin-user-doc -->
641
   * <!-- end-user-doc -->
642
   * @return the meta object for the attribute '<em>Family</em>'.
643
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getFamily()
644
   * @see #getDocumentRoot()
645
   * @generated
646
   */
647
  public EAttribute getDocumentRoot_Family()
648
  {
649
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(4);
650
  }
651
652
  /**
653
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getGiven <em>Given</em>}'.
654
   * <!-- begin-user-doc -->
655
   * <!-- end-user-doc -->
656
   * @return the meta object for the attribute '<em>Given</em>'.
657
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getGiven()
658
   * @see #getDocumentRoot()
659
   * @generated
660
   */
661
  public EAttribute getDocumentRoot_Given()
662
  {
663
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(5);
664
  }
665
666
  /**
667
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getLink <em>Link</em>}'.
668
   * <!-- begin-user-doc -->
669
   * <!-- end-user-doc -->
670
   * @return the meta object for the containment reference '<em>Link</em>'.
671
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getLink()
672
   * @see #getDocumentRoot()
673
   * @generated
674
   */
675
  public EReference getDocumentRoot_Link()
676
  {
677
    return (EReference)documentRootEClass.getEStructuralFeatures().get(6);
678
  }
679
680
  /**
681
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getName <em>Name</em>}'.
682
   * <!-- begin-user-doc -->
683
   * <!-- end-user-doc -->
684
   * @return the meta object for the containment reference '<em>Name</em>'.
685
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getName()
686
   * @see #getDocumentRoot()
687
   * @generated
688
   */
689
  public EReference getDocumentRoot_Name()
690
  {
691
    return (EReference)documentRootEClass.getEStructuralFeatures().get(7);
692
  }
693
694
  /**
695
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPerson <em>Person</em>}'.
696
   * <!-- begin-user-doc -->
697
   * <!-- end-user-doc -->
698
   * @return the meta object for the containment reference '<em>Person</em>'.
699
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getPerson()
700
   * @see #getDocumentRoot()
701
   * @generated
702
   */
703
  public EReference getDocumentRoot_Person()
704
  {
705
    return (EReference)documentRootEClass.getEStructuralFeatures().get(8);
706
  }
707
708
  /**
709
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel <em>Personnel</em>}'.
710
   * <!-- begin-user-doc -->
711
   * <!-- end-user-doc -->
712
   * @return the meta object for the containment reference '<em>Personnel</em>'.
713
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel()
714
   * @see #getDocumentRoot()
715
   * @generated
716
   */
717
  public EReference getDocumentRoot_Personnel()
718
  {
719
    return (EReference)documentRootEClass.getEStructuralFeatures().get(9);
720
  }
721
722
  /**
723
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getUrl <em>Url</em>}'.
724
   * <!-- begin-user-doc -->
725
   * <!-- end-user-doc -->
726
   * @return the meta object for the containment reference '<em>Url</em>'.
727
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getUrl()
728
   * @see #getDocumentRoot()
729
   * @generated
730
   */
731
  public EReference getDocumentRoot_Url()
732
  {
733
    return (EReference)documentRootEClass.getEStructuralFeatures().get(10);
734
  }
735
736
  /**
737
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.LinkType <em>Link Type</em>}'.
738
   * <!-- begin-user-doc -->
739
   * <!-- end-user-doc -->
740
   * @return the meta object for class '<em>Link Type</em>'.
741
   * @see org.eclipse.emf.test.models.personal.LinkType
742
   * @generated
743
   */
744
  public EClass getLinkType()
745
  {
746
    return linkTypeEClass;
747
  }
748
749
  /**
750
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.LinkType#getManager <em>Manager</em>}'.
751
   * <!-- begin-user-doc -->
752
   * <!-- end-user-doc -->
753
   * @return the meta object for the attribute '<em>Manager</em>'.
754
   * @see org.eclipse.emf.test.models.personal.LinkType#getManager()
755
   * @see #getLinkType()
756
   * @generated
757
   */
758
  public EAttribute getLinkType_Manager()
759
  {
760
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(0);
761
  }
762
763
  /**
764
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.LinkType#getSubordinates <em>Subordinates</em>}'.
765
   * <!-- begin-user-doc -->
766
   * <!-- end-user-doc -->
767
   * @return the meta object for the attribute '<em>Subordinates</em>'.
768
   * @see org.eclipse.emf.test.models.personal.LinkType#getSubordinates()
769
   * @see #getLinkType()
770
   * @generated
771
   */
772
  public EAttribute getLinkType_Subordinates()
773
  {
774
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(1);
775
  }
776
777
  /**
778
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.NameType <em>Name Type</em>}'.
779
   * <!-- begin-user-doc -->
780
   * <!-- end-user-doc -->
781
   * @return the meta object for class '<em>Name Type</em>'.
782
   * @see org.eclipse.emf.test.models.personal.NameType
783
   * @generated
784
   */
785
  public EClass getNameType()
786
  {
787
    return nameTypeEClass;
788
  }
789
790
  /**
791
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}'.
792
   * <!-- begin-user-doc -->
793
   * <!-- end-user-doc -->
794
   * @return the meta object for the attribute '<em>Family</em>'.
795
   * @see org.eclipse.emf.test.models.personal.NameType#getFamily()
796
   * @see #getNameType()
797
   * @generated
798
   */
799
  public EAttribute getNameType_Family()
800
  {
801
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(0);
802
  }
803
804
  /**
805
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}'.
806
   * <!-- begin-user-doc -->
807
   * <!-- end-user-doc -->
808
   * @return the meta object for the attribute '<em>Given</em>'.
809
   * @see org.eclipse.emf.test.models.personal.NameType#getGiven()
810
   * @see #getNameType()
811
   * @generated
812
   */
813
  public EAttribute getNameType_Given()
814
  {
815
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(1);
816
  }
817
818
  /**
819
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.PersonnelType <em>Personnel Type</em>}'.
820
   * <!-- begin-user-doc -->
821
   * <!-- end-user-doc -->
822
   * @return the meta object for class '<em>Personnel Type</em>'.
823
   * @see org.eclipse.emf.test.models.personal.PersonnelType
824
   * @generated
825
   */
826
  public EClass getPersonnelType()
827
  {
828
    return personnelTypeEClass;
829
  }
830
831
  /**
832
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.PersonnelType#getPerson <em>Person</em>}'.
833
   * <!-- begin-user-doc -->
834
   * <!-- end-user-doc -->
835
   * @return the meta object for the containment reference list '<em>Person</em>'.
836
   * @see org.eclipse.emf.test.models.personal.PersonnelType#getPerson()
837
   * @see #getPersonnelType()
838
   * @generated
839
   */
840
  public EReference getPersonnelType_Person()
841
  {
842
    return (EReference)personnelTypeEClass.getEStructuralFeatures().get(0);
843
  }
844
845
  /**
846
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.PersonType <em>Person Type</em>}'.
847
   * <!-- begin-user-doc -->
848
   * <!-- end-user-doc -->
849
   * @return the meta object for class '<em>Person Type</em>'.
850
   * @see org.eclipse.emf.test.models.personal.PersonType
851
   * @generated
852
   */
853
  public EClass getPersonType()
854
  {
855
    return personTypeEClass;
856
  }
857
858
  /**
859
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.PersonType#getName <em>Name</em>}'.
860
   * <!-- begin-user-doc -->
861
   * <!-- end-user-doc -->
862
   * @return the meta object for the containment reference '<em>Name</em>'.
863
   * @see org.eclipse.emf.test.models.personal.PersonType#getName()
864
   * @see #getPersonType()
865
   * @generated
866
   */
867
  public EReference getPersonType_Name()
868
  {
869
    return (EReference)personTypeEClass.getEStructuralFeatures().get(0);
870
  }
871
872
  /**
873
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.PersonType#getEmail <em>Email</em>}'.
874
   * <!-- begin-user-doc -->
875
   * <!-- end-user-doc -->
876
   * @return the meta object for the attribute list '<em>Email</em>'.
877
   * @see org.eclipse.emf.test.models.personal.PersonType#getEmail()
878
   * @see #getPersonType()
879
   * @generated
880
   */
881
  public EAttribute getPersonType_Email()
882
  {
883
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(1);
884
  }
885
886
  /**
887
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.PersonType#getUrl <em>Url</em>}'.
888
   * <!-- begin-user-doc -->
889
   * <!-- end-user-doc -->
890
   * @return the meta object for the containment reference list '<em>Url</em>'.
891
   * @see org.eclipse.emf.test.models.personal.PersonType#getUrl()
892
   * @see #getPersonType()
893
   * @generated
894
   */
895
  public EReference getPersonType_Url()
896
  {
897
    return (EReference)personTypeEClass.getEStructuralFeatures().get(2);
898
  }
899
900
  /**
901
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.PersonType#getLink <em>Link</em>}'.
902
   * <!-- begin-user-doc -->
903
   * <!-- end-user-doc -->
904
   * @return the meta object for the containment reference '<em>Link</em>'.
905
   * @see org.eclipse.emf.test.models.personal.PersonType#getLink()
906
   * @see #getPersonType()
907
   * @generated
908
   */
909
  public EReference getPersonType_Link()
910
  {
911
    return (EReference)personTypeEClass.getEStructuralFeatures().get(3);
912
  }
913
914
  /**
915
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}'.
916
   * <!-- begin-user-doc -->
917
   * <!-- end-user-doc -->
918
   * @return the meta object for the attribute '<em>Contr</em>'.
919
   * @see org.eclipse.emf.test.models.personal.PersonType#getContr()
920
   * @see #getPersonType()
921
   * @generated
922
   */
923
  public EAttribute getPersonType_Contr()
924
  {
925
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(4);
926
  }
927
928
  /**
929
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getId <em>Id</em>}'.
930
   * <!-- begin-user-doc -->
931
   * <!-- end-user-doc -->
932
   * @return the meta object for the attribute '<em>Id</em>'.
933
   * @see org.eclipse.emf.test.models.personal.PersonType#getId()
934
   * @see #getPersonType()
935
   * @generated
936
   */
937
  public EAttribute getPersonType_Id()
938
  {
939
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(5);
940
  }
941
942
  /**
943
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getSalary <em>Salary</em>}'.
944
   * <!-- begin-user-doc -->
945
   * <!-- end-user-doc -->
946
   * @return the meta object for the attribute '<em>Salary</em>'.
947
   * @see org.eclipse.emf.test.models.personal.PersonType#getSalary()
948
   * @see #getPersonType()
949
   * @generated
950
   */
951
  public EAttribute getPersonType_Salary()
952
  {
953
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(6);
954
  }
955
956
  /**
957
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.UrlType <em>Url Type</em>}'.
958
   * <!-- begin-user-doc -->
959
   * <!-- end-user-doc -->
960
   * @return the meta object for class '<em>Url Type</em>'.
961
   * @see org.eclipse.emf.test.models.personal.UrlType
962
   * @generated
963
   */
964
  public EClass getUrlType()
965
  {
966
    return urlTypeEClass;
967
  }
968
969
  /**
970
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}'.
971
   * <!-- begin-user-doc -->
972
   * <!-- end-user-doc -->
973
   * @return the meta object for the attribute '<em>Href</em>'.
974
   * @see org.eclipse.emf.test.models.personal.UrlType#getHref()
975
   * @see #getUrlType()
976
   * @generated
977
   */
978
  public EAttribute getUrlType_Href()
979
  {
980
    return (EAttribute)urlTypeEClass.getEStructuralFeatures().get(0);
981
  }
982
983
  /**
984
   * Returns the meta object for enum '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}'.
985
   * <!-- begin-user-doc -->
986
   * <!-- end-user-doc -->
987
   * @return the meta object for enum '<em>Contr Type</em>'.
988
   * @see org.eclipse.emf.test.models.personal.ContrType
989
   * @generated
990
   */
991
  public EEnum getContrType()
992
  {
993
    return contrTypeEEnum;
994
  }
995
996
  /**
997
   * Returns the meta object for data type '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type Object</em>}'.
998
   * <!-- begin-user-doc -->
999
   * <!-- end-user-doc -->
1000
   * @return the meta object for data type '<em>Contr Type Object</em>'.
1001
   * @see org.eclipse.emf.test.models.personal.ContrType
1002
   * @model instanceClass="org.eclipse.emf.test.models.personal.ContrType"
1003
   *        extendedMetaData="name='contr_._type:Object' baseType='contr_._type'"
1004
   * @generated
1005
   */
1006
  public EDataType getContrTypeObject()
1007
  {
1008
    return contrTypeObjectEDataType;
1009
  }
1010
1011
  /**
1012
   * Returns the factory that creates the instances of the model.
1013
   * <!-- begin-user-doc -->
1014
   * <!-- end-user-doc -->
1015
   * @return the factory that creates the instances of the model.
1016
   * @generated
1017
   */
1018
  public PersonalFactory getPersonalFactory()
1019
  {
1020
    return (PersonalFactory)getEFactoryInstance();
1021
  }
1022
1023
  /**
1024
   * <!-- begin-user-doc -->
1025
   * <!-- end-user-doc -->
1026
   * @generated
1027
   */
1028
  private boolean isCreated = false;
1029
1030
  /**
1031
   * Creates the meta-model objects for the package.  This method is
1032
   * guarded to have no affect on any invocation but its first.
1033
   * <!-- begin-user-doc -->
1034
   * <!-- end-user-doc -->
1035
   * @generated
1036
   */
1037
  public void createPackageContents()
1038
  {
1039
    if (isCreated) return;
1040
    isCreated = true;
1041
1042
    // Create classes and their features
1043
    documentRootEClass = createEClass(DOCUMENT_ROOT);
1044
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
1045
    createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
1046
    createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
1047
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__EMAIL);
1048
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__FAMILY);
1049
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__GIVEN);
1050
    createEReference(documentRootEClass, DOCUMENT_ROOT__LINK);
1051
    createEReference(documentRootEClass, DOCUMENT_ROOT__NAME);
1052
    createEReference(documentRootEClass, DOCUMENT_ROOT__PERSON);
1053
    createEReference(documentRootEClass, DOCUMENT_ROOT__PERSONNEL);
1054
    createEReference(documentRootEClass, DOCUMENT_ROOT__URL);
1055
1056
    linkTypeEClass = createEClass(LINK_TYPE);
1057
    createEAttribute(linkTypeEClass, LINK_TYPE__MANAGER);
1058
    createEAttribute(linkTypeEClass, LINK_TYPE__SUBORDINATES);
1059
1060
    nameTypeEClass = createEClass(NAME_TYPE);
1061
    createEAttribute(nameTypeEClass, NAME_TYPE__FAMILY);
1062
    createEAttribute(nameTypeEClass, NAME_TYPE__GIVEN);
1063
1064
    personnelTypeEClass = createEClass(PERSONNEL_TYPE);
1065
    createEReference(personnelTypeEClass, PERSONNEL_TYPE__PERSON);
1066
1067
    personTypeEClass = createEClass(PERSON_TYPE);
1068
    createEReference(personTypeEClass, PERSON_TYPE__NAME);
1069
    createEAttribute(personTypeEClass, PERSON_TYPE__EMAIL);
1070
    createEReference(personTypeEClass, PERSON_TYPE__URL);
1071
    createEReference(personTypeEClass, PERSON_TYPE__LINK);
1072
    createEAttribute(personTypeEClass, PERSON_TYPE__CONTR);
1073
    createEAttribute(personTypeEClass, PERSON_TYPE__ID);
1074
    createEAttribute(personTypeEClass, PERSON_TYPE__SALARY);
1075
1076
    urlTypeEClass = createEClass(URL_TYPE);
1077
    createEAttribute(urlTypeEClass, URL_TYPE__HREF);
1078
1079
    // Create enums
1080
    contrTypeEEnum = createEEnum(CONTR_TYPE);
1081
1082
    // Create data types
1083
    contrTypeObjectEDataType = createEDataType(CONTR_TYPE_OBJECT);
1084
  }
1085
1086
  /**
1087
   * <!-- begin-user-doc -->
1088
   * <!-- end-user-doc -->
1089
   * @generated
1090
   */
1091
  private boolean isInitialized = false;
1092
1093
  /**
1094
   * Complete the initialization of the package and its meta-model.  This
1095
   * method is guarded to have no affect on any invocation but its first.
1096
   * <!-- begin-user-doc -->
1097
   * <!-- end-user-doc -->
1098
   * @generated
1099
   */
1100
  public void initializePackageContents()
1101
  {
1102
    if (isInitialized) return;
1103
    isInitialized = true;
1104
1105
    // Initialize package
1106
    setName(eNAME);
1107
    setNsPrefix(eNS_PREFIX);
1108
    setNsURI(eNS_URI);
1109
1110
    // Obtain other dependent packages
1111
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
1112
1113
    // Create type parameters
1114
1115
    // Set bounds for type parameters
1116
1117
    // Add supertypes to classes
1118
1119
    // Initialize classes and features; add operations and parameters
1120
    initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1121
    initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1122
    initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1123
    initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1124
    initEAttribute(getDocumentRoot_Email(), theXMLTypePackage.getString(), "email", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1125
    initEAttribute(getDocumentRoot_Family(), theXMLTypePackage.getString(), "family", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1126
    initEAttribute(getDocumentRoot_Given(), theXMLTypePackage.getString(), "given", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1127
    initEReference(getDocumentRoot_Link(), this.getLinkType(), null, "link", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1128
    initEReference(getDocumentRoot_Name(), this.getNameType(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1129
    initEReference(getDocumentRoot_Person(), this.getPersonType(), null, "person", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1130
    initEReference(getDocumentRoot_Personnel(), this.getPersonnelType(), null, "personnel", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1131
    initEReference(getDocumentRoot_Url(), this.getUrlType(), null, "url", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1132
1133
    initEClass(linkTypeEClass, LinkType.class, "LinkType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1134
    initEAttribute(getLinkType_Manager(), theXMLTypePackage.getIDREF(), "manager", null, 0, 1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1135
    initEAttribute(getLinkType_Subordinates(), theXMLTypePackage.getIDREFS(), "subordinates", null, 0, 1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1136
1137
    initEClass(nameTypeEClass, NameType.class, "NameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1138
    initEAttribute(getNameType_Family(), theXMLTypePackage.getString(), "family", null, 1, 1, NameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1139
    initEAttribute(getNameType_Given(), theXMLTypePackage.getString(), "given", null, 1, 1, NameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1140
1141
    initEClass(personnelTypeEClass, PersonnelType.class, "PersonnelType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1142
    initEReference(getPersonnelType_Person(), this.getPersonType(), null, "person", null, 1, -1, PersonnelType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1143
1144
    initEClass(personTypeEClass, PersonType.class, "PersonType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1145
    initEReference(getPersonType_Name(), this.getNameType(), null, "name", null, 1, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1146
    initEAttribute(getPersonType_Email(), theXMLTypePackage.getString(), "email", null, 0, -1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1147
    initEReference(getPersonType_Url(), this.getUrlType(), null, "url", null, 0, -1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1148
    initEReference(getPersonType_Link(), this.getLinkType(), null, "link", null, 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1149
    initEAttribute(getPersonType_Contr(), this.getContrType(), "contr", "false", 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1150
    initEAttribute(getPersonType_Id(), theXMLTypePackage.getID(), "id", null, 1, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1151
    initEAttribute(getPersonType_Salary(), theXMLTypePackage.getInteger(), "salary", null, 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1152
1153
    initEClass(urlTypeEClass, UrlType.class, "UrlType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1154
    initEAttribute(getUrlType_Href(), theXMLTypePackage.getString(), "href", "http://", 0, 1, UrlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1155
1156
    // Initialize enums and add enum literals
1157
    initEEnum(contrTypeEEnum, ContrType.class, "ContrType");
1158
    addEEnumLiteral(contrTypeEEnum, ContrType.TRUE);
1159
    addEEnumLiteral(contrTypeEEnum, ContrType.FALSE);
1160
1161
    // Initialize data types
1162
    initEDataType(contrTypeObjectEDataType, ContrType.class, "ContrTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
1163
1164
    // Create resource
1165
    createResource(eNS_URI);
1166
1167
    // Create annotations
1168
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
1169
    createExtendedMetaDataAnnotations();
1170
  }
1171
1172
  /**
1173
   * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
1174
   * <!-- begin-user-doc -->
1175
   * <!-- end-user-doc -->
1176
   * @generated
1177
   */
1178
  protected void createExtendedMetaDataAnnotations()
1179
  {
1180
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";		
1181
    addAnnotation
1182
      (contrTypeEEnum, 
1183
       source, 
1184
       new String[] 
1185
       {
1186
       "name", "contr_._type"
1187
       });		
1188
    addAnnotation
1189
      (contrTypeObjectEDataType, 
1190
       source, 
1191
       new String[] 
1192
       {
1193
       "name", "contr_._type:Object",
1194
       "baseType", "contr_._type"
1195
       });		
1196
    addAnnotation
1197
      (documentRootEClass, 
1198
       source, 
1199
       new String[] 
1200
       {
1201
       "name", "",
1202
       "kind", "mixed"
1203
       });		
1204
    addAnnotation
1205
      (getDocumentRoot_Mixed(), 
1206
       source, 
1207
       new String[] 
1208
       {
1209
       "kind", "elementWildcard",
1210
       "name", ":mixed"
1211
       });		
1212
    addAnnotation
1213
      (getDocumentRoot_XMLNSPrefixMap(), 
1214
       source, 
1215
       new String[] 
1216
       {
1217
       "kind", "attribute",
1218
       "name", "xmlns:prefix"
1219
       });		
1220
    addAnnotation
1221
      (getDocumentRoot_XSISchemaLocation(), 
1222
       source, 
1223
       new String[] 
1224
       {
1225
       "kind", "attribute",
1226
       "name", "xsi:schemaLocation"
1227
       });		
1228
    addAnnotation
1229
      (getDocumentRoot_Email(), 
1230
       source, 
1231
       new String[] 
1232
       {
1233
       "kind", "element",
1234
       "name", "email",
1235
       "namespace", "##targetNamespace"
1236
       });		
1237
    addAnnotation
1238
      (getDocumentRoot_Family(), 
1239
       source, 
1240
       new String[] 
1241
       {
1242
       "kind", "element",
1243
       "name", "family",
1244
       "namespace", "##targetNamespace"
1245
       });		
1246
    addAnnotation
1247
      (getDocumentRoot_Given(), 
1248
       source, 
1249
       new String[] 
1250
       {
1251
       "kind", "element",
1252
       "name", "given",
1253
       "namespace", "##targetNamespace"
1254
       });		
1255
    addAnnotation
1256
      (getDocumentRoot_Link(), 
1257
       source, 
1258
       new String[] 
1259
       {
1260
       "kind", "element",
1261
       "name", "link",
1262
       "namespace", "##targetNamespace"
1263
       });		
1264
    addAnnotation
1265
      (getDocumentRoot_Name(), 
1266
       source, 
1267
       new String[] 
1268
       {
1269
       "kind", "element",
1270
       "name", "name",
1271
       "namespace", "##targetNamespace"
1272
       });		
1273
    addAnnotation
1274
      (getDocumentRoot_Person(), 
1275
       source, 
1276
       new String[] 
1277
       {
1278
       "kind", "element",
1279
       "name", "person",
1280
       "namespace", "##targetNamespace"
1281
       });		
1282
    addAnnotation
1283
      (getDocumentRoot_Personnel(), 
1284
       source, 
1285
       new String[] 
1286
       {
1287
       "kind", "element",
1288
       "name", "personnel",
1289
       "namespace", "##targetNamespace"
1290
       });		
1291
    addAnnotation
1292
      (getDocumentRoot_Url(), 
1293
       source, 
1294
       new String[] 
1295
       {
1296
       "kind", "element",
1297
       "name", "url",
1298
       "namespace", "##targetNamespace"
1299
       });		
1300
    addAnnotation
1301
      (linkTypeEClass, 
1302
       source, 
1303
       new String[] 
1304
       {
1305
       "name", "linkType",
1306
       "kind", "empty"
1307
       });		
1308
    addAnnotation
1309
      (getLinkType_Manager(), 
1310
       source, 
1311
       new String[] 
1312
       {
1313
       "kind", "attribute",
1314
       "name", "manager"
1315
       });		
1316
    addAnnotation
1317
      (getLinkType_Subordinates(), 
1318
       source, 
1319
       new String[] 
1320
       {
1321
       "kind", "attribute",
1322
       "name", "subordinates"
1323
       });		
1324
    addAnnotation
1325
      (nameTypeEClass, 
1326
       source, 
1327
       new String[] 
1328
       {
1329
       "name", "nameType",
1330
       "kind", "elementOnly"
1331
       });		
1332
    addAnnotation
1333
      (getNameType_Family(), 
1334
       source, 
1335
       new String[] 
1336
       {
1337
       "kind", "element",
1338
       "name", "family",
1339
       "namespace", "##targetNamespace"
1340
       });		
1341
    addAnnotation
1342
      (getNameType_Given(), 
1343
       source, 
1344
       new String[] 
1345
       {
1346
       "kind", "element",
1347
       "name", "given",
1348
       "namespace", "##targetNamespace"
1349
       });		
1350
    addAnnotation
1351
      (personnelTypeEClass, 
1352
       source, 
1353
       new String[] 
1354
       {
1355
       "name", "personnel_._type",
1356
       "kind", "elementOnly"
1357
       });		
1358
    addAnnotation
1359
      (getPersonnelType_Person(), 
1360
       source, 
1361
       new String[] 
1362
       {
1363
       "kind", "element",
1364
       "name", "person",
1365
       "namespace", "##targetNamespace"
1366
       });		
1367
    addAnnotation
1368
      (personTypeEClass, 
1369
       source, 
1370
       new String[] 
1371
       {
1372
       "name", "personType",
1373
       "kind", "elementOnly"
1374
       });		
1375
    addAnnotation
1376
      (getPersonType_Name(), 
1377
       source, 
1378
       new String[] 
1379
       {
1380
       "kind", "element",
1381
       "name", "name",
1382
       "namespace", "##targetNamespace"
1383
       });		
1384
    addAnnotation
1385
      (getPersonType_Email(), 
1386
       source, 
1387
       new String[] 
1388
       {
1389
       "kind", "element",
1390
       "name", "email",
1391
       "namespace", "##targetNamespace"
1392
       });		
1393
    addAnnotation
1394
      (getPersonType_Url(), 
1395
       source, 
1396
       new String[] 
1397
       {
1398
       "kind", "element",
1399
       "name", "url",
1400
       "namespace", "##targetNamespace"
1401
       });		
1402
    addAnnotation
1403
      (getPersonType_Link(), 
1404
       source, 
1405
       new String[] 
1406
       {
1407
       "kind", "element",
1408
       "name", "link",
1409
       "namespace", "##targetNamespace"
1410
       });		
1411
    addAnnotation
1412
      (getPersonType_Contr(), 
1413
       source, 
1414
       new String[] 
1415
       {
1416
       "kind", "attribute",
1417
       "name", "contr"
1418
       });		
1419
    addAnnotation
1420
      (getPersonType_Id(), 
1421
       source, 
1422
       new String[] 
1423
       {
1424
       "kind", "attribute",
1425
       "name", "id"
1426
       });		
1427
    addAnnotation
1428
      (getPersonType_Salary(), 
1429
       source, 
1430
       new String[] 
1431
       {
1432
       "kind", "attribute",
1433
       "name", "salary"
1434
       });		
1435
    addAnnotation
1436
      (urlTypeEClass, 
1437
       source, 
1438
       new String[] 
1439
       {
1440
       "name", "url_._type",
1441
       "kind", "empty"
1442
       });		
1443
    addAnnotation
1444
      (getUrlType_Href(), 
1445
       source, 
1446
       new String[] 
1447
       {
1448
       "kind", "attribute",
1449
       "name", "href"
1450
       });
1451
  }
1452
1453
  /**
1454
   * <!-- begin-user-doc -->
1455
   * Defines literals for the meta objects that represent
1456
   * <ul>
1457
   *   <li>each class,</li>
1458
   *   <li>each feature of each class,</li>
1459
   *   <li>each enum,</li>
1460
   *   <li>and each data type</li>
1461
   * </ul>
1462
   * <!-- end-user-doc -->
1463
   * @generated
1464
   */
1465
  public interface Literals
1466
  {
1467
    /**
1468
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl <em>Document Root</em>}' class.
1469
     * <!-- begin-user-doc -->
1470
     * <!-- end-user-doc -->
1471
     * @see org.eclipse.emf.test.models.personal.impl.DocumentRootImpl
1472
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getDocumentRoot()
1473
     * @generated
1474
     */
1475
    public static final EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
1476
1477
    /**
1478
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1479
     * <!-- begin-user-doc -->
1480
     * <!-- end-user-doc -->
1481
     * @generated
1482
     */
1483
    public static final EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
1484
1485
    /**
1486
     * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature.
1487
     * <!-- begin-user-doc -->
1488
     * <!-- end-user-doc -->
1489
     * @generated
1490
     */
1491
    public static final EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
1492
1493
    /**
1494
     * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature.
1495
     * <!-- begin-user-doc -->
1496
     * <!-- end-user-doc -->
1497
     * @generated
1498
     */
1499
    public static final EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation();
1500
1501
    /**
1502
     * The meta object literal for the '<em><b>Email</b></em>' attribute feature.
1503
     * <!-- begin-user-doc -->
1504
     * <!-- end-user-doc -->
1505
     * @generated
1506
     */
1507
    public static final EAttribute DOCUMENT_ROOT__EMAIL = eINSTANCE.getDocumentRoot_Email();
1508
1509
    /**
1510
     * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
1511
     * <!-- begin-user-doc -->
1512
     * <!-- end-user-doc -->
1513
     * @generated
1514
     */
1515
    public static final EAttribute DOCUMENT_ROOT__FAMILY = eINSTANCE.getDocumentRoot_Family();
1516
1517
    /**
1518
     * The meta object literal for the '<em><b>Given</b></em>' attribute feature.
1519
     * <!-- begin-user-doc -->
1520
     * <!-- end-user-doc -->
1521
     * @generated
1522
     */
1523
    public static final EAttribute DOCUMENT_ROOT__GIVEN = eINSTANCE.getDocumentRoot_Given();
1524
1525
    /**
1526
     * The meta object literal for the '<em><b>Link</b></em>' containment reference feature.
1527
     * <!-- begin-user-doc -->
1528
     * <!-- end-user-doc -->
1529
     * @generated
1530
     */
1531
    public static final EReference DOCUMENT_ROOT__LINK = eINSTANCE.getDocumentRoot_Link();
1532
1533
    /**
1534
     * The meta object literal for the '<em><b>Name</b></em>' containment reference feature.
1535
     * <!-- begin-user-doc -->
1536
     * <!-- end-user-doc -->
1537
     * @generated
1538
     */
1539
    public static final EReference DOCUMENT_ROOT__NAME = eINSTANCE.getDocumentRoot_Name();
1540
1541
    /**
1542
     * The meta object literal for the '<em><b>Person</b></em>' containment reference feature.
1543
     * <!-- begin-user-doc -->
1544
     * <!-- end-user-doc -->
1545
     * @generated
1546
     */
1547
    public static final EReference DOCUMENT_ROOT__PERSON = eINSTANCE.getDocumentRoot_Person();
1548
1549
    /**
1550
     * The meta object literal for the '<em><b>Personnel</b></em>' containment reference feature.
1551
     * <!-- begin-user-doc -->
1552
     * <!-- end-user-doc -->
1553
     * @generated
1554
     */
1555
    public static final EReference DOCUMENT_ROOT__PERSONNEL = eINSTANCE.getDocumentRoot_Personnel();
1556
1557
    /**
1558
     * The meta object literal for the '<em><b>Url</b></em>' containment reference feature.
1559
     * <!-- begin-user-doc -->
1560
     * <!-- end-user-doc -->
1561
     * @generated
1562
     */
1563
    public static final EReference DOCUMENT_ROOT__URL = eINSTANCE.getDocumentRoot_Url();
1564
1565
    /**
1566
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl <em>Link Type</em>}' class.
1567
     * <!-- begin-user-doc -->
1568
     * <!-- end-user-doc -->
1569
     * @see org.eclipse.emf.test.models.personal.impl.LinkTypeImpl
1570
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getLinkType()
1571
     * @generated
1572
     */
1573
    public static final EClass LINK_TYPE = eINSTANCE.getLinkType();
1574
1575
    /**
1576
     * The meta object literal for the '<em><b>Manager</b></em>' attribute feature.
1577
     * <!-- begin-user-doc -->
1578
     * <!-- end-user-doc -->
1579
     * @generated
1580
     */
1581
    public static final EAttribute LINK_TYPE__MANAGER = eINSTANCE.getLinkType_Manager();
1582
1583
    /**
1584
     * The meta object literal for the '<em><b>Subordinates</b></em>' attribute feature.
1585
     * <!-- begin-user-doc -->
1586
     * <!-- end-user-doc -->
1587
     * @generated
1588
     */
1589
    public static final EAttribute LINK_TYPE__SUBORDINATES = eINSTANCE.getLinkType_Subordinates();
1590
1591
    /**
1592
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl <em>Name Type</em>}' class.
1593
     * <!-- begin-user-doc -->
1594
     * <!-- end-user-doc -->
1595
     * @see org.eclipse.emf.test.models.personal.impl.NameTypeImpl
1596
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getNameType()
1597
     * @generated
1598
     */
1599
    public static final EClass NAME_TYPE = eINSTANCE.getNameType();
1600
1601
    /**
1602
     * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
1603
     * <!-- begin-user-doc -->
1604
     * <!-- end-user-doc -->
1605
     * @generated
1606
     */
1607
    public static final EAttribute NAME_TYPE__FAMILY = eINSTANCE.getNameType_Family();
1608
1609
    /**
1610
     * The meta object literal for the '<em><b>Given</b></em>' attribute feature.
1611
     * <!-- begin-user-doc -->
1612
     * <!-- end-user-doc -->
1613
     * @generated
1614
     */
1615
    public static final EAttribute NAME_TYPE__GIVEN = eINSTANCE.getNameType_Given();
1616
1617
    /**
1618
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class.
1619
     * <!-- begin-user-doc -->
1620
     * <!-- end-user-doc -->
1621
     * @see org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl
1622
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonnelType()
1623
     * @generated
1624
     */
1625
    public static final EClass PERSONNEL_TYPE = eINSTANCE.getPersonnelType();
1626
1627
    /**
1628
     * The meta object literal for the '<em><b>Person</b></em>' containment reference list feature.
1629
     * <!-- begin-user-doc -->
1630
     * <!-- end-user-doc -->
1631
     * @generated
1632
     */
1633
    public static final EReference PERSONNEL_TYPE__PERSON = eINSTANCE.getPersonnelType_Person();
1634
1635
    /**
1636
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl <em>Person Type</em>}' class.
1637
     * <!-- begin-user-doc -->
1638
     * <!-- end-user-doc -->
1639
     * @see org.eclipse.emf.test.models.personal.impl.PersonTypeImpl
1640
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonType()
1641
     * @generated
1642
     */
1643
    public static final EClass PERSON_TYPE = eINSTANCE.getPersonType();
1644
1645
    /**
1646
     * The meta object literal for the '<em><b>Name</b></em>' containment reference feature.
1647
     * <!-- begin-user-doc -->
1648
     * <!-- end-user-doc -->
1649
     * @generated
1650
     */
1651
    public static final EReference PERSON_TYPE__NAME = eINSTANCE.getPersonType_Name();
1652
1653
    /**
1654
     * The meta object literal for the '<em><b>Email</b></em>' attribute list feature.
1655
     * <!-- begin-user-doc -->
1656
     * <!-- end-user-doc -->
1657
     * @generated
1658
     */
1659
    public static final EAttribute PERSON_TYPE__EMAIL = eINSTANCE.getPersonType_Email();
1660
1661
    /**
1662
     * The meta object literal for the '<em><b>Url</b></em>' containment reference list feature.
1663
     * <!-- begin-user-doc -->
1664
     * <!-- end-user-doc -->
1665
     * @generated
1666
     */
1667
    public static final EReference PERSON_TYPE__URL = eINSTANCE.getPersonType_Url();
1668
1669
    /**
1670
     * The meta object literal for the '<em><b>Link</b></em>' containment reference feature.
1671
     * <!-- begin-user-doc -->
1672
     * <!-- end-user-doc -->
1673
     * @generated
1674
     */
1675
    public static final EReference PERSON_TYPE__LINK = eINSTANCE.getPersonType_Link();
1676
1677
    /**
1678
     * The meta object literal for the '<em><b>Contr</b></em>' attribute feature.
1679
     * <!-- begin-user-doc -->
1680
     * <!-- end-user-doc -->
1681
     * @generated
1682
     */
1683
    public static final EAttribute PERSON_TYPE__CONTR = eINSTANCE.getPersonType_Contr();
1684
1685
    /**
1686
     * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
1687
     * <!-- begin-user-doc -->
1688
     * <!-- end-user-doc -->
1689
     * @generated
1690
     */
1691
    public static final EAttribute PERSON_TYPE__ID = eINSTANCE.getPersonType_Id();
1692
1693
    /**
1694
     * The meta object literal for the '<em><b>Salary</b></em>' attribute feature.
1695
     * <!-- begin-user-doc -->
1696
     * <!-- end-user-doc -->
1697
     * @generated
1698
     */
1699
    public static final EAttribute PERSON_TYPE__SALARY = eINSTANCE.getPersonType_Salary();
1700
1701
    /**
1702
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl <em>Url Type</em>}' class.
1703
     * <!-- begin-user-doc -->
1704
     * <!-- end-user-doc -->
1705
     * @see org.eclipse.emf.test.models.personal.impl.UrlTypeImpl
1706
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getUrlType()
1707
     * @generated
1708
     */
1709
    public static final EClass URL_TYPE = eINSTANCE.getUrlType();
1710
1711
    /**
1712
     * The meta object literal for the '<em><b>Href</b></em>' attribute feature.
1713
     * <!-- begin-user-doc -->
1714
     * <!-- end-user-doc -->
1715
     * @generated
1716
     */
1717
    public static final EAttribute URL_TYPE__HREF = eINSTANCE.getUrlType_Href();
1718
1719
    /**
1720
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}' enum.
1721
     * <!-- begin-user-doc -->
1722
     * <!-- end-user-doc -->
1723
     * @see org.eclipse.emf.test.models.personal.ContrType
1724
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrType()
1725
     * @generated
1726
     */
1727
    public static final EEnum CONTR_TYPE = eINSTANCE.getContrType();
1728
1729
    /**
1730
     * The meta object literal for the '<em>Contr Type Object</em>' data type.
1731
     * <!-- begin-user-doc -->
1732
     * <!-- end-user-doc -->
1733
     * @see org.eclipse.emf.test.models.personal.ContrType
1734
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrTypeObject()
1735
     * @generated
1736
     */
1737
    public static final EDataType CONTR_TYPE_OBJECT = eINSTANCE.getContrTypeObject();
1738
1739
  }
1740
1741
} //PersonalPackageImpl
(-)src/org/eclipse/emf/test/models/personal/UrlType.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UrlType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Url Type</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @model extendedMetaData="name='url_._type' kind='empty'"
33
 * @generated
34
 */
35
public interface UrlType
36
{
37
  /**
38
   * Returns the value of the '<em><b>Href</b></em>' attribute.
39
   * The default value is <code>"http://"</code>.
40
   * <!-- begin-user-doc -->
41
   * <p>
42
   * If the meaning of the '<em>Href</em>' attribute isn't clear,
43
   * there really should be more of a description here...
44
   * </p>
45
   * <!-- end-user-doc -->
46
   * @return the value of the '<em>Href</em>' attribute.
47
   * @see #isSetHref()
48
   * @see #unsetHref()
49
   * @see #setHref(String)
50
   * @model default="http://" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
51
   *        extendedMetaData="kind='attribute' name='href'"
52
   * @generated
53
   */
54
  String getHref();
55
56
  /**
57
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute.
58
   * <!-- begin-user-doc -->
59
   * <!-- end-user-doc -->
60
   * @param value the new value of the '<em>Href</em>' attribute.
61
   * @see #isSetHref()
62
   * @see #unsetHref()
63
   * @see #getHref()
64
   * @generated
65
   */
66
  void setHref(String value);
67
68
  /**
69
   * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute.
70
   * <!-- begin-user-doc -->
71
   * <!-- end-user-doc -->
72
   * @see #isSetHref()
73
   * @see #getHref()
74
   * @see #setHref(String)
75
   * @generated
76
   */
77
  void unsetHref();
78
79
  /**
80
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute is set.
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @return whether the value of the '<em>Href</em>' attribute is set.
84
   * @see #unsetHref()
85
   * @see #getHref()
86
   * @see #setHref(String)
87
   * @generated
88
   */
89
  boolean isSetHref();
90
91
} // UrlType
(-)src/org/eclipse/emf/test/models/personal/PersonalFactory.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalFactory.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Factory</b> for the model.
23
 * It provides a create method for each non-abstract class of the model.
24
 * <!-- end-user-doc -->
25
 * @generated
26
 */
27
public interface PersonalFactory
28
{
29
  /**
30
   * The singleton instance of the factory.
31
   * <!-- begin-user-doc -->
32
   * <!-- end-user-doc -->
33
   * @generated
34
   */
35
  PersonalFactory INSTANCE = org.eclipse.emf.test.models.personal.impl.PersonalFactoryImpl.eINSTANCE;
36
37
  /**
38
   * Returns a new object of class '<em>Document Root</em>'.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @return a new object of class '<em>Document Root</em>'.
42
   * @generated
43
   */
44
  DocumentRoot createDocumentRoot();
45
46
  /**
47
   * Returns a new object of class '<em>Link Type</em>'.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @return a new object of class '<em>Link Type</em>'.
51
   * @generated
52
   */
53
  LinkType createLinkType();
54
55
  /**
56
   * Returns a new object of class '<em>Name Type</em>'.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @return a new object of class '<em>Name Type</em>'.
60
   * @generated
61
   */
62
  NameType createNameType();
63
64
  /**
65
   * Returns a new object of class '<em>Personnel Type</em>'.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @return a new object of class '<em>Personnel Type</em>'.
69
   * @generated
70
   */
71
  PersonnelType createPersonnelType();
72
73
  /**
74
   * Returns a new object of class '<em>Person Type</em>'.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @return a new object of class '<em>Person Type</em>'.
78
   * @generated
79
   */
80
  PersonType createPersonType();
81
82
  /**
83
   * Returns a new object of class '<em>Url Type</em>'.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @return a new object of class '<em>Url Type</em>'.
87
   * @generated
88
   */
89
  UrlType createUrlType();
90
91
} //PersonalFactory
(-)src/org/eclipse/emf/test/models/personal/NameType.java (-90 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: NameType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Name Type</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}</li>
29
 *   <li>{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}</li>
30
 * </ul>
31
 * </p>
32
 *
33
 * @model extendedMetaData="name='nameType' kind='elementOnly'"
34
 * @generated
35
 */
36
public interface NameType
37
{
38
  /**
39
   * Returns the value of the '<em><b>Family</b></em>' attribute.
40
   * <!-- begin-user-doc -->
41
   * <p>
42
   * If the meaning of the '<em>Family</em>' attribute isn't clear,
43
   * there really should be more of a description here...
44
   * </p>
45
   * <!-- end-user-doc -->
46
   * @return the value of the '<em>Family</em>' attribute.
47
   * @see #setFamily(String)
48
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
49
   *        extendedMetaData="kind='element' name='family' namespace='##targetNamespace'"
50
   * @generated
51
   */
52
  String getFamily();
53
54
  /**
55
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}' attribute.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @param value the new value of the '<em>Family</em>' attribute.
59
   * @see #getFamily()
60
   * @generated
61
   */
62
  void setFamily(String value);
63
64
  /**
65
   * Returns the value of the '<em><b>Given</b></em>' attribute.
66
   * <!-- begin-user-doc -->
67
   * <p>
68
   * If the meaning of the '<em>Given</em>' attribute isn't clear,
69
   * there really should be more of a description here...
70
   * </p>
71
   * <!-- end-user-doc -->
72
   * @return the value of the '<em>Given</em>' attribute.
73
   * @see #setGiven(String)
74
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
75
   *        extendedMetaData="kind='element' name='given' namespace='##targetNamespace'"
76
   * @generated
77
   */
78
  String getGiven();
79
80
  /**
81
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}' attribute.
82
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
84
   * @param value the new value of the '<em>Given</em>' attribute.
85
   * @see #getGiven()
86
   * @generated
87
   */
88
  void setGiven(String value);
89
90
} // NameType
(-)src/org/eclipse/emf/test/models/personal/mixed/util/MixedAdapterFactory.java (-248 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.util;
18
19
import org.eclipse.emf.common.notify.Adapter;
20
import org.eclipse.emf.common.notify.Notifier;
21
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
24
import org.eclipse.emf.ecore.EObject;
25
26
import org.eclipse.emf.test.models.personal.mixed.*;
27
28
import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * The <b>Adapter Factory</b> for the model.
33
 * It provides an adapter <code>createXXX</code> method for each class of the model.
34
 * <!-- end-user-doc -->
35
 * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl
36
 * @generated
37
 */
38
public class MixedAdapterFactory extends AdapterFactoryImpl
39
{
40
  /**
41
   * The cached model package.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  protected static MixedPackageImpl modelPackage;
47
48
  /**
49
   * Creates an instance of the adapter factory.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public MixedAdapterFactory()
55
  {
56
    if (modelPackage == null)
57
    {
58
      modelPackage = MixedPackageImpl.eINSTANCE;
59
    }
60
  }
61
62
  /**
63
   * Returns whether this factory is applicable for the type of the object.
64
   * <!-- begin-user-doc -->
65
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66
   * <!-- end-user-doc -->
67
   * @return whether this factory is applicable for the type of the object.
68
   * @generated
69
   */
70
  @Override
71
  public boolean isFactoryForType(Object object)
72
  {
73
    if (object == modelPackage)
74
    {
75
      return true;
76
    }
77
    if (object instanceof EObject)
78
    {
79
      return ((EObject)object).eClass().getEPackage() == modelPackage;
80
    }
81
    return false;
82
  }
83
84
  /**
85
   * The switch that delegates to the <code>createXXX</code> methods.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  protected MixedSwitch<Adapter> modelSwitch =
91
    new MixedSwitch<Adapter>()
92
    {
93
      @Override
94
      public Adapter caseDocumentRoot(DocumentRoot object)
95
      {
96
        return createDocumentRootAdapter();
97
      }
98
      @Override
99
      public Adapter caseLinkType(LinkType object)
100
      {
101
        return createLinkTypeAdapter();
102
      }
103
      @Override
104
      public Adapter caseNameType(NameType object)
105
      {
106
        return createNameTypeAdapter();
107
      }
108
      @Override
109
      public Adapter casePersonnelType(PersonnelType object)
110
      {
111
        return createPersonnelTypeAdapter();
112
      }
113
      @Override
114
      public Adapter casePersonType(PersonType object)
115
      {
116
        return createPersonTypeAdapter();
117
      }
118
      @Override
119
      public Adapter caseUrlType(UrlType object)
120
      {
121
        return createUrlTypeAdapter();
122
      }
123
      @Override
124
      public Adapter defaultCase(EObject object)
125
      {
126
        return createEObjectAdapter();
127
      }
128
    };
129
130
  /**
131
   * Creates an adapter for the <code>target</code>.
132
   * <!-- begin-user-doc -->
133
   * <!-- end-user-doc -->
134
   * @param target the object to adapt.
135
   * @return the adapter for the <code>target</code>.
136
   * @generated
137
   */
138
  @Override
139
  public Adapter createAdapter(Notifier target)
140
  {
141
    return modelSwitch.doSwitch((EObject)target);
142
  }
143
144
145
  /**
146
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot <em>Document Root</em>}'.
147
   * <!-- begin-user-doc -->
148
   * This default implementation returns null so that we can easily ignore cases;
149
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
150
   * <!-- end-user-doc -->
151
   * @return the new adapter.
152
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot
153
   * @generated
154
   */
155
  public Adapter createDocumentRootAdapter()
156
  {
157
    return null;
158
  }
159
160
  /**
161
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.LinkType <em>Link Type</em>}'.
162
   * <!-- begin-user-doc -->
163
   * This default implementation returns null so that we can easily ignore cases;
164
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
165
   * <!-- end-user-doc -->
166
   * @return the new adapter.
167
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType
168
   * @generated
169
   */
170
  public Adapter createLinkTypeAdapter()
171
  {
172
    return null;
173
  }
174
175
  /**
176
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.NameType <em>Name Type</em>}'.
177
   * <!-- begin-user-doc -->
178
   * This default implementation returns null so that we can easily ignore cases;
179
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
180
   * <!-- end-user-doc -->
181
   * @return the new adapter.
182
   * @see org.eclipse.emf.test.models.personal.mixed.NameType
183
   * @generated
184
   */
185
  public Adapter createNameTypeAdapter()
186
  {
187
    return null;
188
  }
189
190
  /**
191
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType <em>Personnel Type</em>}'.
192
   * <!-- begin-user-doc -->
193
   * This default implementation returns null so that we can easily ignore cases;
194
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
195
   * <!-- end-user-doc -->
196
   * @return the new adapter.
197
   * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType
198
   * @generated
199
   */
200
  public Adapter createPersonnelTypeAdapter()
201
  {
202
    return null;
203
  }
204
205
  /**
206
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.PersonType <em>Person Type</em>}'.
207
   * <!-- begin-user-doc -->
208
   * This default implementation returns null so that we can easily ignore cases;
209
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
210
   * <!-- end-user-doc -->
211
   * @return the new adapter.
212
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType
213
   * @generated
214
   */
215
  public Adapter createPersonTypeAdapter()
216
  {
217
    return null;
218
  }
219
220
  /**
221
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.UrlType <em>Url Type</em>}'.
222
   * <!-- begin-user-doc -->
223
   * This default implementation returns null so that we can easily ignore cases;
224
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
225
   * <!-- end-user-doc -->
226
   * @return the new adapter.
227
   * @see org.eclipse.emf.test.models.personal.mixed.UrlType
228
   * @generated
229
   */
230
  public Adapter createUrlTypeAdapter()
231
  {
232
    return null;
233
  }
234
235
  /**
236
   * Creates a new adapter for the default case.
237
   * <!-- begin-user-doc -->
238
   * This default implementation returns null.
239
   * <!-- end-user-doc -->
240
   * @return the new adapter.
241
   * @generated
242
   */
243
  public Adapter createEObjectAdapter()
244
  {
245
    return null;
246
  }
247
248
} //MixedAdapterFactory
(-)src/org/eclipse/emf/test/models/personal/mixed/util/MixedXMLProcessor.java (-68 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedXMLProcessor.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.util;
18
19
import java.util.Map;
20
21
import org.eclipse.emf.ecore.EPackage;
22
23
import org.eclipse.emf.ecore.resource.Resource;
24
25
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
26
27
import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl;
28
29
/**
30
 * This class contains helper methods to serialize and deserialize XML documents
31
 * <!-- begin-user-doc -->
32
 * <!-- end-user-doc -->
33
 * @generated
34
 */
35
public class MixedXMLProcessor extends XMLProcessor
36
{
37
38
  /**
39
   * Public constructor to instantiate the helper.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public MixedXMLProcessor()
45
  {
46
    super((EPackage.Registry.INSTANCE));
47
    MixedPackageImpl.eINSTANCE.eClass();
48
  }
49
  
50
  /**
51
   * Register for "*" and "xml" file extensions the MixedResourceFactoryImpl factory.
52
   * <!-- begin-user-doc -->
53
   * <!-- end-user-doc -->
54
   * @generated
55
   */
56
  @Override
57
  protected Map<String, Resource.Factory> getRegistrations()
58
  {
59
    if (registrations == null)
60
    {
61
      super.getRegistrations();
62
      registrations.put(XML_EXTENSION, new MixedResourceFactoryImpl());
63
      registrations.put(STAR_EXTENSION, new MixedResourceFactoryImpl());
64
    }
65
    return registrations;
66
  }
67
68
} //MixedXMLProcessor
(-)src/org/eclipse/emf/test/models/personal/mixed/util/MixedSwitch.java (-269 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.personal.mixed.*;
25
26
import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl
39
 * @generated
40
 */
41
public class MixedSwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static MixedPackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public MixedSwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = MixedPackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case MixedPackageImpl.DOCUMENT_ROOT:
112
      {
113
        DocumentRoot documentRoot = (DocumentRoot)theEObject;
114
        T result = caseDocumentRoot(documentRoot);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      case MixedPackageImpl.LINK_TYPE:
119
      {
120
        LinkType linkType = (LinkType)theEObject;
121
        T result = caseLinkType(linkType);
122
        if (result == null) result = defaultCase(theEObject);
123
        return result;
124
      }
125
      case MixedPackageImpl.NAME_TYPE:
126
      {
127
        NameType nameType = (NameType)theEObject;
128
        T result = caseNameType(nameType);
129
        if (result == null) result = defaultCase(theEObject);
130
        return result;
131
      }
132
      case MixedPackageImpl.PERSONNEL_TYPE:
133
      {
134
        PersonnelType personnelType = (PersonnelType)theEObject;
135
        T result = casePersonnelType(personnelType);
136
        if (result == null) result = defaultCase(theEObject);
137
        return result;
138
      }
139
      case MixedPackageImpl.PERSON_TYPE:
140
      {
141
        PersonType personType = (PersonType)theEObject;
142
        T result = casePersonType(personType);
143
        if (result == null) result = defaultCase(theEObject);
144
        return result;
145
      }
146
      case MixedPackageImpl.URL_TYPE:
147
      {
148
        UrlType urlType = (UrlType)theEObject;
149
        T result = caseUrlType(urlType);
150
        if (result == null) result = defaultCase(theEObject);
151
        return result;
152
      }
153
      default: return defaultCase(theEObject);
154
    }
155
  }
156
157
  /**
158
   * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'.
159
   * <!-- begin-user-doc -->
160
   * This implementation returns null;
161
   * returning a non-null result will terminate the switch.
162
   * <!-- end-user-doc -->
163
   * @param object the target of the switch.
164
   * @return the result of interpreting the object as an instance of '<em>Document Root</em>'.
165
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
166
   * @generated
167
   */
168
  public T caseDocumentRoot(DocumentRoot object)
169
  {
170
    return null;
171
  }
172
173
  /**
174
   * Returns the result of interpreting the object as an instance of '<em>Link Type</em>'.
175
   * <!-- begin-user-doc -->
176
   * This implementation returns null;
177
   * returning a non-null result will terminate the switch.
178
   * <!-- end-user-doc -->
179
   * @param object the target of the switch.
180
   * @return the result of interpreting the object as an instance of '<em>Link Type</em>'.
181
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
182
   * @generated
183
   */
184
  public T caseLinkType(LinkType object)
185
  {
186
    return null;
187
  }
188
189
  /**
190
   * Returns the result of interpreting the object as an instance of '<em>Name Type</em>'.
191
   * <!-- begin-user-doc -->
192
   * This implementation returns null;
193
   * returning a non-null result will terminate the switch.
194
   * <!-- end-user-doc -->
195
   * @param object the target of the switch.
196
   * @return the result of interpreting the object as an instance of '<em>Name Type</em>'.
197
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
198
   * @generated
199
   */
200
  public T caseNameType(NameType object)
201
  {
202
    return null;
203
  }
204
205
  /**
206
   * Returns the result of interpreting the object as an instance of '<em>Personnel Type</em>'.
207
   * <!-- begin-user-doc -->
208
   * This implementation returns null;
209
   * returning a non-null result will terminate the switch.
210
   * <!-- end-user-doc -->
211
   * @param object the target of the switch.
212
   * @return the result of interpreting the object as an instance of '<em>Personnel Type</em>'.
213
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
214
   * @generated
215
   */
216
  public T casePersonnelType(PersonnelType object)
217
  {
218
    return null;
219
  }
220
221
  /**
222
   * Returns the result of interpreting the object as an instance of '<em>Person Type</em>'.
223
   * <!-- begin-user-doc -->
224
   * This implementation returns null;
225
   * returning a non-null result will terminate the switch.
226
   * <!-- end-user-doc -->
227
   * @param object the target of the switch.
228
   * @return the result of interpreting the object as an instance of '<em>Person Type</em>'.
229
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
230
   * @generated
231
   */
232
  public T casePersonType(PersonType object)
233
  {
234
    return null;
235
  }
236
237
  /**
238
   * Returns the result of interpreting the object as an instance of '<em>Url Type</em>'.
239
   * <!-- begin-user-doc -->
240
   * This implementation returns null;
241
   * returning a non-null result will terminate the switch.
242
   * <!-- end-user-doc -->
243
   * @param object the target of the switch.
244
   * @return the result of interpreting the object as an instance of '<em>Url Type</em>'.
245
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
246
   * @generated
247
   */
248
  public T caseUrlType(UrlType object)
249
  {
250
    return null;
251
  }
252
253
  /**
254
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
255
   * <!-- begin-user-doc -->
256
   * This implementation returns null;
257
   * returning a non-null result will terminate the switch, but this is the last case anyway.
258
   * <!-- end-user-doc -->
259
   * @param object the target of the switch.
260
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
261
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
262
   * @generated
263
   */
264
  public T defaultCase(EObject object)
265
  {
266
    return null;
267
  }
268
269
} //MixedSwitch
(-)src/org/eclipse/emf/test/models/ipo/util/IPOSwitch.java (-294 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.ipo.*;
25
26
import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl
39
 * @generated
40
 */
41
public class IPOSwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static IPOPackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public IPOSwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = IPOPackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case IPOPackageImpl.ADDRESS:
112
      {
113
        Address address = (Address)theEObject;
114
        T result = caseAddress(address);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      case IPOPackageImpl.DOCUMENT_ROOT:
119
      {
120
        DocumentRoot documentRoot = (DocumentRoot)theEObject;
121
        T result = caseDocumentRoot(documentRoot);
122
        if (result == null) result = defaultCase(theEObject);
123
        return result;
124
      }
125
      case IPOPackageImpl.ITEMS:
126
      {
127
        Items items = (Items)theEObject;
128
        T result = caseItems(items);
129
        if (result == null) result = defaultCase(theEObject);
130
        return result;
131
      }
132
      case IPOPackageImpl.ITEM_TYPE:
133
      {
134
        ItemType itemType = (ItemType)theEObject;
135
        T result = caseItemType(itemType);
136
        if (result == null) result = defaultCase(theEObject);
137
        return result;
138
      }
139
      case IPOPackageImpl.PURCHASE_ORDER_TYPE:
140
      {
141
        PurchaseOrderType purchaseOrderType = (PurchaseOrderType)theEObject;
142
        T result = casePurchaseOrderType(purchaseOrderType);
143
        if (result == null) result = defaultCase(theEObject);
144
        return result;
145
      }
146
      case IPOPackageImpl.UK_ADDRESS:
147
      {
148
        UKAddress ukAddress = (UKAddress)theEObject;
149
        T result = caseUKAddress(ukAddress);
150
        if (result == null) result = caseAddress(ukAddress);
151
        if (result == null) result = defaultCase(theEObject);
152
        return result;
153
      }
154
      case IPOPackageImpl.US_ADDRESS:
155
      {
156
        USAddress usAddress = (USAddress)theEObject;
157
        T result = caseUSAddress(usAddress);
158
        if (result == null) result = caseAddress(usAddress);
159
        if (result == null) result = defaultCase(theEObject);
160
        return result;
161
      }
162
      default: return defaultCase(theEObject);
163
    }
164
  }
165
166
  /**
167
   * Returns the result of interpreting the object as an instance of '<em>Address</em>'.
168
   * <!-- begin-user-doc -->
169
   * This implementation returns null;
170
   * returning a non-null result will terminate the switch.
171
   * <!-- end-user-doc -->
172
   * @param object the target of the switch.
173
   * @return the result of interpreting the object as an instance of '<em>Address</em>'.
174
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
175
   * @generated
176
   */
177
  public T caseAddress(Address object)
178
  {
179
    return null;
180
  }
181
182
  /**
183
   * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'.
184
   * <!-- begin-user-doc -->
185
   * This implementation returns null;
186
   * returning a non-null result will terminate the switch.
187
   * <!-- end-user-doc -->
188
   * @param object the target of the switch.
189
   * @return the result of interpreting the object as an instance of '<em>Document Root</em>'.
190
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
191
   * @generated
192
   */
193
  public T caseDocumentRoot(DocumentRoot object)
194
  {
195
    return null;
196
  }
197
198
  /**
199
   * Returns the result of interpreting the object as an instance of '<em>Items</em>'.
200
   * <!-- begin-user-doc -->
201
   * This implementation returns null;
202
   * returning a non-null result will terminate the switch.
203
   * <!-- end-user-doc -->
204
   * @param object the target of the switch.
205
   * @return the result of interpreting the object as an instance of '<em>Items</em>'.
206
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
207
   * @generated
208
   */
209
  public T caseItems(Items object)
210
  {
211
    return null;
212
  }
213
214
  /**
215
   * Returns the result of interpreting the object as an instance of '<em>Item Type</em>'.
216
   * <!-- begin-user-doc -->
217
   * This implementation returns null;
218
   * returning a non-null result will terminate the switch.
219
   * <!-- end-user-doc -->
220
   * @param object the target of the switch.
221
   * @return the result of interpreting the object as an instance of '<em>Item Type</em>'.
222
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
223
   * @generated
224
   */
225
  public T caseItemType(ItemType object)
226
  {
227
    return null;
228
  }
229
230
  /**
231
   * Returns the result of interpreting the object as an instance of '<em>Purchase Order Type</em>'.
232
   * <!-- begin-user-doc -->
233
   * This implementation returns null;
234
   * returning a non-null result will terminate the switch.
235
   * <!-- end-user-doc -->
236
   * @param object the target of the switch.
237
   * @return the result of interpreting the object as an instance of '<em>Purchase Order Type</em>'.
238
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
239
   * @generated
240
   */
241
  public T casePurchaseOrderType(PurchaseOrderType object)
242
  {
243
    return null;
244
  }
245
246
  /**
247
   * Returns the result of interpreting the object as an instance of '<em>UK Address</em>'.
248
   * <!-- begin-user-doc -->
249
   * This implementation returns null;
250
   * returning a non-null result will terminate the switch.
251
   * <!-- end-user-doc -->
252
   * @param object the target of the switch.
253
   * @return the result of interpreting the object as an instance of '<em>UK Address</em>'.
254
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
255
   * @generated
256
   */
257
  public T caseUKAddress(UKAddress object)
258
  {
259
    return null;
260
  }
261
262
  /**
263
   * Returns the result of interpreting the object as an instance of '<em>US Address</em>'.
264
   * <!-- begin-user-doc -->
265
   * This implementation returns null;
266
   * returning a non-null result will terminate the switch.
267
   * <!-- end-user-doc -->
268
   * @param object the target of the switch.
269
   * @return the result of interpreting the object as an instance of '<em>US Address</em>'.
270
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
271
   * @generated
272
   */
273
  public T caseUSAddress(USAddress object)
274
  {
275
    return null;
276
  }
277
278
  /**
279
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
280
   * <!-- begin-user-doc -->
281
   * This implementation returns null;
282
   * returning a non-null result will terminate the switch, but this is the last case anyway.
283
   * <!-- end-user-doc -->
284
   * @param object the target of the switch.
285
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
286
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
287
   * @generated
288
   */
289
  public T defaultCase(EObject object)
290
  {
291
    return null;
292
  }
293
294
} //IPOSwitch
(-)src/org/eclipse/emf/test/models/ipo/util/IPOResourceFactoryImpl.java (-69 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:43 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.resource.Resource;
22
23
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
24
25
import org.eclipse.emf.ecore.xmi.XMLResource;
26
27
/**
28
 * <!-- begin-user-doc -->
29
 * The <b>Resource Factory</b> associated with the package.
30
 * <!-- end-user-doc -->
31
 * @see org.eclipse.emf.test.models.ipo.util.IPOResourceImpl
32
 * @generated
33
 */
34
public class IPOResourceFactoryImpl extends ResourceFactoryImpl
35
{
36
  /**
37
   * Creates an instance of the resource factory.
38
   * <!-- begin-user-doc -->
39
   * <!-- end-user-doc -->
40
   * @generated
41
   */
42
  public IPOResourceFactoryImpl()
43
  {
44
    super();
45
  }
46
47
  /**
48
   * Creates an instance of the resource.
49
   * <!-- begin-user-doc -->
50
   * <!-- end-user-doc -->
51
   * @generated
52
   */
53
  @Override
54
  public Resource createResource(URI uri)
55
  {
56
    XMLResource result = new IPOResourceImpl(uri);
57
    result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
58
    result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
59
60
    result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
61
62
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
63
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
64
65
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
66
    return result;
67
  }
68
69
} //IPOResourceFactoryImpl
(-)src/org/eclipse/emf/test/models/ipo/util/IPOResourceImpl.java (-44 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOResourceImpl.java,v 1.2 2007/01/18 22:06:44 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * The <b>Resource </b> associated with the package.
26
 * <!-- end-user-doc -->
27
 * @see org.eclipse.emf.test.models.ipo.util.IPOResourceFactoryImpl
28
 * @generated
29
 */
30
public class IPOResourceImpl extends XMLResourceImpl
31
{
32
  /**
33
   * Creates an instance of the resource.
34
   * <!-- begin-user-doc -->
35
   * <!-- end-user-doc -->
36
   * @param uri the URI of the new resource.
37
   * @generated
38
   */
39
  public IPOResourceImpl(URI uri)
40
  {
41
    super(uri);
42
  }
43
44
} //IPOResourceImpl
(-)src/org/eclipse/emf/test/models/sdo/library/impl/WriterImpl.java (-279 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: WriterImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import java.util.Collection;
20
import java.util.List;
21
22
import org.eclipse.emf.common.notify.Notification;
23
import org.eclipse.emf.common.notify.NotificationChain;
24
25
import org.eclipse.emf.common.util.EList;
26
27
import org.eclipse.emf.ecore.EClass;
28
import org.eclipse.emf.ecore.InternalEObject;
29
30
import org.eclipse.emf.ecore.impl.ENotificationImpl;
31
32
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
33
34
import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
35
import org.eclipse.emf.ecore.util.InternalEList;
36
37
import org.eclipse.emf.test.models.sdo.library.Book;
38
import org.eclipse.emf.test.models.sdo.library.Writer;
39
40
/**
41
 * <!-- begin-user-doc -->
42
 * An implementation of the model object '<em><b>Writer</b></em>'.
43
 * <!-- end-user-doc -->
44
 * <p>
45
 * The following features are implemented:
46
 * <ul>
47
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl#getName <em>Name</em>}</li>
48
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl#getBooks <em>Books</em>}</li>
49
 * </ul>
50
 * </p>
51
 *
52
 * @generated
53
 */
54
public class WriterImpl extends EDataObjectImpl implements Writer
55
{
56
  /**
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @generated
60
   */
61
  private static final long serialVersionUID = 1L;
62
63
  /**
64
   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
65
   * <!-- begin-user-doc -->
66
   * <!-- end-user-doc -->
67
   * @see #getName()
68
   * @generated
69
   * @ordered
70
   */
71
  protected static final String NAME_EDEFAULT = null;
72
73
  /**
74
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @see #getName()
78
   * @generated
79
   * @ordered
80
   */
81
  protected String name = NAME_EDEFAULT;
82
83
  /**
84
   * The cached value of the '{@link #getBooks() <em>Books</em>}' reference list.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see #getBooks()
88
   * @generated
89
   * @ordered
90
   */
91
  protected EList<Book> books;
92
93
  /**
94
   * <!-- begin-user-doc -->
95
   * <!-- end-user-doc -->
96
   * @generated
97
   */
98
  protected WriterImpl()
99
  {
100
    super();
101
  }
102
103
  /**
104
   * <!-- begin-user-doc -->
105
   * <!-- end-user-doc -->
106
   * @generated
107
   */
108
  @Override
109
  protected EClass eStaticClass()
110
  {
111
    return SDOLibraryPackageImpl.Literals.WRITER;
112
  }
113
114
  /**
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @generated
118
   */
119
  public String getName()
120
  {
121
    return name;
122
  }
123
124
  /**
125
   * <!-- begin-user-doc -->
126
   * <!-- end-user-doc -->
127
   * @generated
128
   */
129
  public void setName(String newName)
130
  {
131
    String oldName = name;
132
    name = newName;
133
    if (eNotificationRequired())
134
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.WRITER__NAME, oldName, name));
135
  }
136
137
  /**
138
   * <!-- begin-user-doc -->
139
   * <!-- end-user-doc -->
140
   * @generated
141
   */
142
  public List<Book> getBooks()
143
  {
144
    if (books == null)
145
    {
146
      books = new EObjectWithInverseResolvingEList<Book>(Book.class, this, SDOLibraryPackageImpl.WRITER__BOOKS, SDOLibraryPackageImpl.BOOK__AUTHOR);
147
    }
148
    return books;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  @SuppressWarnings("unchecked")
157
  @Override
158
  public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
159
  {
160
    switch (featureID)
161
    {
162
      case SDOLibraryPackageImpl.WRITER__BOOKS:
163
        return ((InternalEList<InternalEObject>)(InternalEList<?>)getBooks()).basicAdd(otherEnd, msgs);
164
    }
165
    return super.eInverseAdd(otherEnd, featureID, msgs);
166
  }
167
168
  /**
169
   * <!-- begin-user-doc -->
170
   * <!-- end-user-doc -->
171
   * @generated
172
   */
173
  @Override
174
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
175
  {
176
    switch (featureID)
177
    {
178
      case SDOLibraryPackageImpl.WRITER__BOOKS:
179
        return ((InternalEList<?>)getBooks()).basicRemove(otherEnd, msgs);
180
    }
181
    return super.eInverseRemove(otherEnd, featureID, msgs);
182
  }
183
184
  /**
185
   * <!-- begin-user-doc -->
186
   * <!-- end-user-doc -->
187
   * @generated
188
   */
189
  @Override
190
  public Object eGet(int featureID, boolean resolve, boolean coreType)
191
  {
192
    switch (featureID)
193
    {
194
      case SDOLibraryPackageImpl.WRITER__NAME:
195
        return getName();
196
      case SDOLibraryPackageImpl.WRITER__BOOKS:
197
        return getBooks();
198
    }
199
    return super.eGet(featureID, resolve, coreType);
200
  }
201
202
  /**
203
   * <!-- begin-user-doc -->
204
   * <!-- end-user-doc -->
205
   * @generated
206
   */
207
  @SuppressWarnings("unchecked")
208
  @Override
209
  public void eSet(int featureID, Object newValue)
210
  {
211
    switch (featureID)
212
    {
213
      case SDOLibraryPackageImpl.WRITER__NAME:
214
        setName((String)newValue);
215
        return;
216
      case SDOLibraryPackageImpl.WRITER__BOOKS:
217
        getBooks().clear();
218
        getBooks().addAll((Collection<? extends Book>)newValue);
219
        return;
220
    }
221
    super.eSet(featureID, newValue);
222
  }
223
224
  /**
225
   * <!-- begin-user-doc -->
226
   * <!-- end-user-doc -->
227
   * @generated
228
   */
229
  @Override
230
  public void eUnset(int featureID)
231
  {
232
    switch (featureID)
233
    {
234
      case SDOLibraryPackageImpl.WRITER__NAME:
235
        setName(NAME_EDEFAULT);
236
        return;
237
      case SDOLibraryPackageImpl.WRITER__BOOKS:
238
        getBooks().clear();
239
        return;
240
    }
241
    super.eUnset(featureID);
242
  }
243
244
  /**
245
   * <!-- begin-user-doc -->
246
   * <!-- end-user-doc -->
247
   * @generated
248
   */
249
  @Override
250
  public boolean eIsSet(int featureID)
251
  {
252
    switch (featureID)
253
    {
254
      case SDOLibraryPackageImpl.WRITER__NAME:
255
        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
256
      case SDOLibraryPackageImpl.WRITER__BOOKS:
257
        return books != null && !books.isEmpty();
258
    }
259
    return super.eIsSet(featureID);
260
  }
261
262
  /**
263
   * <!-- begin-user-doc -->
264
   * <!-- end-user-doc -->
265
   * @generated
266
   */
267
  @Override
268
  public String toString()
269
  {
270
    if (eIsProxy()) return super.toString();
271
272
    StringBuffer result = new StringBuffer(super.toString());
273
    result.append(" (name: ");
274
    result.append(name);
275
    result.append(')');
276
    return result.toString();
277
  }
278
279
} //WriterImpl
(-)src/org/eclipse/emf/test/models/sdo/library/impl/BookImpl.java (-439 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: BookImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.notify.NotificationChain;
21
22
import org.eclipse.emf.ecore.EClass;
23
import org.eclipse.emf.ecore.EObject;
24
import org.eclipse.emf.ecore.InternalEObject;
25
26
import org.eclipse.emf.ecore.impl.ENotificationImpl;
27
28
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
29
30
import org.eclipse.emf.test.models.sdo.library.Book;
31
import org.eclipse.emf.test.models.sdo.library.BookCategory;
32
import org.eclipse.emf.test.models.sdo.library.Writer;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * An implementation of the model object '<em><b>Book</b></em>'.
37
 * <!-- end-user-doc -->
38
 * <p>
39
 * The following features are implemented:
40
 * <ul>
41
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getTitle <em>Title</em>}</li>
42
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getPages <em>Pages</em>}</li>
43
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getCategory <em>Category</em>}</li>
44
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getAuthor <em>Author</em>}</li>
45
 * </ul>
46
 * </p>
47
 *
48
 * @generated
49
 */
50
public class BookImpl extends EDataObjectImpl implements Book
51
{
52
  /**
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  private static final long serialVersionUID = 1L;
58
59
  /**
60
   * The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @see #getTitle()
64
   * @generated
65
   * @ordered
66
   */
67
  protected static final String TITLE_EDEFAULT = null;
68
69
  /**
70
   * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @see #getTitle()
74
   * @generated
75
   * @ordered
76
   */
77
  protected String title = TITLE_EDEFAULT;
78
79
  /**
80
   * The default value of the '{@link #getPages() <em>Pages</em>}' attribute.
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @see #getPages()
84
   * @generated
85
   * @ordered
86
   */
87
  protected static final int PAGES_EDEFAULT = 100;
88
89
  /**
90
   * The cached value of the '{@link #getPages() <em>Pages</em>}' attribute.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @see #getPages()
94
   * @generated
95
   * @ordered
96
   */
97
  protected int pages = PAGES_EDEFAULT;
98
99
  /**
100
   * The default value of the '{@link #getCategory() <em>Category</em>}' attribute.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @see #getCategory()
104
   * @generated
105
   * @ordered
106
   */
107
  protected static final BookCategory CATEGORY_EDEFAULT = BookCategory.MYSTERY;
108
109
  /**
110
   * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute.
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
113
   * @see #getCategory()
114
   * @generated
115
   * @ordered
116
   */
117
  protected BookCategory category = CATEGORY_EDEFAULT;
118
119
  /**
120
   * The cached value of the '{@link #getAuthor() <em>Author</em>}' reference.
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @see #getAuthor()
124
   * @generated
125
   * @ordered
126
   */
127
  protected Writer author;
128
129
  /**
130
   * <!-- begin-user-doc -->
131
   * <!-- end-user-doc -->
132
   * @generated
133
   */
134
  protected BookImpl()
135
  {
136
    super();
137
  }
138
139
  /**
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @generated
143
   */
144
  @Override
145
  protected EClass eStaticClass()
146
  {
147
    return SDOLibraryPackageImpl.Literals.BOOK;
148
  }
149
150
  /**
151
   * <!-- begin-user-doc -->
152
   * <!-- end-user-doc -->
153
   * @generated
154
   */
155
  public String getTitle()
156
  {
157
    return title;
158
  }
159
160
  /**
161
   * <!-- begin-user-doc -->
162
   * <!-- end-user-doc -->
163
   * @generated
164
   */
165
  public void setTitle(String newTitle)
166
  {
167
    String oldTitle = title;
168
    title = newTitle;
169
    if (eNotificationRequired())
170
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__TITLE, oldTitle, title));
171
  }
172
173
  /**
174
   * <!-- begin-user-doc -->
175
   * <!-- end-user-doc -->
176
   * @generated
177
   */
178
  public int getPages()
179
  {
180
    return pages;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  public void setPages(int newPages)
189
  {
190
    int oldPages = pages;
191
    pages = newPages;
192
    if (eNotificationRequired())
193
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__PAGES, oldPages, pages));
194
  }
195
196
  /**
197
   * <!-- begin-user-doc -->
198
   * <!-- end-user-doc -->
199
   * @generated
200
   */
201
  public BookCategory getCategory()
202
  {
203
    return category;
204
  }
205
206
  /**
207
   * <!-- begin-user-doc -->
208
   * <!-- end-user-doc -->
209
   * @generated
210
   */
211
  public void setCategory(BookCategory newCategory)
212
  {
213
    BookCategory oldCategory = category;
214
    category = newCategory == null ? CATEGORY_EDEFAULT : newCategory;
215
    if (eNotificationRequired())
216
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__CATEGORY, oldCategory, category));
217
  }
218
219
  /**
220
   * <!-- begin-user-doc -->
221
   * <!-- end-user-doc -->
222
   * @generated
223
   */
224
  public Writer getAuthor()
225
  {
226
    if (author != null && ((EObject)author).eIsProxy())
227
    {
228
      InternalEObject oldAuthor = (InternalEObject)author;
229
      author = (Writer)eResolveProxy(oldAuthor);
230
      if (author != oldAuthor)
231
      {
232
        if (eNotificationRequired())
233
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, SDOLibraryPackageImpl.BOOK__AUTHOR, oldAuthor, author));
234
      }
235
    }
236
    return author;
237
  }
238
239
  /**
240
   * <!-- begin-user-doc -->
241
   * <!-- end-user-doc -->
242
   * @generated
243
   */
244
  public Writer basicGetAuthor()
245
  {
246
    return author;
247
  }
248
249
  /**
250
   * <!-- begin-user-doc -->
251
   * <!-- end-user-doc -->
252
   * @generated
253
   */
254
  public NotificationChain basicSetAuthor(Writer newAuthor, NotificationChain msgs)
255
  {
256
    Writer oldAuthor = author;
257
    author = newAuthor;
258
    if (eNotificationRequired())
259
    {
260
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__AUTHOR, oldAuthor, newAuthor);
261
      if (msgs == null) msgs = notification; else msgs.add(notification);
262
    }
263
    return msgs;
264
  }
265
266
  /**
267
   * <!-- begin-user-doc -->
268
   * <!-- end-user-doc -->
269
   * @generated
270
   */
271
  public void setAuthor(Writer newAuthor)
272
  {
273
    if (newAuthor != author)
274
    {
275
      NotificationChain msgs = null;
276
      if (author != null)
277
        msgs = ((InternalEObject)author).eInverseRemove(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs);
278
      if (newAuthor != null)
279
        msgs = ((InternalEObject)newAuthor).eInverseAdd(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs);
280
      msgs = basicSetAuthor(newAuthor, msgs);
281
      if (msgs != null) msgs.dispatch();
282
    }
283
    else if (eNotificationRequired())
284
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__AUTHOR, newAuthor, newAuthor));
285
  }
286
287
  /**
288
   * <!-- begin-user-doc -->
289
   * <!-- end-user-doc -->
290
   * @generated
291
   */
292
  @Override
293
  public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
294
  {
295
    switch (featureID)
296
    {
297
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
298
        if (author != null)
299
          msgs = ((InternalEObject)author).eInverseRemove(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs);
300
        return basicSetAuthor((Writer)otherEnd, msgs);
301
    }
302
    return super.eInverseAdd(otherEnd, featureID, msgs);
303
  }
304
305
  /**
306
   * <!-- begin-user-doc -->
307
   * <!-- end-user-doc -->
308
   * @generated
309
   */
310
  @Override
311
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
312
  {
313
    switch (featureID)
314
    {
315
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
316
        return basicSetAuthor(null, msgs);
317
    }
318
    return super.eInverseRemove(otherEnd, featureID, msgs);
319
  }
320
321
  /**
322
   * <!-- begin-user-doc -->
323
   * <!-- end-user-doc -->
324
   * @generated
325
   */
326
  @Override
327
  public Object eGet(int featureID, boolean resolve, boolean coreType)
328
  {
329
    switch (featureID)
330
    {
331
      case SDOLibraryPackageImpl.BOOK__TITLE:
332
        return getTitle();
333
      case SDOLibraryPackageImpl.BOOK__PAGES:
334
        return new Integer(getPages());
335
      case SDOLibraryPackageImpl.BOOK__CATEGORY:
336
        return getCategory();
337
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
338
        if (resolve) return getAuthor();
339
        return basicGetAuthor();
340
    }
341
    return super.eGet(featureID, resolve, coreType);
342
  }
343
344
  /**
345
   * <!-- begin-user-doc -->
346
   * <!-- end-user-doc -->
347
   * @generated
348
   */
349
  @Override
350
  public void eSet(int featureID, Object newValue)
351
  {
352
    switch (featureID)
353
    {
354
      case SDOLibraryPackageImpl.BOOK__TITLE:
355
        setTitle((String)newValue);
356
        return;
357
      case SDOLibraryPackageImpl.BOOK__PAGES:
358
        setPages(((Integer)newValue).intValue());
359
        return;
360
      case SDOLibraryPackageImpl.BOOK__CATEGORY:
361
        setCategory((BookCategory)newValue);
362
        return;
363
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
364
        setAuthor((Writer)newValue);
365
        return;
366
    }
367
    super.eSet(featureID, newValue);
368
  }
369
370
  /**
371
   * <!-- begin-user-doc -->
372
   * <!-- end-user-doc -->
373
   * @generated
374
   */
375
  @Override
376
  public void eUnset(int featureID)
377
  {
378
    switch (featureID)
379
    {
380
      case SDOLibraryPackageImpl.BOOK__TITLE:
381
        setTitle(TITLE_EDEFAULT);
382
        return;
383
      case SDOLibraryPackageImpl.BOOK__PAGES:
384
        setPages(PAGES_EDEFAULT);
385
        return;
386
      case SDOLibraryPackageImpl.BOOK__CATEGORY:
387
        setCategory(CATEGORY_EDEFAULT);
388
        return;
389
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
390
        setAuthor((Writer)null);
391
        return;
392
    }
393
    super.eUnset(featureID);
394
  }
395
396
  /**
397
   * <!-- begin-user-doc -->
398
   * <!-- end-user-doc -->
399
   * @generated
400
   */
401
  @Override
402
  public boolean eIsSet(int featureID)
403
  {
404
    switch (featureID)
405
    {
406
      case SDOLibraryPackageImpl.BOOK__TITLE:
407
        return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);
408
      case SDOLibraryPackageImpl.BOOK__PAGES:
409
        return pages != PAGES_EDEFAULT;
410
      case SDOLibraryPackageImpl.BOOK__CATEGORY:
411
        return category != CATEGORY_EDEFAULT;
412
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
413
        return author != null;
414
    }
415
    return super.eIsSet(featureID);
416
  }
417
418
  /**
419
   * <!-- begin-user-doc -->
420
   * <!-- end-user-doc -->
421
   * @generated
422
   */
423
  @Override
424
  public String toString()
425
  {
426
    if (eIsProxy()) return super.toString();
427
428
    StringBuffer result = new StringBuffer(super.toString());
429
    result.append(" (title: ");
430
    result.append(title);
431
    result.append(", pages: ");
432
    result.append(pages);
433
    result.append(", category: ");
434
    result.append(category);
435
    result.append(')');
436
    return result.toString();
437
  }
438
439
} //BookImpl
(-)src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryPackageImpl.java (-743 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SDOLibraryPackageImpl.java,v 1.2 2007/01/18 22:06:47 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import org.eclipse.emf.ecore.EAttribute;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EEnum;
22
import org.eclipse.emf.ecore.EFactory;
23
import org.eclipse.emf.ecore.EPackage;
24
import org.eclipse.emf.ecore.EReference;
25
26
import org.eclipse.emf.ecore.impl.EPackageImpl;
27
28
import org.eclipse.emf.test.models.sdo.library.Book;
29
import org.eclipse.emf.test.models.sdo.library.BookCategory;
30
import org.eclipse.emf.test.models.sdo.library.Library;
31
import org.eclipse.emf.test.models.sdo.library.SDOLibraryFactory;
32
import org.eclipse.emf.test.models.sdo.library.Writer;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * The <b>Package</b> for the model.
37
 * It contains accessors for the meta objects to represent
38
 * <ul>
39
 *   <li>each class,</li>
40
 *   <li>each feature of each class,</li>
41
 *   <li>each enum,</li>
42
 *   <li>and each data type</li>
43
 * </ul>
44
 * <!-- end-user-doc -->
45
 * @see org.eclipse.emf.test.models.sdo.library.SDOLibraryFactory
46
 * @model kind="package"
47
 * @generated
48
 */
49
public class SDOLibraryPackageImpl extends EPackageImpl
50
{
51
  /**
52
   * The package name.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public static final String eNAME = "library";
58
59
  /**
60
   * The package namespace URI.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @generated
64
   */
65
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/SDOLibrary";
66
67
  /**
68
   * The package namespace name.
69
   * <!-- begin-user-doc -->
70
   * <!-- end-user-doc -->
71
   * @generated
72
   */
73
  public static final String eNS_PREFIX = "org.eclipse.emf.test.models.sdolibrary";
74
75
  /**
76
   * The singleton instance of the package.
77
   * <!-- begin-user-doc -->
78
   * <!-- end-user-doc -->
79
   * @generated
80
   */
81
  public static final SDOLibraryPackageImpl eINSTANCE = org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl.init();
82
83
  /**
84
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl <em>Book</em>}' class.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see org.eclipse.emf.test.models.sdo.library.impl.BookImpl
88
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBook()
89
   * @generated
90
   */
91
  public static final int BOOK = 0;
92
93
  /**
94
   * The feature id for the '<em><b>Title</b></em>' attribute.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @generated
98
   * @ordered
99
   */
100
  public static final int BOOK__TITLE = 0;
101
102
  /**
103
   * The feature id for the '<em><b>Pages</b></em>' attribute.
104
   * <!-- begin-user-doc -->
105
   * <!-- end-user-doc -->
106
   * @generated
107
   * @ordered
108
   */
109
  public static final int BOOK__PAGES = 1;
110
111
  /**
112
   * The feature id for the '<em><b>Category</b></em>' attribute.
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @generated
116
   * @ordered
117
   */
118
  public static final int BOOK__CATEGORY = 2;
119
120
  /**
121
   * The feature id for the '<em><b>Author</b></em>' reference.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @generated
125
   * @ordered
126
   */
127
  public static final int BOOK__AUTHOR = 3;
128
129
  /**
130
   * The number of structural features of the '<em>Book</em>' class.
131
   * <!-- begin-user-doc -->
132
   * <!-- end-user-doc -->
133
   * @generated
134
   * @ordered
135
   */
136
  public static final int BOOK_FEATURE_COUNT = 4;
137
138
  /**
139
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl <em>Library</em>}' class.
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @see org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl
143
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getLibrary()
144
   * @generated
145
   */
146
  public static final int LIBRARY = 1;
147
148
  /**
149
   * The feature id for the '<em><b>Name</b></em>' attribute.
150
   * <!-- begin-user-doc -->
151
   * <!-- end-user-doc -->
152
   * @generated
153
   * @ordered
154
   */
155
  public static final int LIBRARY__NAME = 0;
156
157
  /**
158
   * The feature id for the '<em><b>Writers</b></em>' containment reference list.
159
   * <!-- begin-user-doc -->
160
   * <!-- end-user-doc -->
161
   * @generated
162
   * @ordered
163
   */
164
  public static final int LIBRARY__WRITERS = 1;
165
166
  /**
167
   * The feature id for the '<em><b>Books</b></em>' containment reference list.
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   * @ordered
172
   */
173
  public static final int LIBRARY__BOOKS = 2;
174
175
  /**
176
   * The number of structural features of the '<em>Library</em>' class.
177
   * <!-- begin-user-doc -->
178
   * <!-- end-user-doc -->
179
   * @generated
180
   * @ordered
181
   */
182
  public static final int LIBRARY_FEATURE_COUNT = 3;
183
184
  /**
185
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl <em>Writer</em>}' class.
186
   * <!-- begin-user-doc -->
187
   * <!-- end-user-doc -->
188
   * @see org.eclipse.emf.test.models.sdo.library.impl.WriterImpl
189
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getWriter()
190
   * @generated
191
   */
192
  public static final int WRITER = 2;
193
194
  /**
195
   * The feature id for the '<em><b>Name</b></em>' attribute.
196
   * <!-- begin-user-doc -->
197
   * <!-- end-user-doc -->
198
   * @generated
199
   * @ordered
200
   */
201
  public static final int WRITER__NAME = 0;
202
203
  /**
204
   * The feature id for the '<em><b>Books</b></em>' reference list.
205
   * <!-- begin-user-doc -->
206
   * <!-- end-user-doc -->
207
   * @generated
208
   * @ordered
209
   */
210
  public static final int WRITER__BOOKS = 1;
211
212
  /**
213
   * The number of structural features of the '<em>Writer</em>' class.
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   * @ordered
218
   */
219
  public static final int WRITER_FEATURE_COUNT = 2;
220
221
  /**
222
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}' enum.
223
   * <!-- begin-user-doc -->
224
   * <!-- end-user-doc -->
225
   * @see org.eclipse.emf.test.models.sdo.library.BookCategory
226
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBookCategory()
227
   * @generated
228
   */
229
  public static final int BOOK_CATEGORY = 3;
230
231
  /**
232
   * <!-- begin-user-doc -->
233
   * <!-- end-user-doc -->
234
   * @generated
235
   */
236
  private EClass bookEClass = null;
237
238
  /**
239
   * <!-- begin-user-doc -->
240
   * <!-- end-user-doc -->
241
   * @generated
242
   */
243
  private EClass libraryEClass = null;
244
245
  /**
246
   * <!-- begin-user-doc -->
247
   * <!-- end-user-doc -->
248
   * @generated
249
   */
250
  private EClass writerEClass = null;
251
252
  /**
253
   * <!-- begin-user-doc -->
254
   * <!-- end-user-doc -->
255
   * @generated
256
   */
257
  private EEnum bookCategoryEEnum = null;
258
259
  /**
260
   * Creates an instance of the model <b>Package</b>, registered with
261
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
262
   * package URI value.
263
   * <p>Note: the correct way to create the package is via the static
264
   * factory method {@link #init init()}, which also performs
265
   * initialization of the package, or returns the registered package,
266
   * if one already exists.
267
   * <!-- begin-user-doc -->
268
   * <!-- end-user-doc -->
269
   * @see org.eclipse.emf.ecore.EPackage.Registry
270
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#eNS_URI
271
   * @see #init()
272
   * @generated
273
   */
274
  private SDOLibraryPackageImpl()
275
  {
276
    super(eNS_URI, ((EFactory)SDOLibraryFactory.INSTANCE));
277
  }
278
279
  /**
280
   * <!-- begin-user-doc -->
281
   * <!-- end-user-doc -->
282
   * @generated
283
   */
284
  private static boolean isInited = false;
285
286
  /**
287
   * Creates, registers, and initializes the <b>Package</b> for this
288
   * model, and for any others upon which it depends.  Simple
289
   * dependencies are satisfied by calling this method on all
290
   * dependent packages before doing anything else.  This method drives
291
   * initialization for interdependent packages directly, in parallel
292
   * with this package, itself.
293
   * <p>Of this package and its interdependencies, all packages which
294
   * have not yet been registered by their URI values are first created
295
   * and registered.  The packages are then initialized in two steps:
296
   * meta-model objects for all of the packages are created before any
297
   * are initialized, since one package's meta-model objects may refer to
298
   * those of another.
299
   * <p>Invocation of this method will not affect any packages that have
300
   * already been initialized.
301
   * <!-- begin-user-doc -->
302
   * <!-- end-user-doc -->
303
   * @see #eNS_URI
304
   * @see #createPackageContents()
305
   * @see #initializePackageContents()
306
   * @generated
307
   */
308
  public static SDOLibraryPackageImpl init()
309
  {
310
    if (isInited) return (SDOLibraryPackageImpl)EPackage.Registry.INSTANCE.getEPackage(SDOLibraryPackageImpl.eNS_URI);
311
312
    // Obtain or create and register package
313
    SDOLibraryPackageImpl theSDOLibraryPackageImpl = (SDOLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof SDOLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new SDOLibraryPackageImpl());
314
315
    isInited = true;
316
317
    // Create package meta-data objects
318
    theSDOLibraryPackageImpl.createPackageContents();
319
320
    // Initialize created meta-data
321
    theSDOLibraryPackageImpl.initializePackageContents();
322
323
    // Mark meta-data to indicate it can't be changed
324
    theSDOLibraryPackageImpl.freeze();
325
326
    return theSDOLibraryPackageImpl;
327
  }
328
329
330
  /**
331
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Book <em>Book</em>}'.
332
   * <!-- begin-user-doc -->
333
   * <!-- end-user-doc -->
334
   * @return the meta object for class '<em>Book</em>'.
335
   * @see org.eclipse.emf.test.models.sdo.library.Book
336
   * @generated
337
   */
338
  public EClass getBook()
339
  {
340
    return bookEClass;
341
  }
342
343
  /**
344
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getTitle <em>Title</em>}'.
345
   * <!-- begin-user-doc -->
346
   * <!-- end-user-doc -->
347
   * @return the meta object for the attribute '<em>Title</em>'.
348
   * @see org.eclipse.emf.test.models.sdo.library.Book#getTitle()
349
   * @see #getBook()
350
   * @generated
351
   */
352
  public EAttribute getBook_Title()
353
  {
354
    return (EAttribute)bookEClass.getEStructuralFeatures().get(0);
355
  }
356
357
  /**
358
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getPages <em>Pages</em>}'.
359
   * <!-- begin-user-doc -->
360
   * <!-- end-user-doc -->
361
   * @return the meta object for the attribute '<em>Pages</em>'.
362
   * @see org.eclipse.emf.test.models.sdo.library.Book#getPages()
363
   * @see #getBook()
364
   * @generated
365
   */
366
  public EAttribute getBook_Pages()
367
  {
368
    return (EAttribute)bookEClass.getEStructuralFeatures().get(1);
369
  }
370
371
  /**
372
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getCategory <em>Category</em>}'.
373
   * <!-- begin-user-doc -->
374
   * <!-- end-user-doc -->
375
   * @return the meta object for the attribute '<em>Category</em>'.
376
   * @see org.eclipse.emf.test.models.sdo.library.Book#getCategory()
377
   * @see #getBook()
378
   * @generated
379
   */
380
  public EAttribute getBook_Category()
381
  {
382
    return (EAttribute)bookEClass.getEStructuralFeatures().get(2);
383
  }
384
385
  /**
386
   * Returns the meta object for the reference '{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}'.
387
   * <!-- begin-user-doc -->
388
   * <!-- end-user-doc -->
389
   * @return the meta object for the reference '<em>Author</em>'.
390
   * @see org.eclipse.emf.test.models.sdo.library.Book#getAuthor()
391
   * @see #getBook()
392
   * @generated
393
   */
394
  public EReference getBook_Author()
395
  {
396
    return (EReference)bookEClass.getEStructuralFeatures().get(3);
397
  }
398
399
  /**
400
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Library <em>Library</em>}'.
401
   * <!-- begin-user-doc -->
402
   * <!-- end-user-doc -->
403
   * @return the meta object for class '<em>Library</em>'.
404
   * @see org.eclipse.emf.test.models.sdo.library.Library
405
   * @generated
406
   */
407
  public EClass getLibrary()
408
  {
409
    return libraryEClass;
410
  }
411
412
  /**
413
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}'.
414
   * <!-- begin-user-doc -->
415
   * <!-- end-user-doc -->
416
   * @return the meta object for the attribute '<em>Name</em>'.
417
   * @see org.eclipse.emf.test.models.sdo.library.Library#getName()
418
   * @see #getLibrary()
419
   * @generated
420
   */
421
  public EAttribute getLibrary_Name()
422
  {
423
    return (EAttribute)libraryEClass.getEStructuralFeatures().get(0);
424
  }
425
426
  /**
427
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.library.Library#getWriters <em>Writers</em>}'.
428
   * <!-- begin-user-doc -->
429
   * <!-- end-user-doc -->
430
   * @return the meta object for the containment reference list '<em>Writers</em>'.
431
   * @see org.eclipse.emf.test.models.sdo.library.Library#getWriters()
432
   * @see #getLibrary()
433
   * @generated
434
   */
435
  public EReference getLibrary_Writers()
436
  {
437
    return (EReference)libraryEClass.getEStructuralFeatures().get(1);
438
  }
439
440
  /**
441
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.library.Library#getBooks <em>Books</em>}'.
442
   * <!-- begin-user-doc -->
443
   * <!-- end-user-doc -->
444
   * @return the meta object for the containment reference list '<em>Books</em>'.
445
   * @see org.eclipse.emf.test.models.sdo.library.Library#getBooks()
446
   * @see #getLibrary()
447
   * @generated
448
   */
449
  public EReference getLibrary_Books()
450
  {
451
    return (EReference)libraryEClass.getEStructuralFeatures().get(2);
452
  }
453
454
  /**
455
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Writer <em>Writer</em>}'.
456
   * <!-- begin-user-doc -->
457
   * <!-- end-user-doc -->
458
   * @return the meta object for class '<em>Writer</em>'.
459
   * @see org.eclipse.emf.test.models.sdo.library.Writer
460
   * @generated
461
   */
462
  public EClass getWriter()
463
  {
464
    return writerEClass;
465
  }
466
467
  /**
468
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}'.
469
   * <!-- begin-user-doc -->
470
   * <!-- end-user-doc -->
471
   * @return the meta object for the attribute '<em>Name</em>'.
472
   * @see org.eclipse.emf.test.models.sdo.library.Writer#getName()
473
   * @see #getWriter()
474
   * @generated
475
   */
476
  public EAttribute getWriter_Name()
477
  {
478
    return (EAttribute)writerEClass.getEStructuralFeatures().get(0);
479
  }
480
481
  /**
482
   * Returns the meta object for the reference list '{@link org.eclipse.emf.test.models.sdo.library.Writer#getBooks <em>Books</em>}'.
483
   * <!-- begin-user-doc -->
484
   * <!-- end-user-doc -->
485
   * @return the meta object for the reference list '<em>Books</em>'.
486
   * @see org.eclipse.emf.test.models.sdo.library.Writer#getBooks()
487
   * @see #getWriter()
488
   * @generated
489
   */
490
  public EReference getWriter_Books()
491
  {
492
    return (EReference)writerEClass.getEStructuralFeatures().get(1);
493
  }
494
495
  /**
496
   * Returns the meta object for enum '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}'.
497
   * <!-- begin-user-doc -->
498
   * <!-- end-user-doc -->
499
   * @return the meta object for enum '<em>Book Category</em>'.
500
   * @see org.eclipse.emf.test.models.sdo.library.BookCategory
501
   * @generated
502
   */
503
  public EEnum getBookCategory()
504
  {
505
    return bookCategoryEEnum;
506
  }
507
508
  /**
509
   * Returns the factory that creates the instances of the model.
510
   * <!-- begin-user-doc -->
511
   * <!-- end-user-doc -->
512
   * @return the factory that creates the instances of the model.
513
   * @generated
514
   */
515
  public SDOLibraryFactory getSDOLibraryFactory()
516
  {
517
    return (SDOLibraryFactory)getEFactoryInstance();
518
  }
519
520
  /**
521
   * <!-- begin-user-doc -->
522
   * <!-- end-user-doc -->
523
   * @generated
524
   */
525
  private boolean isCreated = false;
526
527
  /**
528
   * Creates the meta-model objects for the package.  This method is
529
   * guarded to have no affect on any invocation but its first.
530
   * <!-- begin-user-doc -->
531
   * <!-- end-user-doc -->
532
   * @generated
533
   */
534
  public void createPackageContents()
535
  {
536
    if (isCreated) return;
537
    isCreated = true;
538
539
    // Create classes and their features
540
    bookEClass = createEClass(BOOK);
541
    createEAttribute(bookEClass, BOOK__TITLE);
542
    createEAttribute(bookEClass, BOOK__PAGES);
543
    createEAttribute(bookEClass, BOOK__CATEGORY);
544
    createEReference(bookEClass, BOOK__AUTHOR);
545
546
    libraryEClass = createEClass(LIBRARY);
547
    createEAttribute(libraryEClass, LIBRARY__NAME);
548
    createEReference(libraryEClass, LIBRARY__WRITERS);
549
    createEReference(libraryEClass, LIBRARY__BOOKS);
550
551
    writerEClass = createEClass(WRITER);
552
    createEAttribute(writerEClass, WRITER__NAME);
553
    createEReference(writerEClass, WRITER__BOOKS);
554
555
    // Create enums
556
    bookCategoryEEnum = createEEnum(BOOK_CATEGORY);
557
  }
558
559
  /**
560
   * <!-- begin-user-doc -->
561
   * <!-- end-user-doc -->
562
   * @generated
563
   */
564
  private boolean isInitialized = false;
565
566
  /**
567
   * Complete the initialization of the package and its meta-model.  This
568
   * method is guarded to have no affect on any invocation but its first.
569
   * <!-- begin-user-doc -->
570
   * <!-- end-user-doc -->
571
   * @generated
572
   */
573
  public void initializePackageContents()
574
  {
575
    if (isInitialized) return;
576
    isInitialized = true;
577
578
    // Initialize package
579
    setName(eNAME);
580
    setNsPrefix(eNS_PREFIX);
581
    setNsURI(eNS_URI);
582
583
    // Create type parameters
584
585
    // Set bounds for type parameters
586
587
    // Add supertypes to classes
588
589
    // Initialize classes and features; add operations and parameters
590
    initEClass(bookEClass, Book.class, "Book", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
591
    initEAttribute(getBook_Title(), ecorePackage.getEString(), "title", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
592
    initEAttribute(getBook_Pages(), ecorePackage.getEInt(), "pages", "100", 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
593
    initEAttribute(getBook_Category(), this.getBookCategory(), "category", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
594
    initEReference(getBook_Author(), this.getWriter(), this.getWriter_Books(), "author", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
595
596
    initEClass(libraryEClass, Library.class, "Library", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
597
    initEAttribute(getLibrary_Name(), ecorePackage.getEString(), "name", null, 0, 1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
598
    initEReference(getLibrary_Writers(), this.getWriter(), null, "writers", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
599
    initEReference(getLibrary_Books(), this.getBook(), null, "books", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
600
601
    initEClass(writerEClass, Writer.class, "Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
602
    initEAttribute(getWriter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
603
    initEReference(getWriter_Books(), this.getBook(), this.getBook_Author(), "books", null, 0, -1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
604
605
    // Initialize enums and add enum literals
606
    initEEnum(bookCategoryEEnum, BookCategory.class, "BookCategory");
607
    addEEnumLiteral(bookCategoryEEnum, BookCategory.MYSTERY);
608
    addEEnumLiteral(bookCategoryEEnum, BookCategory.SCIENCE_FICTION);
609
    addEEnumLiteral(bookCategoryEEnum, BookCategory.BIOGRAPHY);
610
611
    // Create resource
612
    createResource(eNS_URI);
613
  }
614
615
  /**
616
   * <!-- begin-user-doc -->
617
   * Defines literals for the meta objects that represent
618
   * <ul>
619
   *   <li>each class,</li>
620
   *   <li>each feature of each class,</li>
621
   *   <li>each enum,</li>
622
   *   <li>and each data type</li>
623
   * </ul>
624
   * <!-- end-user-doc -->
625
   * @generated
626
   */
627
  public interface Literals
628
  {
629
    /**
630
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl <em>Book</em>}' class.
631
     * <!-- begin-user-doc -->
632
     * <!-- end-user-doc -->
633
     * @see org.eclipse.emf.test.models.sdo.library.impl.BookImpl
634
     * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBook()
635
     * @generated
636
     */
637
    public static final EClass BOOK = eINSTANCE.getBook();
638
639
    /**
640
     * The meta object literal for the '<em><b>Title</b></em>' attribute feature.
641
     * <!-- begin-user-doc -->
642
     * <!-- end-user-doc -->
643
     * @generated
644
     */
645
    public static final EAttribute BOOK__TITLE = eINSTANCE.getBook_Title();
646
647
    /**
648
     * The meta object literal for the '<em><b>Pages</b></em>' attribute feature.
649
     * <!-- begin-user-doc -->
650
     * <!-- end-user-doc -->
651
     * @generated
652
     */
653
    public static final EAttribute BOOK__PAGES = eINSTANCE.getBook_Pages();
654
655
    /**
656
     * The meta object literal for the '<em><b>Category</b></em>' attribute feature.
657
     * <!-- begin-user-doc -->
658
     * <!-- end-user-doc -->
659
     * @generated
660
     */
661
    public static final EAttribute BOOK__CATEGORY = eINSTANCE.getBook_Category();
662
663
    /**
664
     * The meta object literal for the '<em><b>Author</b></em>' reference feature.
665
     * <!-- begin-user-doc -->
666
     * <!-- end-user-doc -->
667
     * @generated
668
     */
669
    public static final EReference BOOK__AUTHOR = eINSTANCE.getBook_Author();
670
671
    /**
672
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl <em>Library</em>}' class.
673
     * <!-- begin-user-doc -->
674
     * <!-- end-user-doc -->
675
     * @see org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl
676
     * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getLibrary()
677
     * @generated
678
     */
679
    public static final EClass LIBRARY = eINSTANCE.getLibrary();
680
681
    /**
682
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
683
     * <!-- begin-user-doc -->
684
     * <!-- end-user-doc -->
685
     * @generated
686
     */
687
    public static final EAttribute LIBRARY__NAME = eINSTANCE.getLibrary_Name();
688
689
    /**
690
     * The meta object literal for the '<em><b>Writers</b></em>' containment reference list feature.
691
     * <!-- begin-user-doc -->
692
     * <!-- end-user-doc -->
693
     * @generated
694
     */
695
    public static final EReference LIBRARY__WRITERS = eINSTANCE.getLibrary_Writers();
696
697
    /**
698
     * The meta object literal for the '<em><b>Books</b></em>' containment reference list feature.
699
     * <!-- begin-user-doc -->
700
     * <!-- end-user-doc -->
701
     * @generated
702
     */
703
    public static final EReference LIBRARY__BOOKS = eINSTANCE.getLibrary_Books();
704
705
    /**
706
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl <em>Writer</em>}' class.
707
     * <!-- begin-user-doc -->
708
     * <!-- end-user-doc -->
709
     * @see org.eclipse.emf.test.models.sdo.library.impl.WriterImpl
710
     * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getWriter()
711
     * @generated
712
     */
713
    public static final EClass WRITER = eINSTANCE.getWriter();
714
715
    /**
716
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
717
     * <!-- begin-user-doc -->
718
     * <!-- end-user-doc -->
719
     * @generated
720
     */
721
    public static final EAttribute WRITER__NAME = eINSTANCE.getWriter_Name();
722
723
    /**
724
     * The meta object literal for the '<em><b>Books</b></em>' reference list feature.
725
     * <!-- begin-user-doc -->
726
     * <!-- end-user-doc -->
727
     * @generated
728
     */
729
    public static final EReference WRITER__BOOKS = eINSTANCE.getWriter_Books();
730
731
    /**
732
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}' enum.
733
     * <!-- begin-user-doc -->
734
     * <!-- end-user-doc -->
735
     * @see org.eclipse.emf.test.models.sdo.library.BookCategory
736
     * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBookCategory()
737
     * @generated
738
     */
739
    public static final EEnum BOOK_CATEGORY = eINSTANCE.getBookCategory();
740
741
  }
742
743
} //SDOLibraryPackageImpl
(-)src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryFactoryImpl.java (-209 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SDOLibraryFactoryImpl.java,v 1.2 2007/01/18 22:06:47 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EDataType;
21
import org.eclipse.emf.ecore.EObject;
22
import org.eclipse.emf.ecore.EPackage;
23
24
import org.eclipse.emf.ecore.impl.EFactoryImpl;
25
26
import org.eclipse.emf.ecore.plugin.EcorePlugin;
27
28
import org.eclipse.emf.test.models.sdo.library.*;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model <b>Factory</b>.
33
 * <!-- end-user-doc -->
34
 * @generated
35
 */
36
public class SDOLibraryFactoryImpl extends EFactoryImpl implements SDOLibraryFactory
37
{
38
  /**
39
   * The singleton instance of the factory.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public static final SDOLibraryFactoryImpl eINSTANCE = init();
45
46
  /**
47
   * Creates the default factory implementation.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @generated
51
   */
52
  public static SDOLibraryFactoryImpl init()
53
  {
54
    try
55
    {
56
      SDOLibraryFactoryImpl theSDOLibraryFactory = (SDOLibraryFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/SDOLibrary"); 
57
      if (theSDOLibraryFactory != null)
58
      {
59
        return theSDOLibraryFactory;
60
      }
61
    }
62
    catch (Exception exception)
63
    {
64
      EcorePlugin.INSTANCE.log(exception);
65
    }
66
    return new SDOLibraryFactoryImpl();
67
  }
68
69
  /**
70
   * Creates an instance of the factory.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @generated
74
   */
75
  public SDOLibraryFactoryImpl()
76
  {
77
    super();
78
  }
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  @Override
86
  public EObject create(EClass eClass)
87
  {
88
    switch (eClass.getClassifierID())
89
    {
90
      case SDOLibraryPackageImpl.BOOK: return (EObject)createBook();
91
      case SDOLibraryPackageImpl.LIBRARY: return (EObject)createLibrary();
92
      case SDOLibraryPackageImpl.WRITER: return (EObject)createWriter();
93
      default:
94
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
95
    }
96
  }
97
98
  /**
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
101
   * @generated
102
   */
103
  @Override
104
  public Object createFromString(EDataType eDataType, String initialValue)
105
  {
106
    switch (eDataType.getClassifierID())
107
    {
108
      case SDOLibraryPackageImpl.BOOK_CATEGORY:
109
        return createBookCategoryFromString(eDataType, initialValue);
110
      default:
111
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
112
    }
113
  }
114
115
  /**
116
   * <!-- begin-user-doc -->
117
   * <!-- end-user-doc -->
118
   * @generated
119
   */
120
  @Override
121
  public String convertToString(EDataType eDataType, Object instanceValue)
122
  {
123
    switch (eDataType.getClassifierID())
124
    {
125
      case SDOLibraryPackageImpl.BOOK_CATEGORY:
126
        return convertBookCategoryToString(eDataType, instanceValue);
127
      default:
128
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
129
    }
130
  }
131
132
  /**
133
   * <!-- begin-user-doc -->
134
   * <!-- end-user-doc -->
135
   * @generated
136
   */
137
  public Book createBook()
138
  {
139
    BookImpl book = new BookImpl();
140
    return book;
141
  }
142
143
  /**
144
   * <!-- begin-user-doc -->
145
   * <!-- end-user-doc -->
146
   * @generated
147
   */
148
  public Library createLibrary()
149
  {
150
    LibraryImpl library = new LibraryImpl();
151
    return library;
152
  }
153
154
  /**
155
   * <!-- begin-user-doc -->
156
   * <!-- end-user-doc -->
157
   * @generated
158
   */
159
  public Writer createWriter()
160
  {
161
    WriterImpl writer = new WriterImpl();
162
    return writer;
163
  }
164
165
  /**
166
   * <!-- begin-user-doc -->
167
   * <!-- end-user-doc -->
168
   * @generated
169
   */
170
  public BookCategory createBookCategoryFromString(EDataType eDataType, String initialValue)
171
  {
172
    BookCategory result = BookCategory.get(initialValue);
173
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
174
    return result;
175
  }
176
177
  /**
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  public String convertBookCategoryToString(EDataType eDataType, Object instanceValue)
183
  {
184
    return instanceValue == null ? null : instanceValue.toString();
185
  }
186
187
  /**
188
   * <!-- begin-user-doc -->
189
   * <!-- end-user-doc -->
190
   * @generated
191
   */
192
  public SDOLibraryPackageImpl getSDOLibraryPackageImpl()
193
  {
194
    return (SDOLibraryPackageImpl)getEPackage();
195
  }
196
197
  /**
198
   * <!-- begin-user-doc -->
199
   * <!-- end-user-doc -->
200
   * @deprecated
201
   * @generated
202
   */
203
  @Deprecated
204
  public static SDOLibraryPackageImpl getPackage()
205
  {
206
    return SDOLibraryPackageImpl.eINSTANCE;
207
  }
208
209
} //SDOLibraryFactoryImpl
(-)src/org/eclipse/emf/test/models/personal/util/PersonalSwitch.java (-269 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.personal.*;
25
26
import org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl
39
 * @generated
40
 */
41
public class PersonalSwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static PersonalPackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public PersonalSwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = PersonalPackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case PersonalPackageImpl.DOCUMENT_ROOT:
112
      {
113
        DocumentRoot documentRoot = (DocumentRoot)theEObject;
114
        T result = caseDocumentRoot(documentRoot);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      case PersonalPackageImpl.LINK_TYPE:
119
      {
120
        LinkType linkType = (LinkType)theEObject;
121
        T result = caseLinkType(linkType);
122
        if (result == null) result = defaultCase(theEObject);
123
        return result;
124
      }
125
      case PersonalPackageImpl.NAME_TYPE:
126
      {
127
        NameType nameType = (NameType)theEObject;
128
        T result = caseNameType(nameType);
129
        if (result == null) result = defaultCase(theEObject);
130
        return result;
131
      }
132
      case PersonalPackageImpl.PERSONNEL_TYPE:
133
      {
134
        PersonnelType personnelType = (PersonnelType)theEObject;
135
        T result = casePersonnelType(personnelType);
136
        if (result == null) result = defaultCase(theEObject);
137
        return result;
138
      }
139
      case PersonalPackageImpl.PERSON_TYPE:
140
      {
141
        PersonType personType = (PersonType)theEObject;
142
        T result = casePersonType(personType);
143
        if (result == null) result = defaultCase(theEObject);
144
        return result;
145
      }
146
      case PersonalPackageImpl.URL_TYPE:
147
      {
148
        UrlType urlType = (UrlType)theEObject;
149
        T result = caseUrlType(urlType);
150
        if (result == null) result = defaultCase(theEObject);
151
        return result;
152
      }
153
      default: return defaultCase(theEObject);
154
    }
155
  }
156
157
  /**
158
   * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'.
159
   * <!-- begin-user-doc -->
160
   * This implementation returns null;
161
   * returning a non-null result will terminate the switch.
162
   * <!-- end-user-doc -->
163
   * @param object the target of the switch.
164
   * @return the result of interpreting the object as an instance of '<em>Document Root</em>'.
165
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
166
   * @generated
167
   */
168
  public T caseDocumentRoot(DocumentRoot object)
169
  {
170
    return null;
171
  }
172
173
  /**
174
   * Returns the result of interpreting the object as an instance of '<em>Link Type</em>'.
175
   * <!-- begin-user-doc -->
176
   * This implementation returns null;
177
   * returning a non-null result will terminate the switch.
178
   * <!-- end-user-doc -->
179
   * @param object the target of the switch.
180
   * @return the result of interpreting the object as an instance of '<em>Link Type</em>'.
181
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
182
   * @generated
183
   */
184
  public T caseLinkType(LinkType object)
185
  {
186
    return null;
187
  }
188
189
  /**
190
   * Returns the result of interpreting the object as an instance of '<em>Name Type</em>'.
191
   * <!-- begin-user-doc -->
192
   * This implementation returns null;
193
   * returning a non-null result will terminate the switch.
194
   * <!-- end-user-doc -->
195
   * @param object the target of the switch.
196
   * @return the result of interpreting the object as an instance of '<em>Name Type</em>'.
197
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
198
   * @generated
199
   */
200
  public T caseNameType(NameType object)
201
  {
202
    return null;
203
  }
204
205
  /**
206
   * Returns the result of interpreting the object as an instance of '<em>Personnel Type</em>'.
207
   * <!-- begin-user-doc -->
208
   * This implementation returns null;
209
   * returning a non-null result will terminate the switch.
210
   * <!-- end-user-doc -->
211
   * @param object the target of the switch.
212
   * @return the result of interpreting the object as an instance of '<em>Personnel Type</em>'.
213
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
214
   * @generated
215
   */
216
  public T casePersonnelType(PersonnelType object)
217
  {
218
    return null;
219
  }
220
221
  /**
222
   * Returns the result of interpreting the object as an instance of '<em>Person Type</em>'.
223
   * <!-- begin-user-doc -->
224
   * This implementation returns null;
225
   * returning a non-null result will terminate the switch.
226
   * <!-- end-user-doc -->
227
   * @param object the target of the switch.
228
   * @return the result of interpreting the object as an instance of '<em>Person Type</em>'.
229
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
230
   * @generated
231
   */
232
  public T casePersonType(PersonType object)
233
  {
234
    return null;
235
  }
236
237
  /**
238
   * Returns the result of interpreting the object as an instance of '<em>Url Type</em>'.
239
   * <!-- begin-user-doc -->
240
   * This implementation returns null;
241
   * returning a non-null result will terminate the switch.
242
   * <!-- end-user-doc -->
243
   * @param object the target of the switch.
244
   * @return the result of interpreting the object as an instance of '<em>Url Type</em>'.
245
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
246
   * @generated
247
   */
248
  public T caseUrlType(UrlType object)
249
  {
250
    return null;
251
  }
252
253
  /**
254
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
255
   * <!-- begin-user-doc -->
256
   * This implementation returns null;
257
   * returning a non-null result will terminate the switch, but this is the last case anyway.
258
   * <!-- end-user-doc -->
259
   * @param object the target of the switch.
260
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
261
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
262
   * @generated
263
   */
264
  public T defaultCase(EObject object)
265
  {
266
    return null;
267
  }
268
269
} //PersonalSwitch
(-)src/org/eclipse/emf/test/models/personal/util/PersonalResourceImpl.java (-44 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalResourceImpl.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * The <b>Resource </b> associated with the package.
26
 * <!-- end-user-doc -->
27
 * @see org.eclipse.emf.test.models.personal.util.PersonalResourceFactoryImpl
28
 * @generated
29
 */
30
public class PersonalResourceImpl extends XMLResourceImpl
31
{
32
  /**
33
   * Creates an instance of the resource.
34
   * <!-- begin-user-doc -->
35
   * <!-- end-user-doc -->
36
   * @param uri the URI of the new resource.
37
   * @generated
38
   */
39
  public PersonalResourceImpl(URI uri)
40
  {
41
    super(uri);
42
  }
43
44
} //PersonalResourceImpl
(-)src/org/eclipse/emf/test/models/ipo/USState.java (-300 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: USState.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import java.util.Arrays;
20
import java.util.Collections;
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the literals of the enumeration '<em><b>US State</b></em>',
26
 * and utility methods for working with them.
27
 * <!-- end-user-doc -->
28
 * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSState()
29
 * @model extendedMetaData="name='USState'"
30
 * @generated
31
 */
32
public enum USState implements InternalUSState
33
{
34
  /**
35
   * The '<em><b>AK</b></em>' literal object.
36
   * <!-- begin-user-doc -->
37
   * <!-- end-user-doc -->
38
   * @see #AK_VALUE
39
   * @generated
40
   * @ordered
41
   */
42
  AK(0, "AK", "AK"),
43
44
  /**
45
   * The '<em><b>AL</b></em>' literal object.
46
   * <!-- begin-user-doc -->
47
   * <!-- end-user-doc -->
48
   * @see #AL_VALUE
49
   * @generated
50
   * @ordered
51
   */
52
  AL(1, "AL", "AL"),
53
54
  /**
55
   * The '<em><b>AR</b></em>' literal object.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @see #AR_VALUE
59
   * @generated
60
   * @ordered
61
   */
62
  AR(2, "AR", "AR"),
63
64
  /**
65
   * The '<em><b>PA</b></em>' literal object.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @see #PA_VALUE
69
   * @generated
70
   * @ordered
71
   */
72
  PA(3, "PA", "PA");
73
74
  /**
75
   * The '<em><b>AK</b></em>' literal value.
76
   * <!-- begin-user-doc -->
77
   * <p>
78
   * If the meaning of '<em><b>AK</b></em>' literal object isn't clear,
79
   * there really should be more of a description here...
80
   * </p>
81
   * <!-- end-user-doc -->
82
   * @see #AK
83
   * @model
84
   * @generated
85
   * @ordered
86
   */
87
  public static final int AK_VALUE = 0;
88
89
  /**
90
   * The '<em><b>AL</b></em>' literal value.
91
   * <!-- begin-user-doc -->
92
   * <p>
93
   * If the meaning of '<em><b>AL</b></em>' literal object isn't clear,
94
   * there really should be more of a description here...
95
   * </p>
96
   * <!-- end-user-doc -->
97
   * @see #AL
98
   * @model
99
   * @generated
100
   * @ordered
101
   */
102
  public static final int AL_VALUE = 1;
103
104
  /**
105
   * The '<em><b>AR</b></em>' literal value.
106
   * <!-- begin-user-doc -->
107
   * <p>
108
   * If the meaning of '<em><b>AR</b></em>' literal object isn't clear,
109
   * there really should be more of a description here...
110
   * </p>
111
   * <!-- end-user-doc -->
112
   * @see #AR
113
   * @model
114
   * @generated
115
   * @ordered
116
   */
117
  public static final int AR_VALUE = 2;
118
119
  /**
120
   * The '<em><b>PA</b></em>' literal value.
121
   * <!-- begin-user-doc -->
122
   * <p>
123
   * If the meaning of '<em><b>PA</b></em>' literal object isn't clear,
124
   * there really should be more of a description here...
125
   * </p>
126
   * <!-- end-user-doc -->
127
   * @see #PA
128
   * @model
129
   * @generated
130
   * @ordered
131
   */
132
  public static final int PA_VALUE = 3;
133
134
  /**
135
   * An array of all the '<em><b>US State</b></em>' enumerators.
136
   * <!-- begin-user-doc -->
137
   * <!-- end-user-doc -->
138
   * @generated
139
   */
140
  private static final USState[] VALUES_ARRAY =
141
    new USState[]
142
    {
143
      AK,
144
      AL,
145
      AR,
146
      PA,
147
    };
148
149
  /**
150
   * A public read-only list of all the '<em><b>US State</b></em>' enumerators.
151
   * <!-- begin-user-doc -->
152
   * <!-- end-user-doc -->
153
   * @generated
154
   */
155
  public static final List<USState> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
156
157
  /**
158
   * Returns the '<em><b>US State</b></em>' literal with the specified literal value.
159
   * <!-- begin-user-doc -->
160
   * <!-- end-user-doc -->
161
   * @generated
162
   */
163
  public static USState get(String literal)
164
  {
165
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
166
    {
167
      USState result = VALUES_ARRAY[i];
168
      if (result.toString().equals(literal))
169
      {
170
        return result;
171
      }
172
    }
173
    return null;
174
  }
175
176
  /**
177
   * Returns the '<em><b>US State</b></em>' literal with the specified name.
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  public static USState getByName(String name)
183
  {
184
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
185
    {
186
      USState result = VALUES_ARRAY[i];
187
      if (result.getName().equals(name))
188
      {
189
        return result;
190
      }
191
    }
192
    return null;
193
  }
194
195
  /**
196
   * Returns the '<em><b>US State</b></em>' literal with the specified integer value.
197
   * <!-- begin-user-doc -->
198
   * <!-- end-user-doc -->
199
   * @generated
200
   */
201
  public static USState get(int value)
202
  {
203
    switch (value)
204
    {
205
      case AK_VALUE: return AK;
206
      case AL_VALUE: return AL;
207
      case AR_VALUE: return AR;
208
      case PA_VALUE: return PA;
209
    }
210
    return null;
211
  }
212
213
  /**
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   */
218
  private final int value;
219
220
  /**
221
   * <!-- begin-user-doc -->
222
   * <!-- end-user-doc -->
223
   * @generated
224
   */
225
  private final String name;
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  private final String literal;
233
234
  /**
235
   * Only this class can construct instances.
236
   * <!-- begin-user-doc -->
237
   * <!-- end-user-doc -->
238
   * @generated
239
   */
240
  private USState(int value, String name, String literal)
241
  {
242
    this.value = value;
243
    this.name = name;
244
    this.literal = literal;
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public int getValue()
253
  {
254
    return value;
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @generated
261
   */
262
  public String getName()
263
  {
264
    return name;
265
  }
266
267
  /**
268
   * <!-- begin-user-doc -->
269
   * <!-- end-user-doc -->
270
   * @generated
271
   */
272
  public String getLiteral()
273
  {
274
    return literal;
275
  }
276
277
  /**
278
   * Returns the literal value of the enumerator, which is its string representation.
279
   * <!-- begin-user-doc -->
280
   * <!-- end-user-doc -->
281
   * @generated
282
   */
283
  @Override
284
  public String toString()
285
  {
286
    return literal;
287
  }
288
  
289
} //USState
290
291
/**
292
 * A private implementation interface used to hide the inheritance from Enumerator.
293
 * <!-- begin-user-doc -->
294
 * <!-- end-user-doc -->
295
 * @generated
296
 */
297
interface InternalUSState extends org.eclipse.emf.common.util.Enumerator
298
{
299
  // Empty
300
}
(-)src/org/eclipse/emf/test/models/ipo/Address.java (-117 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Address.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Address</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.ipo.Address#getName <em>Name</em>}</li>
29
 *   <li>{@link org.eclipse.emf.test.models.ipo.Address#getStreet <em>Street</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.ipo.Address#getCity <em>City</em>}</li>
31
 * </ul>
32
 * </p>
33
 *
34
 * @model extendedMetaData="name='Address' kind='elementOnly'"
35
 * @generated
36
 */
37
public interface Address
38
{
39
  /**
40
   * Returns the value of the '<em><b>Name</b></em>' attribute.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Name</em>' attribute isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Name</em>' attribute.
48
   * @see #setName(String)
49
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
50
   *        extendedMetaData="kind='element' name='name'"
51
   * @generated
52
   */
53
  String getName();
54
55
  /**
56
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getName <em>Name</em>}' attribute.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @param value the new value of the '<em>Name</em>' attribute.
60
   * @see #getName()
61
   * @generated
62
   */
63
  void setName(String value);
64
65
  /**
66
   * Returns the value of the '<em><b>Street</b></em>' attribute.
67
   * <!-- begin-user-doc -->
68
   * <p>
69
   * If the meaning of the '<em>Street</em>' attribute isn't clear,
70
   * there really should be more of a description here...
71
   * </p>
72
   * <!-- end-user-doc -->
73
   * @return the value of the '<em>Street</em>' attribute.
74
   * @see #setStreet(String)
75
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
76
   *        extendedMetaData="kind='element' name='street'"
77
   * @generated
78
   */
79
  String getStreet();
80
81
  /**
82
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getStreet <em>Street</em>}' attribute.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @param value the new value of the '<em>Street</em>' attribute.
86
   * @see #getStreet()
87
   * @generated
88
   */
89
  void setStreet(String value);
90
91
  /**
92
   * Returns the value of the '<em><b>City</b></em>' attribute.
93
   * <!-- begin-user-doc -->
94
   * <p>
95
   * If the meaning of the '<em>City</em>' attribute isn't clear,
96
   * there really should be more of a description here...
97
   * </p>
98
   * <!-- end-user-doc -->
99
   * @return the value of the '<em>City</em>' attribute.
100
   * @see #setCity(String)
101
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
102
   *        extendedMetaData="kind='element' name='city'"
103
   * @generated
104
   */
105
  String getCity();
106
107
  /**
108
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getCity <em>City</em>}' attribute.
109
   * <!-- begin-user-doc -->
110
   * <!-- end-user-doc -->
111
   * @param value the new value of the '<em>City</em>' attribute.
112
   * @see #getCity()
113
   * @generated
114
   */
115
  void setCity(String value);
116
117
} // Address
(-)src/org/eclipse/emf/test/models/ipo/PurchaseOrderType.java (-173 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PurchaseOrderType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import javax.xml.datatype.XMLGregorianCalendar;
20
21
22
/**
23
 * <!-- begin-user-doc -->
24
 * A representation of the model object '<em><b>Purchase Order Type</b></em>'.
25
 * <!-- end-user-doc -->
26
 *
27
 * <p>
28
 * The following features are supported:
29
 * <ul>
30
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo <em>Ship To</em>}</li>
31
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo <em>Bill To</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment <em>Comment</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems <em>Items</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate <em>Order Date</em>}</li>
35
 * </ul>
36
 * </p>
37
 *
38
 * @model extendedMetaData="name='PurchaseOrderType' kind='elementOnly'"
39
 * @generated
40
 */
41
public interface PurchaseOrderType
42
{
43
  /**
44
   * Returns the value of the '<em><b>Ship To</b></em>' containment reference.
45
   * <!-- begin-user-doc -->
46
   * <p>
47
   * If the meaning of the '<em>Ship To</em>' containment reference isn't clear,
48
   * there really should be more of a description here...
49
   * </p>
50
   * <!-- end-user-doc -->
51
   * @return the value of the '<em>Ship To</em>' containment reference.
52
   * @see #setShipTo(Address)
53
   * @model containment="true" required="true"
54
   *        extendedMetaData="kind='element' name='shipTo'"
55
   * @generated
56
   */
57
  Address getShipTo();
58
59
  /**
60
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo <em>Ship To</em>}' containment reference.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @param value the new value of the '<em>Ship To</em>' containment reference.
64
   * @see #getShipTo()
65
   * @generated
66
   */
67
  void setShipTo(Address value);
68
69
  /**
70
   * Returns the value of the '<em><b>Bill To</b></em>' containment reference.
71
   * <!-- begin-user-doc -->
72
   * <p>
73
   * If the meaning of the '<em>Bill To</em>' containment reference isn't clear,
74
   * there really should be more of a description here...
75
   * </p>
76
   * <!-- end-user-doc -->
77
   * @return the value of the '<em>Bill To</em>' containment reference.
78
   * @see #setBillTo(Address)
79
   * @model containment="true" required="true"
80
   *        extendedMetaData="kind='element' name='billTo'"
81
   * @generated
82
   */
83
  Address getBillTo();
84
85
  /**
86
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo <em>Bill To</em>}' containment reference.
87
   * <!-- begin-user-doc -->
88
   * <!-- end-user-doc -->
89
   * @param value the new value of the '<em>Bill To</em>' containment reference.
90
   * @see #getBillTo()
91
   * @generated
92
   */
93
  void setBillTo(Address value);
94
95
  /**
96
   * Returns the value of the '<em><b>Comment</b></em>' attribute.
97
   * <!-- begin-user-doc -->
98
   * <p>
99
   * If the meaning of the '<em>Comment</em>' attribute isn't clear,
100
   * there really should be more of a description here...
101
   * </p>
102
   * <!-- end-user-doc -->
103
   * @return the value of the '<em>Comment</em>' attribute.
104
   * @see #setComment(String)
105
   * @model dataType="org.eclipse.emf.ecore.xml.type.String"
106
   *        extendedMetaData="kind='element' name='comment' namespace='##targetNamespace'"
107
   * @generated
108
   */
109
  String getComment();
110
111
  /**
112
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment <em>Comment</em>}' attribute.
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @param value the new value of the '<em>Comment</em>' attribute.
116
   * @see #getComment()
117
   * @generated
118
   */
119
  void setComment(String value);
120
121
  /**
122
   * Returns the value of the '<em><b>Items</b></em>' containment reference.
123
   * <!-- begin-user-doc -->
124
   * <p>
125
   * If the meaning of the '<em>Items</em>' containment reference isn't clear,
126
   * there really should be more of a description here...
127
   * </p>
128
   * <!-- end-user-doc -->
129
   * @return the value of the '<em>Items</em>' containment reference.
130
   * @see #setItems(Items)
131
   * @model containment="true" required="true"
132
   *        extendedMetaData="kind='element' name='items'"
133
   * @generated
134
   */
135
  Items getItems();
136
137
  /**
138
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems <em>Items</em>}' containment reference.
139
   * <!-- begin-user-doc -->
140
   * <!-- end-user-doc -->
141
   * @param value the new value of the '<em>Items</em>' containment reference.
142
   * @see #getItems()
143
   * @generated
144
   */
145
  void setItems(Items value);
146
147
  /**
148
   * Returns the value of the '<em><b>Order Date</b></em>' attribute.
149
   * <!-- begin-user-doc -->
150
   * <p>
151
   * If the meaning of the '<em>Order Date</em>' attribute isn't clear,
152
   * there really should be more of a description here...
153
   * </p>
154
   * <!-- end-user-doc -->
155
   * @return the value of the '<em>Order Date</em>' attribute.
156
   * @see #setOrderDate(XMLGregorianCalendar)
157
   * @model dataType="org.eclipse.emf.ecore.xml.type.DateTime"
158
   *        extendedMetaData="kind='attribute' name='orderDate'"
159
   * @generated
160
   */
161
  XMLGregorianCalendar getOrderDate();
162
163
  /**
164
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate <em>Order Date</em>}' attribute.
165
   * <!-- begin-user-doc -->
166
   * <!-- end-user-doc -->
167
   * @param value the new value of the '<em>Order Date</em>' attribute.
168
   * @see #getOrderDate()
169
   * @generated
170
   */
171
  void setOrderDate(XMLGregorianCalendar value);
172
173
} // PurchaseOrderType
(-)src/org/eclipse/emf/test/models/ipo/ItemType.java (-201 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: ItemType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import java.math.BigDecimal;
20
import java.math.BigInteger;
21
import javax.xml.datatype.XMLGregorianCalendar;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Item Type</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getProductName <em>Product Name</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getQuantity <em>Quantity</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getUSPrice <em>US Price</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getComment <em>Comment</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getShipDate <em>Ship Date</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getPartNum <em>Part Num</em>}</li>
37
 * </ul>
38
 * </p>
39
 *
40
 * @model extendedMetaData="name='item_._type' kind='elementOnly'"
41
 * @generated
42
 */
43
public interface ItemType
44
{
45
  /**
46
   * Returns the value of the '<em><b>Product Name</b></em>' attribute.
47
   * <!-- begin-user-doc -->
48
   * <p>
49
   * If the meaning of the '<em>Product Name</em>' attribute isn't clear,
50
   * there really should be more of a description here...
51
   * </p>
52
   * <!-- end-user-doc -->
53
   * @return the value of the '<em>Product Name</em>' attribute.
54
   * @see #setProductName(String)
55
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
56
   *        extendedMetaData="kind='element' name='productName'"
57
   * @generated
58
   */
59
  String getProductName();
60
61
  /**
62
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getProductName <em>Product Name</em>}' attribute.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @param value the new value of the '<em>Product Name</em>' attribute.
66
   * @see #getProductName()
67
   * @generated
68
   */
69
  void setProductName(String value);
70
71
  /**
72
   * Returns the value of the '<em><b>Quantity</b></em>' attribute.
73
   * <!-- begin-user-doc -->
74
   * <p>
75
   * If the meaning of the '<em>Quantity</em>' attribute isn't clear,
76
   * there really should be more of a description here...
77
   * </p>
78
   * <!-- end-user-doc -->
79
   * @return the value of the '<em>Quantity</em>' attribute.
80
   * @see #setQuantity(BigInteger)
81
   * @model dataType="org.eclipse.emf.test.models.ipo.QuantityType" required="true"
82
   *        extendedMetaData="kind='element' name='quantity'"
83
   * @generated
84
   */
85
  BigInteger getQuantity();
86
87
  /**
88
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getQuantity <em>Quantity</em>}' attribute.
89
   * <!-- begin-user-doc -->
90
   * <!-- end-user-doc -->
91
   * @param value the new value of the '<em>Quantity</em>' attribute.
92
   * @see #getQuantity()
93
   * @generated
94
   */
95
  void setQuantity(BigInteger value);
96
97
  /**
98
   * Returns the value of the '<em><b>US Price</b></em>' attribute.
99
   * <!-- begin-user-doc -->
100
   * <p>
101
   * If the meaning of the '<em>US Price</em>' attribute isn't clear,
102
   * there really should be more of a description here...
103
   * </p>
104
   * <!-- end-user-doc -->
105
   * @return the value of the '<em>US Price</em>' attribute.
106
   * @see #setUSPrice(BigDecimal)
107
   * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true"
108
   *        extendedMetaData="kind='element' name='USPrice'"
109
   * @generated
110
   */
111
  BigDecimal getUSPrice();
112
113
  /**
114
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getUSPrice <em>US Price</em>}' attribute.
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @param value the new value of the '<em>US Price</em>' attribute.
118
   * @see #getUSPrice()
119
   * @generated
120
   */
121
  void setUSPrice(BigDecimal value);
122
123
  /**
124
   * Returns the value of the '<em><b>Comment</b></em>' attribute.
125
   * <!-- begin-user-doc -->
126
   * <p>
127
   * If the meaning of the '<em>Comment</em>' attribute isn't clear,
128
   * there really should be more of a description here...
129
   * </p>
130
   * <!-- end-user-doc -->
131
   * @return the value of the '<em>Comment</em>' attribute.
132
   * @see #setComment(String)
133
   * @model dataType="org.eclipse.emf.ecore.xml.type.String"
134
   *        extendedMetaData="kind='element' name='comment' namespace='##targetNamespace'"
135
   * @generated
136
   */
137
  String getComment();
138
139
  /**
140
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getComment <em>Comment</em>}' attribute.
141
   * <!-- begin-user-doc -->
142
   * <!-- end-user-doc -->
143
   * @param value the new value of the '<em>Comment</em>' attribute.
144
   * @see #getComment()
145
   * @generated
146
   */
147
  void setComment(String value);
148
149
  /**
150
   * Returns the value of the '<em><b>Ship Date</b></em>' attribute.
151
   * <!-- begin-user-doc -->
152
   * <p>
153
   * If the meaning of the '<em>Ship Date</em>' attribute isn't clear,
154
   * there really should be more of a description here...
155
   * </p>
156
   * <!-- end-user-doc -->
157
   * @return the value of the '<em>Ship Date</em>' attribute.
158
   * @see #setShipDate(XMLGregorianCalendar)
159
   * @model dataType="org.eclipse.emf.ecore.xml.type.Date"
160
   *        extendedMetaData="kind='element' name='shipDate'"
161
   * @generated
162
   */
163
  XMLGregorianCalendar getShipDate();
164
165
  /**
166
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getShipDate <em>Ship Date</em>}' attribute.
167
   * <!-- begin-user-doc -->
168
   * <!-- end-user-doc -->
169
   * @param value the new value of the '<em>Ship Date</em>' attribute.
170
   * @see #getShipDate()
171
   * @generated
172
   */
173
  void setShipDate(XMLGregorianCalendar value);
174
175
  /**
176
   * Returns the value of the '<em><b>Part Num</b></em>' attribute.
177
   * <!-- begin-user-doc -->
178
   * <p>
179
   * If the meaning of the '<em>Part Num</em>' attribute isn't clear,
180
   * there really should be more of a description here...
181
   * </p>
182
   * <!-- end-user-doc -->
183
   * @return the value of the '<em>Part Num</em>' attribute.
184
   * @see #setPartNum(String)
185
   * @model dataType="org.eclipse.emf.test.models.ipo.SKU" required="true"
186
   *        extendedMetaData="kind='attribute' name='partNum'"
187
   * @generated
188
   */
189
  String getPartNum();
190
191
  /**
192
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getPartNum <em>Part Num</em>}' attribute.
193
   * <!-- begin-user-doc -->
194
   * <!-- end-user-doc -->
195
   * @param value the new value of the '<em>Part Num</em>' attribute.
196
   * @see #getPartNum()
197
   * @generated
198
   */
199
  void setPartNum(String value);
200
201
} // ItemType
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/MixedFactoryImpl.java (-269 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedFactoryImpl.java,v 1.2 2007/01/18 22:06:42 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EDataType;
21
import org.eclipse.emf.ecore.EObject;
22
import org.eclipse.emf.ecore.EPackage;
23
24
import org.eclipse.emf.ecore.impl.EFactoryImpl;
25
26
import org.eclipse.emf.ecore.plugin.EcorePlugin;
27
28
import org.eclipse.emf.test.models.personal.mixed.*;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model <b>Factory</b>.
33
 * <!-- end-user-doc -->
34
 * @generated
35
 */
36
public class MixedFactoryImpl extends EFactoryImpl implements MixedFactory
37
{
38
  /**
39
   * The singleton instance of the factory.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public static final MixedFactoryImpl eINSTANCE = init();
45
46
  /**
47
   * Creates the default factory implementation.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @generated
51
   */
52
  public static MixedFactoryImpl init()
53
  {
54
    try
55
    {
56
      MixedFactoryImpl theMixedFactory = (MixedFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/personalMixed"); 
57
      if (theMixedFactory != null)
58
      {
59
        return theMixedFactory;
60
      }
61
    }
62
    catch (Exception exception)
63
    {
64
      EcorePlugin.INSTANCE.log(exception);
65
    }
66
    return new MixedFactoryImpl();
67
  }
68
69
  /**
70
   * Creates an instance of the factory.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @generated
74
   */
75
  public MixedFactoryImpl()
76
  {
77
    super();
78
  }
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  @Override
86
  public EObject create(EClass eClass)
87
  {
88
    switch (eClass.getClassifierID())
89
    {
90
      case MixedPackageImpl.DOCUMENT_ROOT: return (EObject)createDocumentRoot();
91
      case MixedPackageImpl.LINK_TYPE: return (EObject)createLinkType();
92
      case MixedPackageImpl.NAME_TYPE: return (EObject)createNameType();
93
      case MixedPackageImpl.PERSONNEL_TYPE: return (EObject)createPersonnelType();
94
      case MixedPackageImpl.PERSON_TYPE: return (EObject)createPersonType();
95
      case MixedPackageImpl.URL_TYPE: return (EObject)createUrlType();
96
      default:
97
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
98
    }
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  @Override
107
  public Object createFromString(EDataType eDataType, String initialValue)
108
  {
109
    switch (eDataType.getClassifierID())
110
    {
111
      case MixedPackageImpl.CONTR_TYPE:
112
        return createContrTypeFromString(eDataType, initialValue);
113
      case MixedPackageImpl.CONTR_TYPE_OBJECT:
114
        return createContrTypeObjectFromString(eDataType, initialValue);
115
      default:
116
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
117
    }
118
  }
119
120
  /**
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @generated
124
   */
125
  @Override
126
  public String convertToString(EDataType eDataType, Object instanceValue)
127
  {
128
    switch (eDataType.getClassifierID())
129
    {
130
      case MixedPackageImpl.CONTR_TYPE:
131
        return convertContrTypeToString(eDataType, instanceValue);
132
      case MixedPackageImpl.CONTR_TYPE_OBJECT:
133
        return convertContrTypeObjectToString(eDataType, instanceValue);
134
      default:
135
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
136
    }
137
  }
138
139
  /**
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @generated
143
   */
144
  public DocumentRoot createDocumentRoot()
145
  {
146
    DocumentRootImpl documentRoot = new DocumentRootImpl();
147
    return documentRoot;
148
  }
149
150
  /**
151
   * <!-- begin-user-doc -->
152
   * <!-- end-user-doc -->
153
   * @generated
154
   */
155
  public LinkType createLinkType()
156
  {
157
    LinkTypeImpl linkType = new LinkTypeImpl();
158
    return linkType;
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  public NameType createNameType()
167
  {
168
    NameTypeImpl nameType = new NameTypeImpl();
169
    return nameType;
170
  }
171
172
  /**
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   */
177
  public PersonnelType createPersonnelType()
178
  {
179
    PersonnelTypeImpl personnelType = new PersonnelTypeImpl();
180
    return personnelType;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  public PersonType createPersonType()
189
  {
190
    PersonTypeImpl personType = new PersonTypeImpl();
191
    return personType;
192
  }
193
194
  /**
195
   * <!-- begin-user-doc -->
196
   * <!-- end-user-doc -->
197
   * @generated
198
   */
199
  public UrlType createUrlType()
200
  {
201
    UrlTypeImpl urlType = new UrlTypeImpl();
202
    return urlType;
203
  }
204
205
  /**
206
   * <!-- begin-user-doc -->
207
   * <!-- end-user-doc -->
208
   * @generated
209
   */
210
  public ContrType createContrTypeFromString(EDataType eDataType, String initialValue)
211
  {
212
    ContrType result = ContrType.get(initialValue);
213
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
214
    return result;
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  public String convertContrTypeToString(EDataType eDataType, Object instanceValue)
223
  {
224
    return instanceValue == null ? null : instanceValue.toString();
225
  }
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  public ContrType createContrTypeObjectFromString(EDataType eDataType, String initialValue)
233
  {
234
    return createContrTypeFromString(MixedPackageImpl.Literals.CONTR_TYPE, initialValue);
235
  }
236
237
  /**
238
   * <!-- begin-user-doc -->
239
   * <!-- end-user-doc -->
240
   * @generated
241
   */
242
  public String convertContrTypeObjectToString(EDataType eDataType, Object instanceValue)
243
  {
244
    return convertContrTypeToString(MixedPackageImpl.Literals.CONTR_TYPE, instanceValue);
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public MixedPackageImpl getMixedPackageImpl()
253
  {
254
    return (MixedPackageImpl)getEPackage();
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @deprecated
261
   * @generated
262
   */
263
  @Deprecated
264
  public static MixedPackageImpl getPackage()
265
  {
266
    return MixedPackageImpl.eINSTANCE;
267
  }
268
269
} //MixedFactoryImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/PersonTypeImpl.java (-577 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import commonj.sdo.Sequence;
20
21
import java.math.BigInteger;
22
23
import java.util.Collection;
24
import java.util.List;
25
26
import org.eclipse.emf.common.notify.Notification;
27
import org.eclipse.emf.common.notify.NotificationChain;
28
29
import org.eclipse.emf.ecore.EClass;
30
import org.eclipse.emf.ecore.InternalEObject;
31
32
import org.eclipse.emf.ecore.impl.ENotificationImpl;
33
34
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
35
36
import org.eclipse.emf.ecore.sdo.util.BasicESequence;
37
import org.eclipse.emf.ecore.sdo.util.ESequence;
38
39
import org.eclipse.emf.ecore.util.BasicFeatureMap;
40
import org.eclipse.emf.ecore.util.FeatureMap;
41
import org.eclipse.emf.ecore.util.InternalEList;
42
43
import org.eclipse.emf.test.models.personal.mixed.ContrType;
44
import org.eclipse.emf.test.models.personal.mixed.LinkType;
45
import org.eclipse.emf.test.models.personal.mixed.NameType;
46
import org.eclipse.emf.test.models.personal.mixed.PersonType;
47
import org.eclipse.emf.test.models.personal.mixed.UrlType;
48
49
/**
50
 * <!-- begin-user-doc -->
51
 * An implementation of the model object '<em><b>Person Type</b></em>'.
52
 * <!-- end-user-doc -->
53
 * <p>
54
 * The following features are implemented:
55
 * <ul>
56
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getMixed <em>Mixed</em>}</li>
57
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getName <em>Name</em>}</li>
58
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getEmail <em>Email</em>}</li>
59
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getUrl <em>Url</em>}</li>
60
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getLink <em>Link</em>}</li>
61
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getAny <em>Any</em>}</li>
62
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getContr <em>Contr</em>}</li>
63
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getId <em>Id</em>}</li>
64
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getSalary <em>Salary</em>}</li>
65
 * </ul>
66
 * </p>
67
 *
68
 * @generated
69
 */
70
public class PersonTypeImpl extends EDataObjectImpl implements PersonType
71
{
72
  /**
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @generated
76
   */
77
  private static final long serialVersionUID = 1L;
78
79
  /**
80
   * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @see #getMixed()
84
   * @generated
85
   * @ordered
86
   */
87
  protected ESequence mixed;
88
89
  /**
90
   * The default value of the '{@link #getContr() <em>Contr</em>}' attribute.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @see #getContr()
94
   * @generated
95
   * @ordered
96
   */
97
  protected static final ContrType CONTR_EDEFAULT = ContrType.FALSE;
98
99
  /**
100
   * The cached value of the '{@link #getContr() <em>Contr</em>}' attribute.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @see #getContr()
104
   * @generated
105
   * @ordered
106
   */
107
  protected ContrType contr = CONTR_EDEFAULT;
108
109
  /**
110
   * This is true if the Contr attribute has been set.
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
113
   * @generated
114
   * @ordered
115
   */
116
  protected boolean contrESet;
117
118
  /**
119
   * The default value of the '{@link #getId() <em>Id</em>}' attribute.
120
   * <!-- begin-user-doc -->
121
   * <!-- end-user-doc -->
122
   * @see #getId()
123
   * @generated
124
   * @ordered
125
   */
126
  protected static final String ID_EDEFAULT = null;
127
128
  /**
129
   * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
130
   * <!-- begin-user-doc -->
131
   * <!-- end-user-doc -->
132
   * @see #getId()
133
   * @generated
134
   * @ordered
135
   */
136
  protected String id = ID_EDEFAULT;
137
138
  /**
139
   * The default value of the '{@link #getSalary() <em>Salary</em>}' attribute.
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @see #getSalary()
143
   * @generated
144
   * @ordered
145
   */
146
  protected static final BigInteger SALARY_EDEFAULT = null;
147
148
  /**
149
   * The cached value of the '{@link #getSalary() <em>Salary</em>}' attribute.
150
   * <!-- begin-user-doc -->
151
   * <!-- end-user-doc -->
152
   * @see #getSalary()
153
   * @generated
154
   * @ordered
155
   */
156
  protected BigInteger salary = SALARY_EDEFAULT;
157
158
  /**
159
   * <!-- begin-user-doc -->
160
   * <!-- end-user-doc -->
161
   * @generated
162
   */
163
  protected PersonTypeImpl()
164
  {
165
    super();
166
  }
167
168
  /**
169
   * <!-- begin-user-doc -->
170
   * <!-- end-user-doc -->
171
   * @generated
172
   */
173
  @Override
174
  protected EClass eStaticClass()
175
  {
176
    return MixedPackageImpl.Literals.PERSON_TYPE;
177
  }
178
179
  /**
180
   * <!-- begin-user-doc -->
181
   * <!-- end-user-doc -->
182
   * @generated
183
   */
184
  public Sequence getMixed()
185
  {
186
    if (mixed == null)
187
    {
188
      mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.PERSON_TYPE__MIXED));
189
    }
190
    return mixed;
191
  }
192
193
  /**
194
   * <!-- begin-user-doc -->
195
   * <!-- end-user-doc -->
196
   * @generated
197
   */
198
  public NameType getName()
199
  {
200
    return (NameType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.PERSON_TYPE__NAME, true);
201
  }
202
203
  /**
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   */
208
  public NotificationChain basicSetName(NameType newName, NotificationChain msgs)
209
  {
210
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.PERSON_TYPE__NAME, newName, msgs);
211
  }
212
213
  /**
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   */
218
  public void setName(NameType newName)
219
  {
220
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.PERSON_TYPE__NAME, newName);
221
  }
222
223
  /**
224
   * <!-- begin-user-doc -->
225
   * <!-- end-user-doc -->
226
   * @generated
227
   */
228
  public List<String> getEmail()
229
  {
230
    return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().list(MixedPackageImpl.Literals.PERSON_TYPE__EMAIL);
231
  }
232
233
  /**
234
   * <!-- begin-user-doc -->
235
   * <!-- end-user-doc -->
236
   * @generated
237
   */
238
  public List<UrlType> getUrl()
239
  {
240
    return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().list(MixedPackageImpl.Literals.PERSON_TYPE__URL);
241
  }
242
243
  /**
244
   * <!-- begin-user-doc -->
245
   * <!-- end-user-doc -->
246
   * @generated
247
   */
248
  public LinkType getLink()
249
  {
250
    return (LinkType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.PERSON_TYPE__LINK, true);
251
  }
252
253
  /**
254
   * <!-- begin-user-doc -->
255
   * <!-- end-user-doc -->
256
   * @generated
257
   */
258
  public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs)
259
  {
260
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.PERSON_TYPE__LINK, newLink, msgs);
261
  }
262
263
  /**
264
   * <!-- begin-user-doc -->
265
   * <!-- end-user-doc -->
266
   * @generated
267
   */
268
  public void setLink(LinkType newLink)
269
  {
270
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.PERSON_TYPE__LINK, newLink);
271
  }
272
273
  /**
274
   * <!-- begin-user-doc -->
275
   * <!-- end-user-doc -->
276
   * @generated
277
   */
278
  public Sequence getAny()
279
  {
280
    return new BasicESequence((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().<FeatureMap.Entry>list(MixedPackageImpl.Literals.PERSON_TYPE__ANY));
281
  }
282
283
  /**
284
   * <!-- begin-user-doc -->
285
   * <!-- end-user-doc -->
286
   * @generated
287
   */
288
  public ContrType getContr()
289
  {
290
    return contr;
291
  }
292
293
  /**
294
   * <!-- begin-user-doc -->
295
   * <!-- end-user-doc -->
296
   * @generated
297
   */
298
  public void setContr(ContrType newContr)
299
  {
300
    ContrType oldContr = contr;
301
    contr = newContr == null ? CONTR_EDEFAULT : newContr;
302
    boolean oldContrESet = contrESet;
303
    contrESet = true;
304
    if (eNotificationRequired())
305
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__CONTR, oldContr, contr, !oldContrESet));
306
  }
307
308
  /**
309
   * <!-- begin-user-doc -->
310
   * <!-- end-user-doc -->
311
   * @generated
312
   */
313
  public void unsetContr()
314
  {
315
    ContrType oldContr = contr;
316
    boolean oldContrESet = contrESet;
317
    contr = CONTR_EDEFAULT;
318
    contrESet = false;
319
    if (eNotificationRequired())
320
      eNotify(new ENotificationImpl(this, Notification.UNSET, MixedPackageImpl.PERSON_TYPE__CONTR, oldContr, CONTR_EDEFAULT, oldContrESet));
321
  }
322
323
  /**
324
   * <!-- begin-user-doc -->
325
   * <!-- end-user-doc -->
326
   * @generated
327
   */
328
  public boolean isSetContr()
329
  {
330
    return contrESet;
331
  }
332
333
  /**
334
   * <!-- begin-user-doc -->
335
   * <!-- end-user-doc -->
336
   * @generated
337
   */
338
  public String getId()
339
  {
340
    return id;
341
  }
342
343
  /**
344
   * <!-- begin-user-doc -->
345
   * <!-- end-user-doc -->
346
   * @generated
347
   */
348
  public void setId(String newId)
349
  {
350
    String oldId = id;
351
    id = newId;
352
    if (eNotificationRequired())
353
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__ID, oldId, id));
354
  }
355
356
  /**
357
   * <!-- begin-user-doc -->
358
   * <!-- end-user-doc -->
359
   * @generated
360
   */
361
  public BigInteger getSalary()
362
  {
363
    return salary;
364
  }
365
366
  /**
367
   * <!-- begin-user-doc -->
368
   * <!-- end-user-doc -->
369
   * @generated
370
   */
371
  public void setSalary(BigInteger newSalary)
372
  {
373
    BigInteger oldSalary = salary;
374
    salary = newSalary;
375
    if (eNotificationRequired())
376
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__SALARY, oldSalary, salary));
377
  }
378
379
  /**
380
   * <!-- begin-user-doc -->
381
   * <!-- end-user-doc -->
382
   * @generated
383
   */
384
  @Override
385
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
386
  {
387
    switch (featureID)
388
    {
389
      case MixedPackageImpl.PERSON_TYPE__MIXED:
390
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs);
391
      case MixedPackageImpl.PERSON_TYPE__NAME:
392
        return basicSetName(null, msgs);
393
      case MixedPackageImpl.PERSON_TYPE__URL:
394
        return ((InternalEList<?>)getUrl()).basicRemove(otherEnd, msgs);
395
      case MixedPackageImpl.PERSON_TYPE__LINK:
396
        return basicSetLink(null, msgs);
397
      case MixedPackageImpl.PERSON_TYPE__ANY:
398
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).basicRemove(otherEnd, msgs);
399
    }
400
    return super.eInverseRemove(otherEnd, featureID, msgs);
401
  }
402
403
  /**
404
   * <!-- begin-user-doc -->
405
   * <!-- end-user-doc -->
406
   * @generated
407
   */
408
  @Override
409
  public Object eGet(int featureID, boolean resolve, boolean coreType)
410
  {
411
    switch (featureID)
412
    {
413
      case MixedPackageImpl.PERSON_TYPE__MIXED:
414
        if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap();
415
        return getMixed();
416
      case MixedPackageImpl.PERSON_TYPE__NAME:
417
        return getName();
418
      case MixedPackageImpl.PERSON_TYPE__EMAIL:
419
        return getEmail();
420
      case MixedPackageImpl.PERSON_TYPE__URL:
421
        return getUrl();
422
      case MixedPackageImpl.PERSON_TYPE__LINK:
423
        return getLink();
424
      case MixedPackageImpl.PERSON_TYPE__ANY:
425
        if (coreType) return ((FeatureMap.Internal.Wrapper)getAny()).featureMap();
426
        return getAny();
427
      case MixedPackageImpl.PERSON_TYPE__CONTR:
428
        return getContr();
429
      case MixedPackageImpl.PERSON_TYPE__ID:
430
        return getId();
431
      case MixedPackageImpl.PERSON_TYPE__SALARY:
432
        return getSalary();
433
    }
434
    return super.eGet(featureID, resolve, coreType);
435
  }
436
437
  /**
438
   * <!-- begin-user-doc -->
439
   * <!-- end-user-doc -->
440
   * @generated
441
   */
442
  @SuppressWarnings("unchecked")
443
  @Override
444
  public void eSet(int featureID, Object newValue)
445
  {
446
    switch (featureID)
447
    {
448
      case MixedPackageImpl.PERSON_TYPE__MIXED:
449
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue);
450
        return;
451
      case MixedPackageImpl.PERSON_TYPE__NAME:
452
        setName((NameType)newValue);
453
        return;
454
      case MixedPackageImpl.PERSON_TYPE__EMAIL:
455
        getEmail().clear();
456
        getEmail().addAll((Collection<? extends String>)newValue);
457
        return;
458
      case MixedPackageImpl.PERSON_TYPE__URL:
459
        getUrl().clear();
460
        getUrl().addAll((Collection<? extends UrlType>)newValue);
461
        return;
462
      case MixedPackageImpl.PERSON_TYPE__LINK:
463
        setLink((LinkType)newValue);
464
        return;
465
      case MixedPackageImpl.PERSON_TYPE__ANY:
466
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).set(newValue);
467
        return;
468
      case MixedPackageImpl.PERSON_TYPE__CONTR:
469
        setContr((ContrType)newValue);
470
        return;
471
      case MixedPackageImpl.PERSON_TYPE__ID:
472
        setId((String)newValue);
473
        return;
474
      case MixedPackageImpl.PERSON_TYPE__SALARY:
475
        setSalary((BigInteger)newValue);
476
        return;
477
    }
478
    super.eSet(featureID, newValue);
479
  }
480
481
  /**
482
   * <!-- begin-user-doc -->
483
   * <!-- end-user-doc -->
484
   * @generated
485
   */
486
  @Override
487
  public void eUnset(int featureID)
488
  {
489
    switch (featureID)
490
    {
491
      case MixedPackageImpl.PERSON_TYPE__MIXED:
492
        ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear();
493
        return;
494
      case MixedPackageImpl.PERSON_TYPE__NAME:
495
        setName((NameType)null);
496
        return;
497
      case MixedPackageImpl.PERSON_TYPE__EMAIL:
498
        getEmail().clear();
499
        return;
500
      case MixedPackageImpl.PERSON_TYPE__URL:
501
        getUrl().clear();
502
        return;
503
      case MixedPackageImpl.PERSON_TYPE__LINK:
504
        setLink((LinkType)null);
505
        return;
506
      case MixedPackageImpl.PERSON_TYPE__ANY:
507
        ((FeatureMap.Internal.Wrapper)getAny()).featureMap().clear();
508
        return;
509
      case MixedPackageImpl.PERSON_TYPE__CONTR:
510
        unsetContr();
511
        return;
512
      case MixedPackageImpl.PERSON_TYPE__ID:
513
        setId(ID_EDEFAULT);
514
        return;
515
      case MixedPackageImpl.PERSON_TYPE__SALARY:
516
        setSalary(SALARY_EDEFAULT);
517
        return;
518
    }
519
    super.eUnset(featureID);
520
  }
521
522
  /**
523
   * <!-- begin-user-doc -->
524
   * <!-- end-user-doc -->
525
   * @generated
526
   */
527
  @Override
528
  public boolean eIsSet(int featureID)
529
  {
530
    switch (featureID)
531
    {
532
      case MixedPackageImpl.PERSON_TYPE__MIXED:
533
        return mixed != null && !mixed.featureMap().isEmpty();
534
      case MixedPackageImpl.PERSON_TYPE__NAME:
535
        return getName() != null;
536
      case MixedPackageImpl.PERSON_TYPE__EMAIL:
537
        return !getEmail().isEmpty();
538
      case MixedPackageImpl.PERSON_TYPE__URL:
539
        return !getUrl().isEmpty();
540
      case MixedPackageImpl.PERSON_TYPE__LINK:
541
        return getLink() != null;
542
      case MixedPackageImpl.PERSON_TYPE__ANY:
543
        return !((FeatureMap.Internal.Wrapper)getAny()).featureMap().isEmpty();
544
      case MixedPackageImpl.PERSON_TYPE__CONTR:
545
        return isSetContr();
546
      case MixedPackageImpl.PERSON_TYPE__ID:
547
        return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
548
      case MixedPackageImpl.PERSON_TYPE__SALARY:
549
        return SALARY_EDEFAULT == null ? salary != null : !SALARY_EDEFAULT.equals(salary);
550
    }
551
    return super.eIsSet(featureID);
552
  }
553
554
  /**
555
   * <!-- begin-user-doc -->
556
   * <!-- end-user-doc -->
557
   * @generated
558
   */
559
  @Override
560
  public String toString()
561
  {
562
    if (eIsProxy()) return super.toString();
563
564
    StringBuffer result = new StringBuffer(super.toString());
565
    result.append(" (mixed: ");
566
    result.append(mixed);
567
    result.append(", contr: ");
568
    if (contrESet) result.append(contr); else result.append("<unset>");
569
    result.append(", id: ");
570
    result.append(id);
571
    result.append(", salary: ");
572
    result.append(salary);
573
    result.append(')');
574
    return result.toString();
575
  }
576
577
} //PersonTypeImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/NameTypeImpl.java (-286 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: NameTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import commonj.sdo.Sequence;
20
21
import org.eclipse.emf.common.notify.NotificationChain;
22
23
import org.eclipse.emf.ecore.EClass;
24
import org.eclipse.emf.ecore.InternalEObject;
25
26
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
27
28
import org.eclipse.emf.ecore.sdo.util.BasicESequence;
29
import org.eclipse.emf.ecore.sdo.util.ESequence;
30
31
import org.eclipse.emf.ecore.util.BasicFeatureMap;
32
import org.eclipse.emf.ecore.util.FeatureMap;
33
import org.eclipse.emf.ecore.util.InternalEList;
34
35
import org.eclipse.emf.test.models.personal.mixed.NameType;
36
37
/**
38
 * <!-- begin-user-doc -->
39
 * An implementation of the model object '<em><b>Name Type</b></em>'.
40
 * <!-- end-user-doc -->
41
 * <p>
42
 * The following features are implemented:
43
 * <ul>
44
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getMixed <em>Mixed</em>}</li>
45
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getFamily <em>Family</em>}</li>
46
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getGiven <em>Given</em>}</li>
47
 * </ul>
48
 * </p>
49
 *
50
 * @generated
51
 */
52
public class NameTypeImpl extends EDataObjectImpl implements NameType
53
{
54
  /**
55
   * <!-- begin-user-doc -->
56
   * <!-- end-user-doc -->
57
   * @generated
58
   */
59
  private static final long serialVersionUID = 1L;
60
61
  /**
62
   * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @see #getMixed()
66
   * @generated
67
   * @ordered
68
   */
69
  protected ESequence mixed;
70
71
  /**
72
   * The default value of the '{@link #getFamily() <em>Family</em>}' attribute.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @see #getFamily()
76
   * @generated
77
   * @ordered
78
   */
79
  protected static final String FAMILY_EDEFAULT = null;
80
81
  /**
82
   * The default value of the '{@link #getGiven() <em>Given</em>}' attribute.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @see #getGiven()
86
   * @generated
87
   * @ordered
88
   */
89
  protected static final String GIVEN_EDEFAULT = null;
90
91
  /**
92
   * <!-- begin-user-doc -->
93
   * <!-- end-user-doc -->
94
   * @generated
95
   */
96
  protected NameTypeImpl()
97
  {
98
    super();
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  @Override
107
  protected EClass eStaticClass()
108
  {
109
    return MixedPackageImpl.Literals.NAME_TYPE;
110
  }
111
112
  /**
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @generated
116
   */
117
  public Sequence getMixed()
118
  {
119
    if (mixed == null)
120
    {
121
      mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.NAME_TYPE__MIXED));
122
    }
123
    return mixed;
124
  }
125
126
  /**
127
   * <!-- begin-user-doc -->
128
   * <!-- end-user-doc -->
129
   * @generated
130
   */
131
  public String getFamily()
132
  {
133
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.NAME_TYPE__FAMILY, true);
134
  }
135
136
  /**
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   */
141
  public void setFamily(String newFamily)
142
  {
143
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.NAME_TYPE__FAMILY, newFamily);
144
  }
145
146
  /**
147
   * <!-- begin-user-doc -->
148
   * <!-- end-user-doc -->
149
   * @generated
150
   */
151
  public String getGiven()
152
  {
153
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.NAME_TYPE__GIVEN, true);
154
  }
155
156
  /**
157
   * <!-- begin-user-doc -->
158
   * <!-- end-user-doc -->
159
   * @generated
160
   */
161
  public void setGiven(String newGiven)
162
  {
163
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.NAME_TYPE__GIVEN, newGiven);
164
  }
165
166
  /**
167
   * <!-- begin-user-doc -->
168
   * <!-- end-user-doc -->
169
   * @generated
170
   */
171
  @Override
172
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
173
  {
174
    switch (featureID)
175
    {
176
      case MixedPackageImpl.NAME_TYPE__MIXED:
177
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs);
178
    }
179
    return super.eInverseRemove(otherEnd, featureID, msgs);
180
  }
181
182
  /**
183
   * <!-- begin-user-doc -->
184
   * <!-- end-user-doc -->
185
   * @generated
186
   */
187
  @Override
188
  public Object eGet(int featureID, boolean resolve, boolean coreType)
189
  {
190
    switch (featureID)
191
    {
192
      case MixedPackageImpl.NAME_TYPE__MIXED:
193
        if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap();
194
        return getMixed();
195
      case MixedPackageImpl.NAME_TYPE__FAMILY:
196
        return getFamily();
197
      case MixedPackageImpl.NAME_TYPE__GIVEN:
198
        return getGiven();
199
    }
200
    return super.eGet(featureID, resolve, coreType);
201
  }
202
203
  /**
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   */
208
  @Override
209
  public void eSet(int featureID, Object newValue)
210
  {
211
    switch (featureID)
212
    {
213
      case MixedPackageImpl.NAME_TYPE__MIXED:
214
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue);
215
        return;
216
      case MixedPackageImpl.NAME_TYPE__FAMILY:
217
        setFamily((String)newValue);
218
        return;
219
      case MixedPackageImpl.NAME_TYPE__GIVEN:
220
        setGiven((String)newValue);
221
        return;
222
    }
223
    super.eSet(featureID, newValue);
224
  }
225
226
  /**
227
   * <!-- begin-user-doc -->
228
   * <!-- end-user-doc -->
229
   * @generated
230
   */
231
  @Override
232
  public void eUnset(int featureID)
233
  {
234
    switch (featureID)
235
    {
236
      case MixedPackageImpl.NAME_TYPE__MIXED:
237
        ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear();
238
        return;
239
      case MixedPackageImpl.NAME_TYPE__FAMILY:
240
        setFamily(FAMILY_EDEFAULT);
241
        return;
242
      case MixedPackageImpl.NAME_TYPE__GIVEN:
243
        setGiven(GIVEN_EDEFAULT);
244
        return;
245
    }
246
    super.eUnset(featureID);
247
  }
248
249
  /**
250
   * <!-- begin-user-doc -->
251
   * <!-- end-user-doc -->
252
   * @generated
253
   */
254
  @Override
255
  public boolean eIsSet(int featureID)
256
  {
257
    switch (featureID)
258
    {
259
      case MixedPackageImpl.NAME_TYPE__MIXED:
260
        return mixed != null && !mixed.featureMap().isEmpty();
261
      case MixedPackageImpl.NAME_TYPE__FAMILY:
262
        return FAMILY_EDEFAULT == null ? getFamily() != null : !FAMILY_EDEFAULT.equals(getFamily());
263
      case MixedPackageImpl.NAME_TYPE__GIVEN:
264
        return GIVEN_EDEFAULT == null ? getGiven() != null : !GIVEN_EDEFAULT.equals(getGiven());
265
    }
266
    return super.eIsSet(featureID);
267
  }
268
269
  /**
270
   * <!-- begin-user-doc -->
271
   * <!-- end-user-doc -->
272
   * @generated
273
   */
274
  @Override
275
  public String toString()
276
  {
277
    if (eIsProxy()) return super.toString();
278
279
    StringBuffer result = new StringBuffer(super.toString());
280
    result.append(" (mixed: ");
281
    result.append(mixed);
282
    result.append(')');
283
    return result.toString();
284
  }
285
286
} //NameTypeImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/UrlTypeImpl.java (-234 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UrlTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
21
import org.eclipse.emf.ecore.EClass;
22
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
25
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
26
27
import org.eclipse.emf.test.models.personal.mixed.UrlType;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Url Type</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl#getHref <em>Href</em>}</li>
37
 * </ul>
38
 * </p>
39
 *
40
 * @generated
41
 */
42
public class UrlTypeImpl extends EDataObjectImpl implements UrlType
43
{
44
  /**
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  private static final long serialVersionUID = 1L;
50
51
  /**
52
   * The default value of the '{@link #getHref() <em>Href</em>}' attribute.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @see #getHref()
56
   * @generated
57
   * @ordered
58
   */
59
  protected static final String HREF_EDEFAULT = "http://";
60
61
  /**
62
   * The cached value of the '{@link #getHref() <em>Href</em>}' attribute.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @see #getHref()
66
   * @generated
67
   * @ordered
68
   */
69
  protected String href = HREF_EDEFAULT;
70
71
  /**
72
   * This is true if the Href attribute has been set.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @generated
76
   * @ordered
77
   */
78
  protected boolean hrefESet;
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  protected UrlTypeImpl()
86
  {
87
    super();
88
  }
89
90
  /**
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @generated
94
   */
95
  @Override
96
  protected EClass eStaticClass()
97
  {
98
    return MixedPackageImpl.Literals.URL_TYPE;
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  public String getHref()
107
  {
108
    return href;
109
  }
110
111
  /**
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @generated
115
   */
116
  public void setHref(String newHref)
117
  {
118
    String oldHref = href;
119
    href = newHref;
120
    boolean oldHrefESet = hrefESet;
121
    hrefESet = true;
122
    if (eNotificationRequired())
123
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.URL_TYPE__HREF, oldHref, href, !oldHrefESet));
124
  }
125
126
  /**
127
   * <!-- begin-user-doc -->
128
   * <!-- end-user-doc -->
129
   * @generated
130
   */
131
  public void unsetHref()
132
  {
133
    String oldHref = href;
134
    boolean oldHrefESet = hrefESet;
135
    href = HREF_EDEFAULT;
136
    hrefESet = false;
137
    if (eNotificationRequired())
138
      eNotify(new ENotificationImpl(this, Notification.UNSET, MixedPackageImpl.URL_TYPE__HREF, oldHref, HREF_EDEFAULT, oldHrefESet));
139
  }
140
141
  /**
142
   * <!-- begin-user-doc -->
143
   * <!-- end-user-doc -->
144
   * @generated
145
   */
146
  public boolean isSetHref()
147
  {
148
    return hrefESet;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  @Override
157
  public Object eGet(int featureID, boolean resolve, boolean coreType)
158
  {
159
    switch (featureID)
160
    {
161
      case MixedPackageImpl.URL_TYPE__HREF:
162
        return getHref();
163
    }
164
    return super.eGet(featureID, resolve, coreType);
165
  }
166
167
  /**
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   */
172
  @Override
173
  public void eSet(int featureID, Object newValue)
174
  {
175
    switch (featureID)
176
    {
177
      case MixedPackageImpl.URL_TYPE__HREF:
178
        setHref((String)newValue);
179
        return;
180
    }
181
    super.eSet(featureID, newValue);
182
  }
183
184
  /**
185
   * <!-- begin-user-doc -->
186
   * <!-- end-user-doc -->
187
   * @generated
188
   */
189
  @Override
190
  public void eUnset(int featureID)
191
  {
192
    switch (featureID)
193
    {
194
      case MixedPackageImpl.URL_TYPE__HREF:
195
        unsetHref();
196
        return;
197
    }
198
    super.eUnset(featureID);
199
  }
200
201
  /**
202
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
204
   * @generated
205
   */
206
  @Override
207
  public boolean eIsSet(int featureID)
208
  {
209
    switch (featureID)
210
    {
211
      case MixedPackageImpl.URL_TYPE__HREF:
212
        return isSetHref();
213
    }
214
    return super.eIsSet(featureID);
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  @Override
223
  public String toString()
224
  {
225
    if (eIsProxy()) return super.toString();
226
227
    StringBuffer result = new StringBuffer(super.toString());
228
    result.append(" (href: ");
229
    if (hrefESet) result.append(href); else result.append("<unset>");
230
    result.append(')');
231
    return result.toString();
232
  }
233
234
} //UrlTypeImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/MixedPackageImpl.java (-1907 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedPackageImpl.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
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.EFactory;
24
import org.eclipse.emf.ecore.EPackage;
25
import org.eclipse.emf.ecore.EReference;
26
27
import org.eclipse.emf.ecore.impl.EPackageImpl;
28
29
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
30
31
import org.eclipse.emf.test.models.personal.mixed.ContrType;
32
import org.eclipse.emf.test.models.personal.mixed.DocumentRoot;
33
import org.eclipse.emf.test.models.personal.mixed.LinkType;
34
import org.eclipse.emf.test.models.personal.mixed.MixedFactory;
35
import org.eclipse.emf.test.models.personal.mixed.NameType;
36
import org.eclipse.emf.test.models.personal.mixed.PersonType;
37
import org.eclipse.emf.test.models.personal.mixed.PersonnelType;
38
import org.eclipse.emf.test.models.personal.mixed.UrlType;
39
40
/**
41
 * <!-- begin-user-doc -->
42
 * The <b>Package</b> for the model.
43
 * It contains accessors for the meta objects to represent
44
 * <ul>
45
 *   <li>each class,</li>
46
 *   <li>each feature of each class,</li>
47
 *   <li>each enum,</li>
48
 *   <li>and each data type</li>
49
 * </ul>
50
 * <!-- end-user-doc -->
51
 * @see org.eclipse.emf.test.models.personal.mixed.MixedFactory
52
 * @model kind="package"
53
 * @generated
54
 */
55
public class MixedPackageImpl extends EPackageImpl
56
{
57
  /**
58
   * The package name.
59
   * <!-- begin-user-doc -->
60
   * <!-- end-user-doc -->
61
   * @generated
62
   */
63
  public static final String eNAME = "mixed";
64
65
  /**
66
   * The package namespace URI.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @generated
70
   */
71
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/personalMixed";
72
73
  /**
74
   * The package namespace name.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @generated
78
   */
79
  public static final String eNS_PREFIX = "mixed";
80
81
  /**
82
   * The singleton instance of the package.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @generated
86
   */
87
  public static final MixedPackageImpl eINSTANCE = org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl.init();
88
89
  /**
90
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl <em>Document Root</em>}' class.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @see org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl
94
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getDocumentRoot()
95
   * @generated
96
   */
97
  public static final int DOCUMENT_ROOT = 0;
98
99
  /**
100
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @generated
104
   * @ordered
105
   */
106
  public static final int DOCUMENT_ROOT__MIXED = 0;
107
108
  /**
109
   * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
110
   * <!-- begin-user-doc -->
111
   * <!-- end-user-doc -->
112
   * @generated
113
   * @ordered
114
   */
115
  public static final int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
116
117
  /**
118
   * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
119
   * <!-- begin-user-doc -->
120
   * <!-- end-user-doc -->
121
   * @generated
122
   * @ordered
123
   */
124
  public static final int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
125
126
  /**
127
   * The feature id for the '<em><b>Email</b></em>' attribute.
128
   * <!-- begin-user-doc -->
129
   * <!-- end-user-doc -->
130
   * @generated
131
   * @ordered
132
   */
133
  public static final int DOCUMENT_ROOT__EMAIL = 3;
134
135
  /**
136
   * The feature id for the '<em><b>Family</b></em>' attribute.
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   * @ordered
141
   */
142
  public static final int DOCUMENT_ROOT__FAMILY = 4;
143
144
  /**
145
   * The feature id for the '<em><b>Given</b></em>' attribute.
146
   * <!-- begin-user-doc -->
147
   * <!-- end-user-doc -->
148
   * @generated
149
   * @ordered
150
   */
151
  public static final int DOCUMENT_ROOT__GIVEN = 5;
152
153
  /**
154
   * The feature id for the '<em><b>Link</b></em>' containment reference.
155
   * <!-- begin-user-doc -->
156
   * <!-- end-user-doc -->
157
   * @generated
158
   * @ordered
159
   */
160
  public static final int DOCUMENT_ROOT__LINK = 6;
161
162
  /**
163
   * The feature id for the '<em><b>Name</b></em>' containment reference.
164
   * <!-- begin-user-doc -->
165
   * <!-- end-user-doc -->
166
   * @generated
167
   * @ordered
168
   */
169
  public static final int DOCUMENT_ROOT__NAME = 7;
170
171
  /**
172
   * The feature id for the '<em><b>Person</b></em>' containment reference.
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   * @ordered
177
   */
178
  public static final int DOCUMENT_ROOT__PERSON = 8;
179
180
  /**
181
   * The feature id for the '<em><b>Personnel</b></em>' containment reference.
182
   * <!-- begin-user-doc -->
183
   * <!-- end-user-doc -->
184
   * @generated
185
   * @ordered
186
   */
187
  public static final int DOCUMENT_ROOT__PERSONNEL = 9;
188
189
  /**
190
   * The feature id for the '<em><b>Url</b></em>' containment reference.
191
   * <!-- begin-user-doc -->
192
   * <!-- end-user-doc -->
193
   * @generated
194
   * @ordered
195
   */
196
  public static final int DOCUMENT_ROOT__URL = 10;
197
198
  /**
199
   * The number of structural features of the '<em>Document Root</em>' class.
200
   * <!-- begin-user-doc -->
201
   * <!-- end-user-doc -->
202
   * @generated
203
   * @ordered
204
   */
205
  public static final int DOCUMENT_ROOT_FEATURE_COUNT = 11;
206
207
  /**
208
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl <em>Link Type</em>}' class.
209
   * <!-- begin-user-doc -->
210
   * <!-- end-user-doc -->
211
   * @see org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl
212
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getLinkType()
213
   * @generated
214
   */
215
  public static final int LINK_TYPE = 1;
216
217
  /**
218
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
219
   * <!-- begin-user-doc -->
220
   * <!-- end-user-doc -->
221
   * @generated
222
   * @ordered
223
   */
224
  public static final int LINK_TYPE__MIXED = 0;
225
226
  /**
227
   * The feature id for the '<em><b>Manager</b></em>' attribute.
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   * @ordered
232
   */
233
  public static final int LINK_TYPE__MANAGER = 1;
234
235
  /**
236
   * The feature id for the '<em><b>Subordinates</b></em>' attribute.
237
   * <!-- begin-user-doc -->
238
   * <!-- end-user-doc -->
239
   * @generated
240
   * @ordered
241
   */
242
  public static final int LINK_TYPE__SUBORDINATES = 2;
243
244
  /**
245
   * The number of structural features of the '<em>Link Type</em>' class.
246
   * <!-- begin-user-doc -->
247
   * <!-- end-user-doc -->
248
   * @generated
249
   * @ordered
250
   */
251
  public static final int LINK_TYPE_FEATURE_COUNT = 3;
252
253
  /**
254
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl <em>Name Type</em>}' class.
255
   * <!-- begin-user-doc -->
256
   * <!-- end-user-doc -->
257
   * @see org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl
258
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getNameType()
259
   * @generated
260
   */
261
  public static final int NAME_TYPE = 2;
262
263
  /**
264
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
265
   * <!-- begin-user-doc -->
266
   * <!-- end-user-doc -->
267
   * @generated
268
   * @ordered
269
   */
270
  public static final int NAME_TYPE__MIXED = 0;
271
272
  /**
273
   * The feature id for the '<em><b>Family</b></em>' attribute.
274
   * <!-- begin-user-doc -->
275
   * <!-- end-user-doc -->
276
   * @generated
277
   * @ordered
278
   */
279
  public static final int NAME_TYPE__FAMILY = 1;
280
281
  /**
282
   * The feature id for the '<em><b>Given</b></em>' attribute.
283
   * <!-- begin-user-doc -->
284
   * <!-- end-user-doc -->
285
   * @generated
286
   * @ordered
287
   */
288
  public static final int NAME_TYPE__GIVEN = 2;
289
290
  /**
291
   * The number of structural features of the '<em>Name Type</em>' class.
292
   * <!-- begin-user-doc -->
293
   * <!-- end-user-doc -->
294
   * @generated
295
   * @ordered
296
   */
297
  public static final int NAME_TYPE_FEATURE_COUNT = 3;
298
299
  /**
300
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class.
301
   * <!-- begin-user-doc -->
302
   * <!-- end-user-doc -->
303
   * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl
304
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonnelType()
305
   * @generated
306
   */
307
  public static final int PERSONNEL_TYPE = 3;
308
309
  /**
310
   * The feature id for the '<em><b>Person</b></em>' containment reference list.
311
   * <!-- begin-user-doc -->
312
   * <!-- end-user-doc -->
313
   * @generated
314
   * @ordered
315
   */
316
  public static final int PERSONNEL_TYPE__PERSON = 0;
317
318
  /**
319
   * The number of structural features of the '<em>Personnel Type</em>' class.
320
   * <!-- begin-user-doc -->
321
   * <!-- end-user-doc -->
322
   * @generated
323
   * @ordered
324
   */
325
  public static final int PERSONNEL_TYPE_FEATURE_COUNT = 1;
326
327
  /**
328
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl <em>Person Type</em>}' class.
329
   * <!-- begin-user-doc -->
330
   * <!-- end-user-doc -->
331
   * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl
332
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonType()
333
   * @generated
334
   */
335
  public static final int PERSON_TYPE = 4;
336
337
  /**
338
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
339
   * <!-- begin-user-doc -->
340
   * <!-- end-user-doc -->
341
   * @generated
342
   * @ordered
343
   */
344
  public static final int PERSON_TYPE__MIXED = 0;
345
346
  /**
347
   * The feature id for the '<em><b>Name</b></em>' containment reference.
348
   * <!-- begin-user-doc -->
349
   * <!-- end-user-doc -->
350
   * @generated
351
   * @ordered
352
   */
353
  public static final int PERSON_TYPE__NAME = 1;
354
355
  /**
356
   * The feature id for the '<em><b>Email</b></em>' attribute list.
357
   * <!-- begin-user-doc -->
358
   * <!-- end-user-doc -->
359
   * @generated
360
   * @ordered
361
   */
362
  public static final int PERSON_TYPE__EMAIL = 2;
363
364
  /**
365
   * The feature id for the '<em><b>Url</b></em>' containment reference list.
366
   * <!-- begin-user-doc -->
367
   * <!-- end-user-doc -->
368
   * @generated
369
   * @ordered
370
   */
371
  public static final int PERSON_TYPE__URL = 3;
372
373
  /**
374
   * The feature id for the '<em><b>Link</b></em>' containment reference.
375
   * <!-- begin-user-doc -->
376
   * <!-- end-user-doc -->
377
   * @generated
378
   * @ordered
379
   */
380
  public static final int PERSON_TYPE__LINK = 4;
381
382
  /**
383
   * The feature id for the '<em><b>Any</b></em>' attribute list.
384
   * <!-- begin-user-doc -->
385
   * <!-- end-user-doc -->
386
   * @generated
387
   * @ordered
388
   */
389
  public static final int PERSON_TYPE__ANY = 5;
390
391
  /**
392
   * The feature id for the '<em><b>Contr</b></em>' attribute.
393
   * <!-- begin-user-doc -->
394
   * <!-- end-user-doc -->
395
   * @generated
396
   * @ordered
397
   */
398
  public static final int PERSON_TYPE__CONTR = 6;
399
400
  /**
401
   * The feature id for the '<em><b>Id</b></em>' attribute.
402
   * <!-- begin-user-doc -->
403
   * <!-- end-user-doc -->
404
   * @generated
405
   * @ordered
406
   */
407
  public static final int PERSON_TYPE__ID = 7;
408
409
  /**
410
   * The feature id for the '<em><b>Salary</b></em>' attribute.
411
   * <!-- begin-user-doc -->
412
   * <!-- end-user-doc -->
413
   * @generated
414
   * @ordered
415
   */
416
  public static final int PERSON_TYPE__SALARY = 8;
417
418
  /**
419
   * The number of structural features of the '<em>Person Type</em>' class.
420
   * <!-- begin-user-doc -->
421
   * <!-- end-user-doc -->
422
   * @generated
423
   * @ordered
424
   */
425
  public static final int PERSON_TYPE_FEATURE_COUNT = 9;
426
427
  /**
428
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl <em>Url Type</em>}' class.
429
   * <!-- begin-user-doc -->
430
   * <!-- end-user-doc -->
431
   * @see org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl
432
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getUrlType()
433
   * @generated
434
   */
435
  public static final int URL_TYPE = 5;
436
437
  /**
438
   * The feature id for the '<em><b>Href</b></em>' attribute.
439
   * <!-- begin-user-doc -->
440
   * <!-- end-user-doc -->
441
   * @generated
442
   * @ordered
443
   */
444
  public static final int URL_TYPE__HREF = 0;
445
446
  /**
447
   * The number of structural features of the '<em>Url Type</em>' class.
448
   * <!-- begin-user-doc -->
449
   * <!-- end-user-doc -->
450
   * @generated
451
   * @ordered
452
   */
453
  public static final int URL_TYPE_FEATURE_COUNT = 1;
454
455
  /**
456
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}' enum.
457
   * <!-- begin-user-doc -->
458
   * <!-- end-user-doc -->
459
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
460
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrType()
461
   * @generated
462
   */
463
  public static final int CONTR_TYPE = 6;
464
465
  /**
466
   * The meta object id for the '<em>Contr Type Object</em>' data type.
467
   * <!-- begin-user-doc -->
468
   * <!-- end-user-doc -->
469
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
470
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrTypeObject()
471
   * @generated
472
   */
473
  public static final int CONTR_TYPE_OBJECT = 7;
474
475
  /**
476
   * <!-- begin-user-doc -->
477
   * <!-- end-user-doc -->
478
   * @generated
479
   */
480
  private EClass documentRootEClass = null;
481
482
  /**
483
   * <!-- begin-user-doc -->
484
   * <!-- end-user-doc -->
485
   * @generated
486
   */
487
  private EClass linkTypeEClass = null;
488
489
  /**
490
   * <!-- begin-user-doc -->
491
   * <!-- end-user-doc -->
492
   * @generated
493
   */
494
  private EClass nameTypeEClass = null;
495
496
  /**
497
   * <!-- begin-user-doc -->
498
   * <!-- end-user-doc -->
499
   * @generated
500
   */
501
  private EClass personnelTypeEClass = null;
502
503
  /**
504
   * <!-- begin-user-doc -->
505
   * <!-- end-user-doc -->
506
   * @generated
507
   */
508
  private EClass personTypeEClass = null;
509
510
  /**
511
   * <!-- begin-user-doc -->
512
   * <!-- end-user-doc -->
513
   * @generated
514
   */
515
  private EClass urlTypeEClass = null;
516
517
  /**
518
   * <!-- begin-user-doc -->
519
   * <!-- end-user-doc -->
520
   * @generated
521
   */
522
  private EEnum contrTypeEEnum = null;
523
524
  /**
525
   * <!-- begin-user-doc -->
526
   * <!-- end-user-doc -->
527
   * @generated
528
   */
529
  private EDataType contrTypeObjectEDataType = null;
530
531
  /**
532
   * Creates an instance of the model <b>Package</b>, registered with
533
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
534
   * package URI value.
535
   * <p>Note: the correct way to create the package is via the static
536
   * factory method {@link #init init()}, which also performs
537
   * initialization of the package, or returns the registered package,
538
   * if one already exists.
539
   * <!-- begin-user-doc -->
540
   * <!-- end-user-doc -->
541
   * @see org.eclipse.emf.ecore.EPackage.Registry
542
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#eNS_URI
543
   * @see #init()
544
   * @generated
545
   */
546
  private MixedPackageImpl()
547
  {
548
    super(eNS_URI, ((EFactory)MixedFactory.INSTANCE));
549
  }
550
551
  /**
552
   * <!-- begin-user-doc -->
553
   * <!-- end-user-doc -->
554
   * @generated
555
   */
556
  private static boolean isInited = false;
557
558
  /**
559
   * Creates, registers, and initializes the <b>Package</b> for this
560
   * model, and for any others upon which it depends.  Simple
561
   * dependencies are satisfied by calling this method on all
562
   * dependent packages before doing anything else.  This method drives
563
   * initialization for interdependent packages directly, in parallel
564
   * with this package, itself.
565
   * <p>Of this package and its interdependencies, all packages which
566
   * have not yet been registered by their URI values are first created
567
   * and registered.  The packages are then initialized in two steps:
568
   * meta-model objects for all of the packages are created before any
569
   * are initialized, since one package's meta-model objects may refer to
570
   * those of another.
571
   * <p>Invocation of this method will not affect any packages that have
572
   * already been initialized.
573
   * <!-- begin-user-doc -->
574
   * <!-- end-user-doc -->
575
   * @see #eNS_URI
576
   * @see #createPackageContents()
577
   * @see #initializePackageContents()
578
   * @generated
579
   */
580
  public static MixedPackageImpl init()
581
  {
582
    if (isInited) return (MixedPackageImpl)EPackage.Registry.INSTANCE.getEPackage(MixedPackageImpl.eNS_URI);
583
584
    // Obtain or create and register package
585
    MixedPackageImpl theMixedPackageImpl = (MixedPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof MixedPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new MixedPackageImpl());
586
587
    isInited = true;
588
589
    // Initialize simple dependencies
590
    XMLTypePackage.eINSTANCE.eClass();
591
592
    // Create package meta-data objects
593
    theMixedPackageImpl.createPackageContents();
594
595
    // Initialize created meta-data
596
    theMixedPackageImpl.initializePackageContents();
597
598
    // Mark meta-data to indicate it can't be changed
599
    theMixedPackageImpl.freeze();
600
601
    return theMixedPackageImpl;
602
  }
603
604
605
  /**
606
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot <em>Document Root</em>}'.
607
   * <!-- begin-user-doc -->
608
   * <!-- end-user-doc -->
609
   * @return the meta object for class '<em>Document Root</em>'.
610
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot
611
   * @generated
612
   */
613
  public EClass getDocumentRoot()
614
  {
615
    return documentRootEClass;
616
  }
617
618
  /**
619
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getMixed <em>Mixed</em>}'.
620
   * <!-- begin-user-doc -->
621
   * <!-- end-user-doc -->
622
   * @return the meta object for the attribute list '<em>Mixed</em>'.
623
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getMixed()
624
   * @see #getDocumentRoot()
625
   * @generated
626
   */
627
  public EAttribute getDocumentRoot_Mixed()
628
  {
629
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
630
  }
631
632
  /**
633
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
634
   * <!-- begin-user-doc -->
635
   * <!-- end-user-doc -->
636
   * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
637
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXMLNSPrefixMap()
638
   * @see #getDocumentRoot()
639
   * @generated
640
   */
641
  public EReference getDocumentRoot_XMLNSPrefixMap()
642
  {
643
    return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
644
  }
645
646
  /**
647
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
648
   * <!-- begin-user-doc -->
649
   * <!-- end-user-doc -->
650
   * @return the meta object for the map '<em>XSI Schema Location</em>'.
651
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXSISchemaLocation()
652
   * @see #getDocumentRoot()
653
   * @generated
654
   */
655
  public EReference getDocumentRoot_XSISchemaLocation()
656
  {
657
    return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
658
  }
659
660
  /**
661
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail <em>Email</em>}'.
662
   * <!-- begin-user-doc -->
663
   * <!-- end-user-doc -->
664
   * @return the meta object for the attribute '<em>Email</em>'.
665
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail()
666
   * @see #getDocumentRoot()
667
   * @generated
668
   */
669
  public EAttribute getDocumentRoot_Email()
670
  {
671
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3);
672
  }
673
674
  /**
675
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily <em>Family</em>}'.
676
   * <!-- begin-user-doc -->
677
   * <!-- end-user-doc -->
678
   * @return the meta object for the attribute '<em>Family</em>'.
679
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily()
680
   * @see #getDocumentRoot()
681
   * @generated
682
   */
683
  public EAttribute getDocumentRoot_Family()
684
  {
685
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(4);
686
  }
687
688
  /**
689
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven <em>Given</em>}'.
690
   * <!-- begin-user-doc -->
691
   * <!-- end-user-doc -->
692
   * @return the meta object for the attribute '<em>Given</em>'.
693
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven()
694
   * @see #getDocumentRoot()
695
   * @generated
696
   */
697
  public EAttribute getDocumentRoot_Given()
698
  {
699
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(5);
700
  }
701
702
  /**
703
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink <em>Link</em>}'.
704
   * <!-- begin-user-doc -->
705
   * <!-- end-user-doc -->
706
   * @return the meta object for the containment reference '<em>Link</em>'.
707
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink()
708
   * @see #getDocumentRoot()
709
   * @generated
710
   */
711
  public EReference getDocumentRoot_Link()
712
  {
713
    return (EReference)documentRootEClass.getEStructuralFeatures().get(6);
714
  }
715
716
  /**
717
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName <em>Name</em>}'.
718
   * <!-- begin-user-doc -->
719
   * <!-- end-user-doc -->
720
   * @return the meta object for the containment reference '<em>Name</em>'.
721
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName()
722
   * @see #getDocumentRoot()
723
   * @generated
724
   */
725
  public EReference getDocumentRoot_Name()
726
  {
727
    return (EReference)documentRootEClass.getEStructuralFeatures().get(7);
728
  }
729
730
  /**
731
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson <em>Person</em>}'.
732
   * <!-- begin-user-doc -->
733
   * <!-- end-user-doc -->
734
   * @return the meta object for the containment reference '<em>Person</em>'.
735
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson()
736
   * @see #getDocumentRoot()
737
   * @generated
738
   */
739
  public EReference getDocumentRoot_Person()
740
  {
741
    return (EReference)documentRootEClass.getEStructuralFeatures().get(8);
742
  }
743
744
  /**
745
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel <em>Personnel</em>}'.
746
   * <!-- begin-user-doc -->
747
   * <!-- end-user-doc -->
748
   * @return the meta object for the containment reference '<em>Personnel</em>'.
749
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel()
750
   * @see #getDocumentRoot()
751
   * @generated
752
   */
753
  public EReference getDocumentRoot_Personnel()
754
  {
755
    return (EReference)documentRootEClass.getEStructuralFeatures().get(9);
756
  }
757
758
  /**
759
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl <em>Url</em>}'.
760
   * <!-- begin-user-doc -->
761
   * <!-- end-user-doc -->
762
   * @return the meta object for the containment reference '<em>Url</em>'.
763
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl()
764
   * @see #getDocumentRoot()
765
   * @generated
766
   */
767
  public EReference getDocumentRoot_Url()
768
  {
769
    return (EReference)documentRootEClass.getEStructuralFeatures().get(10);
770
  }
771
772
  /**
773
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.LinkType <em>Link Type</em>}'.
774
   * <!-- begin-user-doc -->
775
   * <!-- end-user-doc -->
776
   * @return the meta object for class '<em>Link Type</em>'.
777
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType
778
   * @generated
779
   */
780
  public EClass getLinkType()
781
  {
782
    return linkTypeEClass;
783
  }
784
785
  /**
786
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed <em>Mixed</em>}'.
787
   * <!-- begin-user-doc -->
788
   * <!-- end-user-doc -->
789
   * @return the meta object for the attribute list '<em>Mixed</em>'.
790
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed()
791
   * @see #getLinkType()
792
   * @generated
793
   */
794
  public EAttribute getLinkType_Mixed()
795
  {
796
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(0);
797
  }
798
799
  /**
800
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}'.
801
   * <!-- begin-user-doc -->
802
   * <!-- end-user-doc -->
803
   * @return the meta object for the attribute '<em>Manager</em>'.
804
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getManager()
805
   * @see #getLinkType()
806
   * @generated
807
   */
808
  public EAttribute getLinkType_Manager()
809
  {
810
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(1);
811
  }
812
813
  /**
814
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}'.
815
   * <!-- begin-user-doc -->
816
   * <!-- end-user-doc -->
817
   * @return the meta object for the attribute '<em>Subordinates</em>'.
818
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates()
819
   * @see #getLinkType()
820
   * @generated
821
   */
822
  public EAttribute getLinkType_Subordinates()
823
  {
824
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(2);
825
  }
826
827
  /**
828
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.NameType <em>Name Type</em>}'.
829
   * <!-- begin-user-doc -->
830
   * <!-- end-user-doc -->
831
   * @return the meta object for class '<em>Name Type</em>'.
832
   * @see org.eclipse.emf.test.models.personal.mixed.NameType
833
   * @generated
834
   */
835
  public EClass getNameType()
836
  {
837
    return nameTypeEClass;
838
  }
839
840
  /**
841
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getMixed <em>Mixed</em>}'.
842
   * <!-- begin-user-doc -->
843
   * <!-- end-user-doc -->
844
   * @return the meta object for the attribute list '<em>Mixed</em>'.
845
   * @see org.eclipse.emf.test.models.personal.mixed.NameType#getMixed()
846
   * @see #getNameType()
847
   * @generated
848
   */
849
  public EAttribute getNameType_Mixed()
850
  {
851
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(0);
852
  }
853
854
  /**
855
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}'.
856
   * <!-- begin-user-doc -->
857
   * <!-- end-user-doc -->
858
   * @return the meta object for the attribute '<em>Family</em>'.
859
   * @see org.eclipse.emf.test.models.personal.mixed.NameType#getFamily()
860
   * @see #getNameType()
861
   * @generated
862
   */
863
  public EAttribute getNameType_Family()
864
  {
865
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(1);
866
  }
867
868
  /**
869
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}'.
870
   * <!-- begin-user-doc -->
871
   * <!-- end-user-doc -->
872
   * @return the meta object for the attribute '<em>Given</em>'.
873
   * @see org.eclipse.emf.test.models.personal.mixed.NameType#getGiven()
874
   * @see #getNameType()
875
   * @generated
876
   */
877
  public EAttribute getNameType_Given()
878
  {
879
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(2);
880
  }
881
882
  /**
883
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType <em>Personnel Type</em>}'.
884
   * <!-- begin-user-doc -->
885
   * <!-- end-user-doc -->
886
   * @return the meta object for class '<em>Personnel Type</em>'.
887
   * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType
888
   * @generated
889
   */
890
  public EClass getPersonnelType()
891
  {
892
    return personnelTypeEClass;
893
  }
894
895
  /**
896
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType#getPerson <em>Person</em>}'.
897
   * <!-- begin-user-doc -->
898
   * <!-- end-user-doc -->
899
   * @return the meta object for the containment reference list '<em>Person</em>'.
900
   * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType#getPerson()
901
   * @see #getPersonnelType()
902
   * @generated
903
   */
904
  public EReference getPersonnelType_Person()
905
  {
906
    return (EReference)personnelTypeEClass.getEStructuralFeatures().get(0);
907
  }
908
909
  /**
910
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.PersonType <em>Person Type</em>}'.
911
   * <!-- begin-user-doc -->
912
   * <!-- end-user-doc -->
913
   * @return the meta object for class '<em>Person Type</em>'.
914
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType
915
   * @generated
916
   */
917
  public EClass getPersonType()
918
  {
919
    return personTypeEClass;
920
  }
921
922
  /**
923
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed <em>Mixed</em>}'.
924
   * <!-- begin-user-doc -->
925
   * <!-- end-user-doc -->
926
   * @return the meta object for the attribute list '<em>Mixed</em>'.
927
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed()
928
   * @see #getPersonType()
929
   * @generated
930
   */
931
  public EAttribute getPersonType_Mixed()
932
  {
933
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(0);
934
  }
935
936
  /**
937
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}'.
938
   * <!-- begin-user-doc -->
939
   * <!-- end-user-doc -->
940
   * @return the meta object for the containment reference '<em>Name</em>'.
941
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getName()
942
   * @see #getPersonType()
943
   * @generated
944
   */
945
  public EReference getPersonType_Name()
946
  {
947
    return (EReference)personTypeEClass.getEStructuralFeatures().get(1);
948
  }
949
950
  /**
951
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail <em>Email</em>}'.
952
   * <!-- begin-user-doc -->
953
   * <!-- end-user-doc -->
954
   * @return the meta object for the attribute list '<em>Email</em>'.
955
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail()
956
   * @see #getPersonType()
957
   * @generated
958
   */
959
  public EAttribute getPersonType_Email()
960
  {
961
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(2);
962
  }
963
964
  /**
965
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl <em>Url</em>}'.
966
   * <!-- begin-user-doc -->
967
   * <!-- end-user-doc -->
968
   * @return the meta object for the containment reference list '<em>Url</em>'.
969
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl()
970
   * @see #getPersonType()
971
   * @generated
972
   */
973
  public EReference getPersonType_Url()
974
  {
975
    return (EReference)personTypeEClass.getEStructuralFeatures().get(3);
976
  }
977
978
  /**
979
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}'.
980
   * <!-- begin-user-doc -->
981
   * <!-- end-user-doc -->
982
   * @return the meta object for the containment reference '<em>Link</em>'.
983
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getLink()
984
   * @see #getPersonType()
985
   * @generated
986
   */
987
  public EReference getPersonType_Link()
988
  {
989
    return (EReference)personTypeEClass.getEStructuralFeatures().get(4);
990
  }
991
992
  /**
993
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getAny <em>Any</em>}'.
994
   * <!-- begin-user-doc -->
995
   * <!-- end-user-doc -->
996
   * @return the meta object for the attribute list '<em>Any</em>'.
997
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getAny()
998
   * @see #getPersonType()
999
   * @generated
1000
   */
1001
  public EAttribute getPersonType_Any()
1002
  {
1003
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(5);
1004
  }
1005
1006
  /**
1007
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}'.
1008
   * <!-- begin-user-doc -->
1009
   * <!-- end-user-doc -->
1010
   * @return the meta object for the attribute '<em>Contr</em>'.
1011
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getContr()
1012
   * @see #getPersonType()
1013
   * @generated
1014
   */
1015
  public EAttribute getPersonType_Contr()
1016
  {
1017
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(6);
1018
  }
1019
1020
  /**
1021
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}'.
1022
   * <!-- begin-user-doc -->
1023
   * <!-- end-user-doc -->
1024
   * @return the meta object for the attribute '<em>Id</em>'.
1025
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getId()
1026
   * @see #getPersonType()
1027
   * @generated
1028
   */
1029
  public EAttribute getPersonType_Id()
1030
  {
1031
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(7);
1032
  }
1033
1034
  /**
1035
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}'.
1036
   * <!-- begin-user-doc -->
1037
   * <!-- end-user-doc -->
1038
   * @return the meta object for the attribute '<em>Salary</em>'.
1039
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary()
1040
   * @see #getPersonType()
1041
   * @generated
1042
   */
1043
  public EAttribute getPersonType_Salary()
1044
  {
1045
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(8);
1046
  }
1047
1048
  /**
1049
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.UrlType <em>Url Type</em>}'.
1050
   * <!-- begin-user-doc -->
1051
   * <!-- end-user-doc -->
1052
   * @return the meta object for class '<em>Url Type</em>'.
1053
   * @see org.eclipse.emf.test.models.personal.mixed.UrlType
1054
   * @generated
1055
   */
1056
  public EClass getUrlType()
1057
  {
1058
    return urlTypeEClass;
1059
  }
1060
1061
  /**
1062
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}'.
1063
   * <!-- begin-user-doc -->
1064
   * <!-- end-user-doc -->
1065
   * @return the meta object for the attribute '<em>Href</em>'.
1066
   * @see org.eclipse.emf.test.models.personal.mixed.UrlType#getHref()
1067
   * @see #getUrlType()
1068
   * @generated
1069
   */
1070
  public EAttribute getUrlType_Href()
1071
  {
1072
    return (EAttribute)urlTypeEClass.getEStructuralFeatures().get(0);
1073
  }
1074
1075
  /**
1076
   * Returns the meta object for enum '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}'.
1077
   * <!-- begin-user-doc -->
1078
   * <!-- end-user-doc -->
1079
   * @return the meta object for enum '<em>Contr Type</em>'.
1080
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
1081
   * @generated
1082
   */
1083
  public EEnum getContrType()
1084
  {
1085
    return contrTypeEEnum;
1086
  }
1087
1088
  /**
1089
   * Returns the meta object for data type '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type Object</em>}'.
1090
   * <!-- begin-user-doc -->
1091
   * <!-- end-user-doc -->
1092
   * @return the meta object for data type '<em>Contr Type Object</em>'.
1093
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
1094
   * @model instanceClass="org.eclipse.emf.test.models.personal.mixed.ContrType"
1095
   *        extendedMetaData="name='contr_._type:Object' baseType='contr_._type'"
1096
   * @generated
1097
   */
1098
  public EDataType getContrTypeObject()
1099
  {
1100
    return contrTypeObjectEDataType;
1101
  }
1102
1103
  /**
1104
   * Returns the factory that creates the instances of the model.
1105
   * <!-- begin-user-doc -->
1106
   * <!-- end-user-doc -->
1107
   * @return the factory that creates the instances of the model.
1108
   * @generated
1109
   */
1110
  public MixedFactory getMixedFactory()
1111
  {
1112
    return (MixedFactory)getEFactoryInstance();
1113
  }
1114
1115
  /**
1116
   * <!-- begin-user-doc -->
1117
   * <!-- end-user-doc -->
1118
   * @generated
1119
   */
1120
  private boolean isCreated = false;
1121
1122
  /**
1123
   * Creates the meta-model objects for the package.  This method is
1124
   * guarded to have no affect on any invocation but its first.
1125
   * <!-- begin-user-doc -->
1126
   * <!-- end-user-doc -->
1127
   * @generated
1128
   */
1129
  public void createPackageContents()
1130
  {
1131
    if (isCreated) return;
1132
    isCreated = true;
1133
1134
    // Create classes and their features
1135
    documentRootEClass = createEClass(DOCUMENT_ROOT);
1136
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
1137
    createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
1138
    createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
1139
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__EMAIL);
1140
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__FAMILY);
1141
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__GIVEN);
1142
    createEReference(documentRootEClass, DOCUMENT_ROOT__LINK);
1143
    createEReference(documentRootEClass, DOCUMENT_ROOT__NAME);
1144
    createEReference(documentRootEClass, DOCUMENT_ROOT__PERSON);
1145
    createEReference(documentRootEClass, DOCUMENT_ROOT__PERSONNEL);
1146
    createEReference(documentRootEClass, DOCUMENT_ROOT__URL);
1147
1148
    linkTypeEClass = createEClass(LINK_TYPE);
1149
    createEAttribute(linkTypeEClass, LINK_TYPE__MIXED);
1150
    createEAttribute(linkTypeEClass, LINK_TYPE__MANAGER);
1151
    createEAttribute(linkTypeEClass, LINK_TYPE__SUBORDINATES);
1152
1153
    nameTypeEClass = createEClass(NAME_TYPE);
1154
    createEAttribute(nameTypeEClass, NAME_TYPE__MIXED);
1155
    createEAttribute(nameTypeEClass, NAME_TYPE__FAMILY);
1156
    createEAttribute(nameTypeEClass, NAME_TYPE__GIVEN);
1157
1158
    personnelTypeEClass = createEClass(PERSONNEL_TYPE);
1159
    createEReference(personnelTypeEClass, PERSONNEL_TYPE__PERSON);
1160
1161
    personTypeEClass = createEClass(PERSON_TYPE);
1162
    createEAttribute(personTypeEClass, PERSON_TYPE__MIXED);
1163
    createEReference(personTypeEClass, PERSON_TYPE__NAME);
1164
    createEAttribute(personTypeEClass, PERSON_TYPE__EMAIL);
1165
    createEReference(personTypeEClass, PERSON_TYPE__URL);
1166
    createEReference(personTypeEClass, PERSON_TYPE__LINK);
1167
    createEAttribute(personTypeEClass, PERSON_TYPE__ANY);
1168
    createEAttribute(personTypeEClass, PERSON_TYPE__CONTR);
1169
    createEAttribute(personTypeEClass, PERSON_TYPE__ID);
1170
    createEAttribute(personTypeEClass, PERSON_TYPE__SALARY);
1171
1172
    urlTypeEClass = createEClass(URL_TYPE);
1173
    createEAttribute(urlTypeEClass, URL_TYPE__HREF);
1174
1175
    // Create enums
1176
    contrTypeEEnum = createEEnum(CONTR_TYPE);
1177
1178
    // Create data types
1179
    contrTypeObjectEDataType = createEDataType(CONTR_TYPE_OBJECT);
1180
  }
1181
1182
  /**
1183
   * <!-- begin-user-doc -->
1184
   * <!-- end-user-doc -->
1185
   * @generated
1186
   */
1187
  private boolean isInitialized = false;
1188
1189
  /**
1190
   * Complete the initialization of the package and its meta-model.  This
1191
   * method is guarded to have no affect on any invocation but its first.
1192
   * <!-- begin-user-doc -->
1193
   * <!-- end-user-doc -->
1194
   * @generated
1195
   */
1196
  public void initializePackageContents()
1197
  {
1198
    if (isInitialized) return;
1199
    isInitialized = true;
1200
1201
    // Initialize package
1202
    setName(eNAME);
1203
    setNsPrefix(eNS_PREFIX);
1204
    setNsURI(eNS_URI);
1205
1206
    // Obtain other dependent packages
1207
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
1208
1209
    // Create type parameters
1210
1211
    // Set bounds for type parameters
1212
1213
    // Add supertypes to classes
1214
1215
    // Initialize classes and features; add operations and parameters
1216
    initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1217
    initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1218
    initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1219
    initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1220
    initEAttribute(getDocumentRoot_Email(), theXMLTypePackage.getString(), "email", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1221
    initEAttribute(getDocumentRoot_Family(), theXMLTypePackage.getString(), "family", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1222
    initEAttribute(getDocumentRoot_Given(), theXMLTypePackage.getString(), "given", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1223
    initEReference(getDocumentRoot_Link(), this.getLinkType(), null, "link", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1224
    initEReference(getDocumentRoot_Name(), this.getNameType(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1225
    initEReference(getDocumentRoot_Person(), this.getPersonType(), null, "person", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1226
    initEReference(getDocumentRoot_Personnel(), this.getPersonnelType(), null, "personnel", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1227
    initEReference(getDocumentRoot_Url(), this.getUrlType(), null, "url", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1228
1229
    initEClass(linkTypeEClass, LinkType.class, "LinkType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1230
    initEAttribute(getLinkType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1231
    initEAttribute(getLinkType_Manager(), theXMLTypePackage.getIDREF(), "manager", null, 0, 1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1232
    initEAttribute(getLinkType_Subordinates(), theXMLTypePackage.getIDREFS(), "subordinates", null, 0, 1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1233
1234
    initEClass(nameTypeEClass, NameType.class, "NameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1235
    initEAttribute(getNameType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, NameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1236
    initEAttribute(getNameType_Family(), theXMLTypePackage.getString(), "family", null, 1, 1, NameType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1237
    initEAttribute(getNameType_Given(), theXMLTypePackage.getString(), "given", null, 1, 1, NameType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1238
1239
    initEClass(personnelTypeEClass, PersonnelType.class, "PersonnelType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1240
    initEReference(getPersonnelType_Person(), this.getPersonType(), null, "person", null, 1, -1, PersonnelType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1241
1242
    initEClass(personTypeEClass, PersonType.class, "PersonType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1243
    initEAttribute(getPersonType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1244
    initEReference(getPersonType_Name(), this.getNameType(), null, "name", null, 1, 1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1245
    initEAttribute(getPersonType_Email(), theXMLTypePackage.getString(), "email", null, 0, -1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1246
    initEReference(getPersonType_Url(), this.getUrlType(), null, "url", null, 0, -1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1247
    initEReference(getPersonType_Link(), this.getLinkType(), null, "link", null, 1, 1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1248
    initEAttribute(getPersonType_Any(), ecorePackage.getEFeatureMapEntry(), "any", null, 0, 1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1249
    initEAttribute(getPersonType_Contr(), this.getContrType(), "contr", "false", 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1250
    initEAttribute(getPersonType_Id(), theXMLTypePackage.getID(), "id", null, 1, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1251
    initEAttribute(getPersonType_Salary(), theXMLTypePackage.getInteger(), "salary", null, 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1252
1253
    initEClass(urlTypeEClass, UrlType.class, "UrlType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1254
    initEAttribute(getUrlType_Href(), theXMLTypePackage.getString(), "href", "http://", 0, 1, UrlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1255
1256
    // Initialize enums and add enum literals
1257
    initEEnum(contrTypeEEnum, ContrType.class, "ContrType");
1258
    addEEnumLiteral(contrTypeEEnum, ContrType.TRUE);
1259
    addEEnumLiteral(contrTypeEEnum, ContrType.FALSE);
1260
1261
    // Initialize data types
1262
    initEDataType(contrTypeObjectEDataType, ContrType.class, "ContrTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
1263
1264
    // Create resource
1265
    createResource(eNS_URI);
1266
1267
    // Create annotations
1268
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
1269
    createExtendedMetaDataAnnotations();
1270
  }
1271
1272
  /**
1273
   * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
1274
   * <!-- begin-user-doc -->
1275
   * <!-- end-user-doc -->
1276
   * @generated
1277
   */
1278
  protected void createExtendedMetaDataAnnotations()
1279
  {
1280
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";		
1281
    addAnnotation
1282
      (contrTypeEEnum, 
1283
       source, 
1284
       new String[] 
1285
       {
1286
       "name", "contr_._type"
1287
       });		
1288
    addAnnotation
1289
      (contrTypeObjectEDataType, 
1290
       source, 
1291
       new String[] 
1292
       {
1293
       "name", "contr_._type:Object",
1294
       "baseType", "contr_._type"
1295
       });		
1296
    addAnnotation
1297
      (documentRootEClass, 
1298
       source, 
1299
       new String[] 
1300
       {
1301
       "name", "",
1302
       "kind", "mixed"
1303
       });		
1304
    addAnnotation
1305
      (getDocumentRoot_Mixed(), 
1306
       source, 
1307
       new String[] 
1308
       {
1309
       "kind", "elementWildcard",
1310
       "name", ":mixed"
1311
       });		
1312
    addAnnotation
1313
      (getDocumentRoot_XMLNSPrefixMap(), 
1314
       source, 
1315
       new String[] 
1316
       {
1317
       "kind", "attribute",
1318
       "name", "xmlns:prefix"
1319
       });		
1320
    addAnnotation
1321
      (getDocumentRoot_XSISchemaLocation(), 
1322
       source, 
1323
       new String[] 
1324
       {
1325
       "kind", "attribute",
1326
       "name", "xsi:schemaLocation"
1327
       });		
1328
    addAnnotation
1329
      (getDocumentRoot_Email(), 
1330
       source, 
1331
       new String[] 
1332
       {
1333
       "kind", "element",
1334
       "name", "email",
1335
       "namespace", "##targetNamespace"
1336
       });		
1337
    addAnnotation
1338
      (getDocumentRoot_Family(), 
1339
       source, 
1340
       new String[] 
1341
       {
1342
       "kind", "element",
1343
       "name", "family",
1344
       "namespace", "##targetNamespace"
1345
       });		
1346
    addAnnotation
1347
      (getDocumentRoot_Given(), 
1348
       source, 
1349
       new String[] 
1350
       {
1351
       "kind", "element",
1352
       "name", "given",
1353
       "namespace", "##targetNamespace"
1354
       });		
1355
    addAnnotation
1356
      (getDocumentRoot_Link(), 
1357
       source, 
1358
       new String[] 
1359
       {
1360
       "kind", "element",
1361
       "name", "link",
1362
       "namespace", "##targetNamespace"
1363
       });		
1364
    addAnnotation
1365
      (getDocumentRoot_Name(), 
1366
       source, 
1367
       new String[] 
1368
       {
1369
       "kind", "element",
1370
       "name", "name",
1371
       "namespace", "##targetNamespace"
1372
       });		
1373
    addAnnotation
1374
      (getDocumentRoot_Person(), 
1375
       source, 
1376
       new String[] 
1377
       {
1378
       "kind", "element",
1379
       "name", "person",
1380
       "namespace", "##targetNamespace"
1381
       });		
1382
    addAnnotation
1383
      (getDocumentRoot_Personnel(), 
1384
       source, 
1385
       new String[] 
1386
       {
1387
       "kind", "element",
1388
       "name", "personnel",
1389
       "namespace", "##targetNamespace"
1390
       });		
1391
    addAnnotation
1392
      (getDocumentRoot_Url(), 
1393
       source, 
1394
       new String[] 
1395
       {
1396
       "kind", "element",
1397
       "name", "url",
1398
       "namespace", "##targetNamespace"
1399
       });		
1400
    addAnnotation
1401
      (linkTypeEClass, 
1402
       source, 
1403
       new String[] 
1404
       {
1405
       "name", "linkType",
1406
       "kind", "mixed"
1407
       });		
1408
    addAnnotation
1409
      (getLinkType_Mixed(), 
1410
       source, 
1411
       new String[] 
1412
       {
1413
       "kind", "elementWildcard",
1414
       "name", ":mixed"
1415
       });		
1416
    addAnnotation
1417
      (getLinkType_Manager(), 
1418
       source, 
1419
       new String[] 
1420
       {
1421
       "kind", "attribute",
1422
       "name", "manager"
1423
       });		
1424
    addAnnotation
1425
      (getLinkType_Subordinates(), 
1426
       source, 
1427
       new String[] 
1428
       {
1429
       "kind", "attribute",
1430
       "name", "subordinates"
1431
       });		
1432
    addAnnotation
1433
      (nameTypeEClass, 
1434
       source, 
1435
       new String[] 
1436
       {
1437
       "name", "nameType",
1438
       "kind", "mixed"
1439
       });		
1440
    addAnnotation
1441
      (getNameType_Mixed(), 
1442
       source, 
1443
       new String[] 
1444
       {
1445
       "kind", "elementWildcard",
1446
       "name", ":mixed"
1447
       });		
1448
    addAnnotation
1449
      (getNameType_Family(), 
1450
       source, 
1451
       new String[] 
1452
       {
1453
       "kind", "element",
1454
       "name", "family",
1455
       "namespace", "##targetNamespace"
1456
       });		
1457
    addAnnotation
1458
      (getNameType_Given(), 
1459
       source, 
1460
       new String[] 
1461
       {
1462
       "kind", "element",
1463
       "name", "given",
1464
       "namespace", "##targetNamespace"
1465
       });		
1466
    addAnnotation
1467
      (personnelTypeEClass, 
1468
       source, 
1469
       new String[] 
1470
       {
1471
       "name", "personnel_._type",
1472
       "kind", "elementOnly"
1473
       });		
1474
    addAnnotation
1475
      (getPersonnelType_Person(), 
1476
       source, 
1477
       new String[] 
1478
       {
1479
       "kind", "element",
1480
       "name", "person",
1481
       "namespace", "##targetNamespace"
1482
       });		
1483
    addAnnotation
1484
      (personTypeEClass, 
1485
       source, 
1486
       new String[] 
1487
       {
1488
       "name", "personType",
1489
       "kind", "mixed"
1490
       });		
1491
    addAnnotation
1492
      (getPersonType_Mixed(), 
1493
       source, 
1494
       new String[] 
1495
       {
1496
       "kind", "elementWildcard",
1497
       "name", ":mixed"
1498
       });		
1499
    addAnnotation
1500
      (getPersonType_Name(), 
1501
       source, 
1502
       new String[] 
1503
       {
1504
       "kind", "element",
1505
       "name", "name",
1506
       "namespace", "##targetNamespace"
1507
       });		
1508
    addAnnotation
1509
      (getPersonType_Email(), 
1510
       source, 
1511
       new String[] 
1512
       {
1513
       "kind", "element",
1514
       "name", "email",
1515
       "namespace", "##targetNamespace"
1516
       });		
1517
    addAnnotation
1518
      (getPersonType_Url(), 
1519
       source, 
1520
       new String[] 
1521
       {
1522
       "kind", "element",
1523
       "name", "url",
1524
       "namespace", "##targetNamespace"
1525
       });		
1526
    addAnnotation
1527
      (getPersonType_Link(), 
1528
       source, 
1529
       new String[] 
1530
       {
1531
       "kind", "element",
1532
       "name", "link",
1533
       "namespace", "##targetNamespace"
1534
       });		
1535
    addAnnotation
1536
      (getPersonType_Any(), 
1537
       source, 
1538
       new String[] 
1539
       {
1540
       "kind", "elementWildcard",
1541
       "wildcards", "##any",
1542
       "name", ":5",
1543
       "processing", "lax"
1544
       });		
1545
    addAnnotation
1546
      (getPersonType_Contr(), 
1547
       source, 
1548
       new String[] 
1549
       {
1550
       "kind", "attribute",
1551
       "name", "contr"
1552
       });		
1553
    addAnnotation
1554
      (getPersonType_Id(), 
1555
       source, 
1556
       new String[] 
1557
       {
1558
       "kind", "attribute",
1559
       "name", "id"
1560
       });		
1561
    addAnnotation
1562
      (getPersonType_Salary(), 
1563
       source, 
1564
       new String[] 
1565
       {
1566
       "kind", "attribute",
1567
       "name", "salary"
1568
       });		
1569
    addAnnotation
1570
      (urlTypeEClass, 
1571
       source, 
1572
       new String[] 
1573
       {
1574
       "name", "url_._type",
1575
       "kind", "empty"
1576
       });		
1577
    addAnnotation
1578
      (getUrlType_Href(), 
1579
       source, 
1580
       new String[] 
1581
       {
1582
       "kind", "attribute",
1583
       "name", "href"
1584
       });
1585
  }
1586
1587
  /**
1588
   * <!-- begin-user-doc -->
1589
   * Defines literals for the meta objects that represent
1590
   * <ul>
1591
   *   <li>each class,</li>
1592
   *   <li>each feature of each class,</li>
1593
   *   <li>each enum,</li>
1594
   *   <li>and each data type</li>
1595
   * </ul>
1596
   * <!-- end-user-doc -->
1597
   * @generated
1598
   */
1599
  public interface Literals
1600
  {
1601
    /**
1602
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl <em>Document Root</em>}' class.
1603
     * <!-- begin-user-doc -->
1604
     * <!-- end-user-doc -->
1605
     * @see org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl
1606
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getDocumentRoot()
1607
     * @generated
1608
     */
1609
    public static final EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
1610
1611
    /**
1612
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1613
     * <!-- begin-user-doc -->
1614
     * <!-- end-user-doc -->
1615
     * @generated
1616
     */
1617
    public static final EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
1618
1619
    /**
1620
     * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature.
1621
     * <!-- begin-user-doc -->
1622
     * <!-- end-user-doc -->
1623
     * @generated
1624
     */
1625
    public static final EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
1626
1627
    /**
1628
     * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature.
1629
     * <!-- begin-user-doc -->
1630
     * <!-- end-user-doc -->
1631
     * @generated
1632
     */
1633
    public static final EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation();
1634
1635
    /**
1636
     * The meta object literal for the '<em><b>Email</b></em>' attribute feature.
1637
     * <!-- begin-user-doc -->
1638
     * <!-- end-user-doc -->
1639
     * @generated
1640
     */
1641
    public static final EAttribute DOCUMENT_ROOT__EMAIL = eINSTANCE.getDocumentRoot_Email();
1642
1643
    /**
1644
     * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
1645
     * <!-- begin-user-doc -->
1646
     * <!-- end-user-doc -->
1647
     * @generated
1648
     */
1649
    public static final EAttribute DOCUMENT_ROOT__FAMILY = eINSTANCE.getDocumentRoot_Family();
1650
1651
    /**
1652
     * The meta object literal for the '<em><b>Given</b></em>' attribute feature.
1653
     * <!-- begin-user-doc -->
1654
     * <!-- end-user-doc -->
1655
     * @generated
1656
     */
1657
    public static final EAttribute DOCUMENT_ROOT__GIVEN = eINSTANCE.getDocumentRoot_Given();
1658
1659
    /**
1660
     * The meta object literal for the '<em><b>Link</b></em>' containment reference feature.
1661
     * <!-- begin-user-doc -->
1662
     * <!-- end-user-doc -->
1663
     * @generated
1664
     */
1665
    public static final EReference DOCUMENT_ROOT__LINK = eINSTANCE.getDocumentRoot_Link();
1666
1667
    /**
1668
     * The meta object literal for the '<em><b>Name</b></em>' containment reference feature.
1669
     * <!-- begin-user-doc -->
1670
     * <!-- end-user-doc -->
1671
     * @generated
1672
     */
1673
    public static final EReference DOCUMENT_ROOT__NAME = eINSTANCE.getDocumentRoot_Name();
1674
1675
    /**
1676
     * The meta object literal for the '<em><b>Person</b></em>' containment reference feature.
1677
     * <!-- begin-user-doc -->
1678
     * <!-- end-user-doc -->
1679
     * @generated
1680
     */
1681
    public static final EReference DOCUMENT_ROOT__PERSON = eINSTANCE.getDocumentRoot_Person();
1682
1683
    /**
1684
     * The meta object literal for the '<em><b>Personnel</b></em>' containment reference feature.
1685
     * <!-- begin-user-doc -->
1686
     * <!-- end-user-doc -->
1687
     * @generated
1688
     */
1689
    public static final EReference DOCUMENT_ROOT__PERSONNEL = eINSTANCE.getDocumentRoot_Personnel();
1690
1691
    /**
1692
     * The meta object literal for the '<em><b>Url</b></em>' containment reference feature.
1693
     * <!-- begin-user-doc -->
1694
     * <!-- end-user-doc -->
1695
     * @generated
1696
     */
1697
    public static final EReference DOCUMENT_ROOT__URL = eINSTANCE.getDocumentRoot_Url();
1698
1699
    /**
1700
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl <em>Link Type</em>}' class.
1701
     * <!-- begin-user-doc -->
1702
     * <!-- end-user-doc -->
1703
     * @see org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl
1704
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getLinkType()
1705
     * @generated
1706
     */
1707
    public static final EClass LINK_TYPE = eINSTANCE.getLinkType();
1708
1709
    /**
1710
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1711
     * <!-- begin-user-doc -->
1712
     * <!-- end-user-doc -->
1713
     * @generated
1714
     */
1715
    public static final EAttribute LINK_TYPE__MIXED = eINSTANCE.getLinkType_Mixed();
1716
1717
    /**
1718
     * The meta object literal for the '<em><b>Manager</b></em>' attribute feature.
1719
     * <!-- begin-user-doc -->
1720
     * <!-- end-user-doc -->
1721
     * @generated
1722
     */
1723
    public static final EAttribute LINK_TYPE__MANAGER = eINSTANCE.getLinkType_Manager();
1724
1725
    /**
1726
     * The meta object literal for the '<em><b>Subordinates</b></em>' attribute feature.
1727
     * <!-- begin-user-doc -->
1728
     * <!-- end-user-doc -->
1729
     * @generated
1730
     */
1731
    public static final EAttribute LINK_TYPE__SUBORDINATES = eINSTANCE.getLinkType_Subordinates();
1732
1733
    /**
1734
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl <em>Name Type</em>}' class.
1735
     * <!-- begin-user-doc -->
1736
     * <!-- end-user-doc -->
1737
     * @see org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl
1738
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getNameType()
1739
     * @generated
1740
     */
1741
    public static final EClass NAME_TYPE = eINSTANCE.getNameType();
1742
1743
    /**
1744
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1745
     * <!-- begin-user-doc -->
1746
     * <!-- end-user-doc -->
1747
     * @generated
1748
     */
1749
    public static final EAttribute NAME_TYPE__MIXED = eINSTANCE.getNameType_Mixed();
1750
1751
    /**
1752
     * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
1753
     * <!-- begin-user-doc -->
1754
     * <!-- end-user-doc -->
1755
     * @generated
1756
     */
1757
    public static final EAttribute NAME_TYPE__FAMILY = eINSTANCE.getNameType_Family();
1758
1759
    /**
1760
     * The meta object literal for the '<em><b>Given</b></em>' attribute feature.
1761
     * <!-- begin-user-doc -->
1762
     * <!-- end-user-doc -->
1763
     * @generated
1764
     */
1765
    public static final EAttribute NAME_TYPE__GIVEN = eINSTANCE.getNameType_Given();
1766
1767
    /**
1768
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class.
1769
     * <!-- begin-user-doc -->
1770
     * <!-- end-user-doc -->
1771
     * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl
1772
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonnelType()
1773
     * @generated
1774
     */
1775
    public static final EClass PERSONNEL_TYPE = eINSTANCE.getPersonnelType();
1776
1777
    /**
1778
     * The meta object literal for the '<em><b>Person</b></em>' containment reference list feature.
1779
     * <!-- begin-user-doc -->
1780
     * <!-- end-user-doc -->
1781
     * @generated
1782
     */
1783
    public static final EReference PERSONNEL_TYPE__PERSON = eINSTANCE.getPersonnelType_Person();
1784
1785
    /**
1786
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl <em>Person Type</em>}' class.
1787
     * <!-- begin-user-doc -->
1788
     * <!-- end-user-doc -->
1789
     * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl
1790
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonType()
1791
     * @generated
1792
     */
1793
    public static final EClass PERSON_TYPE = eINSTANCE.getPersonType();
1794
1795
    /**
1796
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1797
     * <!-- begin-user-doc -->
1798
     * <!-- end-user-doc -->
1799
     * @generated
1800
     */
1801
    public static final EAttribute PERSON_TYPE__MIXED = eINSTANCE.getPersonType_Mixed();
1802
1803
    /**
1804
     * The meta object literal for the '<em><b>Name</b></em>' containment reference feature.
1805
     * <!-- begin-user-doc -->
1806
     * <!-- end-user-doc -->
1807
     * @generated
1808
     */
1809
    public static final EReference PERSON_TYPE__NAME = eINSTANCE.getPersonType_Name();
1810
1811
    /**
1812
     * The meta object literal for the '<em><b>Email</b></em>' attribute list feature.
1813
     * <!-- begin-user-doc -->
1814
     * <!-- end-user-doc -->
1815
     * @generated
1816
     */
1817
    public static final EAttribute PERSON_TYPE__EMAIL = eINSTANCE.getPersonType_Email();
1818
1819
    /**
1820
     * The meta object literal for the '<em><b>Url</b></em>' containment reference list feature.
1821
     * <!-- begin-user-doc -->
1822
     * <!-- end-user-doc -->
1823
     * @generated
1824
     */
1825
    public static final EReference PERSON_TYPE__URL = eINSTANCE.getPersonType_Url();
1826
1827
    /**
1828
     * The meta object literal for the '<em><b>Link</b></em>' containment reference feature.
1829
     * <!-- begin-user-doc -->
1830
     * <!-- end-user-doc -->
1831
     * @generated
1832
     */
1833
    public static final EReference PERSON_TYPE__LINK = eINSTANCE.getPersonType_Link();
1834
1835
    /**
1836
     * The meta object literal for the '<em><b>Any</b></em>' attribute list feature.
1837
     * <!-- begin-user-doc -->
1838
     * <!-- end-user-doc -->
1839
     * @generated
1840
     */
1841
    public static final EAttribute PERSON_TYPE__ANY = eINSTANCE.getPersonType_Any();
1842
1843
    /**
1844
     * The meta object literal for the '<em><b>Contr</b></em>' attribute feature.
1845
     * <!-- begin-user-doc -->
1846
     * <!-- end-user-doc -->
1847
     * @generated
1848
     */
1849
    public static final EAttribute PERSON_TYPE__CONTR = eINSTANCE.getPersonType_Contr();
1850
1851
    /**
1852
     * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
1853
     * <!-- begin-user-doc -->
1854
     * <!-- end-user-doc -->
1855
     * @generated
1856
     */
1857
    public static final EAttribute PERSON_TYPE__ID = eINSTANCE.getPersonType_Id();
1858
1859
    /**
1860
     * The meta object literal for the '<em><b>Salary</b></em>' attribute feature.
1861
     * <!-- begin-user-doc -->
1862
     * <!-- end-user-doc -->
1863
     * @generated
1864
     */
1865
    public static final EAttribute PERSON_TYPE__SALARY = eINSTANCE.getPersonType_Salary();
1866
1867
    /**
1868
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl <em>Url Type</em>}' class.
1869
     * <!-- begin-user-doc -->
1870
     * <!-- end-user-doc -->
1871
     * @see org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl
1872
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getUrlType()
1873
     * @generated
1874
     */
1875
    public static final EClass URL_TYPE = eINSTANCE.getUrlType();
1876
1877
    /**
1878
     * The meta object literal for the '<em><b>Href</b></em>' attribute feature.
1879
     * <!-- begin-user-doc -->
1880
     * <!-- end-user-doc -->
1881
     * @generated
1882
     */
1883
    public static final EAttribute URL_TYPE__HREF = eINSTANCE.getUrlType_Href();
1884
1885
    /**
1886
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}' enum.
1887
     * <!-- begin-user-doc -->
1888
     * <!-- end-user-doc -->
1889
     * @see org.eclipse.emf.test.models.personal.mixed.ContrType
1890
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrType()
1891
     * @generated
1892
     */
1893
    public static final EEnum CONTR_TYPE = eINSTANCE.getContrType();
1894
1895
    /**
1896
     * The meta object literal for the '<em>Contr Type Object</em>' data type.
1897
     * <!-- begin-user-doc -->
1898
     * <!-- end-user-doc -->
1899
     * @see org.eclipse.emf.test.models.personal.mixed.ContrType
1900
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrTypeObject()
1901
     * @generated
1902
     */
1903
    public static final EDataType CONTR_TYPE_OBJECT = eINSTANCE.getContrTypeObject();
1904
1905
  }
1906
1907
} //MixedPackageImpl
(-)src/org/eclipse/emf/test/models/sdo/simple/impl/SimplePackageImpl.java (-687 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimplePackageImpl.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.impl;
18
19
import org.eclipse.emf.ecore.EAttribute;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EFactory;
22
import org.eclipse.emf.ecore.EPackage;
23
import org.eclipse.emf.ecore.EReference;
24
25
import org.eclipse.emf.ecore.impl.EPackageImpl;
26
27
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
28
29
import org.eclipse.emf.test.models.sdo.simple.Quote;
30
import org.eclipse.emf.test.models.sdo.simple.SimpleFactory;
31
32
/**
33
 * <!-- begin-user-doc -->
34
 * The <b>Package</b> for the model.
35
 * It contains accessors for the meta objects to represent
36
 * <ul>
37
 *   <li>each class,</li>
38
 *   <li>each feature of each class,</li>
39
 *   <li>each enum,</li>
40
 *   <li>and each data type</li>
41
 * </ul>
42
 * <!-- end-user-doc -->
43
 * @see org.eclipse.emf.test.models.sdo.simple.SimpleFactory
44
 * @model kind="package"
45
 * @generated
46
 */
47
public class SimplePackageImpl extends EPackageImpl
48
{
49
  /**
50
   * The package name.
51
   * <!-- begin-user-doc -->
52
   * <!-- end-user-doc -->
53
   * @generated
54
   */
55
  public static final String eNAME = "simple";
56
57
  /**
58
   * The package namespace URI.
59
   * <!-- begin-user-doc -->
60
   * <!-- end-user-doc -->
61
   * @generated
62
   */
63
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/simple";
64
65
  /**
66
   * The package namespace name.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @generated
70
   */
71
  public static final String eNS_PREFIX = "simple";
72
73
  /**
74
   * The singleton instance of the package.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @generated
78
   */
79
  public static final SimplePackageImpl eINSTANCE = org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl.init();
80
81
  /**
82
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl <em>Quote</em>}' class.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @see org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl
86
   * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#getQuote()
87
   * @generated
88
   */
89
  public static final int QUOTE = 0;
90
91
  /**
92
   * The feature id for the '<em><b>Symbol</b></em>' attribute.
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * @generated
96
   * @ordered
97
   */
98
  public static final int QUOTE__SYMBOL = 0;
99
100
  /**
101
   * The feature id for the '<em><b>Company Name</b></em>' attribute.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   * @ordered
106
   */
107
  public static final int QUOTE__COMPANY_NAME = 1;
108
109
  /**
110
   * The feature id for the '<em><b>Price</b></em>' attribute.
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
113
   * @generated
114
   * @ordered
115
   */
116
  public static final int QUOTE__PRICE = 2;
117
118
  /**
119
   * The feature id for the '<em><b>Open1</b></em>' attribute.
120
   * <!-- begin-user-doc -->
121
   * <!-- end-user-doc -->
122
   * @generated
123
   * @ordered
124
   */
125
  public static final int QUOTE__OPEN1 = 3;
126
127
  /**
128
   * The feature id for the '<em><b>High</b></em>' attribute.
129
   * <!-- begin-user-doc -->
130
   * <!-- end-user-doc -->
131
   * @generated
132
   * @ordered
133
   */
134
  public static final int QUOTE__HIGH = 4;
135
136
  /**
137
   * The feature id for the '<em><b>Low</b></em>' attribute.
138
   * <!-- begin-user-doc -->
139
   * <!-- end-user-doc -->
140
   * @generated
141
   * @ordered
142
   */
143
  public static final int QUOTE__LOW = 5;
144
145
  /**
146
   * The feature id for the '<em><b>Volume</b></em>' attribute.
147
   * <!-- begin-user-doc -->
148
   * <!-- end-user-doc -->
149
   * @generated
150
   * @ordered
151
   */
152
  public static final int QUOTE__VOLUME = 6;
153
154
  /**
155
   * The feature id for the '<em><b>Change1</b></em>' attribute.
156
   * <!-- begin-user-doc -->
157
   * <!-- end-user-doc -->
158
   * @generated
159
   * @ordered
160
   */
161
  public static final int QUOTE__CHANGE1 = 7;
162
163
  /**
164
   * The feature id for the '<em><b>Quotes</b></em>' containment reference list.
165
   * <!-- begin-user-doc -->
166
   * <!-- end-user-doc -->
167
   * @generated
168
   * @ordered
169
   */
170
  public static final int QUOTE__QUOTES = 8;
171
172
  /**
173
   * The number of structural features of the '<em>Quote</em>' class.
174
   * <!-- begin-user-doc -->
175
   * <!-- end-user-doc -->
176
   * @generated
177
   * @ordered
178
   */
179
  public static final int QUOTE_FEATURE_COUNT = 9;
180
181
  /**
182
   * <!-- begin-user-doc -->
183
   * <!-- end-user-doc -->
184
   * @generated
185
   */
186
  private EClass quoteEClass = null;
187
188
  /**
189
   * Creates an instance of the model <b>Package</b>, registered with
190
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
191
   * package URI value.
192
   * <p>Note: the correct way to create the package is via the static
193
   * factory method {@link #init init()}, which also performs
194
   * initialization of the package, or returns the registered package,
195
   * if one already exists.
196
   * <!-- begin-user-doc -->
197
   * <!-- end-user-doc -->
198
   * @see org.eclipse.emf.ecore.EPackage.Registry
199
   * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#eNS_URI
200
   * @see #init()
201
   * @generated
202
   */
203
  private SimplePackageImpl()
204
  {
205
    super(eNS_URI, ((EFactory)SimpleFactory.INSTANCE));
206
  }
207
208
  /**
209
   * <!-- begin-user-doc -->
210
   * <!-- end-user-doc -->
211
   * @generated
212
   */
213
  private static boolean isInited = false;
214
215
  /**
216
   * Creates, registers, and initializes the <b>Package</b> for this
217
   * model, and for any others upon which it depends.  Simple
218
   * dependencies are satisfied by calling this method on all
219
   * dependent packages before doing anything else.  This method drives
220
   * initialization for interdependent packages directly, in parallel
221
   * with this package, itself.
222
   * <p>Of this package and its interdependencies, all packages which
223
   * have not yet been registered by their URI values are first created
224
   * and registered.  The packages are then initialized in two steps:
225
   * meta-model objects for all of the packages are created before any
226
   * are initialized, since one package's meta-model objects may refer to
227
   * those of another.
228
   * <p>Invocation of this method will not affect any packages that have
229
   * already been initialized.
230
   * <!-- begin-user-doc -->
231
   * <!-- end-user-doc -->
232
   * @see #eNS_URI
233
   * @see #createPackageContents()
234
   * @see #initializePackageContents()
235
   * @generated
236
   */
237
  public static SimplePackageImpl init()
238
  {
239
    if (isInited) return (SimplePackageImpl)EPackage.Registry.INSTANCE.getEPackage(SimplePackageImpl.eNS_URI);
240
241
    // Obtain or create and register package
242
    SimplePackageImpl theSimplePackageImpl = (SimplePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof SimplePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new SimplePackageImpl());
243
244
    isInited = true;
245
246
    // Initialize simple dependencies
247
    XMLTypePackage.eINSTANCE.eClass();
248
249
    // Create package meta-data objects
250
    theSimplePackageImpl.createPackageContents();
251
252
    // Initialize created meta-data
253
    theSimplePackageImpl.initializePackageContents();
254
255
    // Mark meta-data to indicate it can't be changed
256
    theSimplePackageImpl.freeze();
257
258
    return theSimplePackageImpl;
259
  }
260
261
262
  /**
263
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.simple.Quote <em>Quote</em>}'.
264
   * <!-- begin-user-doc -->
265
   * <!-- end-user-doc -->
266
   * @return the meta object for class '<em>Quote</em>'.
267
   * @see org.eclipse.emf.test.models.sdo.simple.Quote
268
   * @generated
269
   */
270
  public EClass getQuote()
271
  {
272
    return quoteEClass;
273
  }
274
275
  /**
276
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol <em>Symbol</em>}'.
277
   * <!-- begin-user-doc -->
278
   * <!-- end-user-doc -->
279
   * @return the meta object for the attribute '<em>Symbol</em>'.
280
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol()
281
   * @see #getQuote()
282
   * @generated
283
   */
284
  public EAttribute getQuote_Symbol()
285
  {
286
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(0);
287
  }
288
289
  /**
290
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName <em>Company Name</em>}'.
291
   * <!-- begin-user-doc -->
292
   * <!-- end-user-doc -->
293
   * @return the meta object for the attribute '<em>Company Name</em>'.
294
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName()
295
   * @see #getQuote()
296
   * @generated
297
   */
298
  public EAttribute getQuote_CompanyName()
299
  {
300
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(1);
301
  }
302
303
  /**
304
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getPrice <em>Price</em>}'.
305
   * <!-- begin-user-doc -->
306
   * <!-- end-user-doc -->
307
   * @return the meta object for the attribute '<em>Price</em>'.
308
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getPrice()
309
   * @see #getQuote()
310
   * @generated
311
   */
312
  public EAttribute getQuote_Price()
313
  {
314
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(2);
315
  }
316
317
  /**
318
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1 <em>Open1</em>}'.
319
   * <!-- begin-user-doc -->
320
   * <!-- end-user-doc -->
321
   * @return the meta object for the attribute '<em>Open1</em>'.
322
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1()
323
   * @see #getQuote()
324
   * @generated
325
   */
326
  public EAttribute getQuote_Open1()
327
  {
328
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(3);
329
  }
330
331
  /**
332
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getHigh <em>High</em>}'.
333
   * <!-- begin-user-doc -->
334
   * <!-- end-user-doc -->
335
   * @return the meta object for the attribute '<em>High</em>'.
336
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getHigh()
337
   * @see #getQuote()
338
   * @generated
339
   */
340
  public EAttribute getQuote_High()
341
  {
342
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(4);
343
  }
344
345
  /**
346
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getLow <em>Low</em>}'.
347
   * <!-- begin-user-doc -->
348
   * <!-- end-user-doc -->
349
   * @return the meta object for the attribute '<em>Low</em>'.
350
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getLow()
351
   * @see #getQuote()
352
   * @generated
353
   */
354
  public EAttribute getQuote_Low()
355
  {
356
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(5);
357
  }
358
359
  /**
360
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}'.
361
   * <!-- begin-user-doc -->
362
   * <!-- end-user-doc -->
363
   * @return the meta object for the attribute '<em>Volume</em>'.
364
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getVolume()
365
   * @see #getQuote()
366
   * @generated
367
   */
368
  public EAttribute getQuote_Volume()
369
  {
370
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(6);
371
  }
372
373
  /**
374
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}'.
375
   * <!-- begin-user-doc -->
376
   * <!-- end-user-doc -->
377
   * @return the meta object for the attribute '<em>Change1</em>'.
378
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getChange1()
379
   * @see #getQuote()
380
   * @generated
381
   */
382
  public EAttribute getQuote_Change1()
383
  {
384
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(7);
385
  }
386
387
  /**
388
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getQuotes <em>Quotes</em>}'.
389
   * <!-- begin-user-doc -->
390
   * <!-- end-user-doc -->
391
   * @return the meta object for the containment reference list '<em>Quotes</em>'.
392
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getQuotes()
393
   * @see #getQuote()
394
   * @generated
395
   */
396
  public EReference getQuote_Quotes()
397
  {
398
    return (EReference)quoteEClass.getEStructuralFeatures().get(8);
399
  }
400
401
  /**
402
   * Returns the factory that creates the instances of the model.
403
   * <!-- begin-user-doc -->
404
   * <!-- end-user-doc -->
405
   * @return the factory that creates the instances of the model.
406
   * @generated
407
   */
408
  public SimpleFactory getSimpleFactory()
409
  {
410
    return (SimpleFactory)getEFactoryInstance();
411
  }
412
413
  /**
414
   * <!-- begin-user-doc -->
415
   * <!-- end-user-doc -->
416
   * @generated
417
   */
418
  private boolean isCreated = false;
419
420
  /**
421
   * Creates the meta-model objects for the package.  This method is
422
   * guarded to have no affect on any invocation but its first.
423
   * <!-- begin-user-doc -->
424
   * <!-- end-user-doc -->
425
   * @generated
426
   */
427
  public void createPackageContents()
428
  {
429
    if (isCreated) return;
430
    isCreated = true;
431
432
    // Create classes and their features
433
    quoteEClass = createEClass(QUOTE);
434
    createEAttribute(quoteEClass, QUOTE__SYMBOL);
435
    createEAttribute(quoteEClass, QUOTE__COMPANY_NAME);
436
    createEAttribute(quoteEClass, QUOTE__PRICE);
437
    createEAttribute(quoteEClass, QUOTE__OPEN1);
438
    createEAttribute(quoteEClass, QUOTE__HIGH);
439
    createEAttribute(quoteEClass, QUOTE__LOW);
440
    createEAttribute(quoteEClass, QUOTE__VOLUME);
441
    createEAttribute(quoteEClass, QUOTE__CHANGE1);
442
    createEReference(quoteEClass, QUOTE__QUOTES);
443
  }
444
445
  /**
446
   * <!-- begin-user-doc -->
447
   * <!-- end-user-doc -->
448
   * @generated
449
   */
450
  private boolean isInitialized = false;
451
452
  /**
453
   * Complete the initialization of the package and its meta-model.  This
454
   * method is guarded to have no affect on any invocation but its first.
455
   * <!-- begin-user-doc -->
456
   * <!-- end-user-doc -->
457
   * @generated
458
   */
459
  public void initializePackageContents()
460
  {
461
    if (isInitialized) return;
462
    isInitialized = true;
463
464
    // Initialize package
465
    setName(eNAME);
466
    setNsPrefix(eNS_PREFIX);
467
    setNsURI(eNS_URI);
468
469
    // Obtain other dependent packages
470
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
471
472
    // Create type parameters
473
474
    // Set bounds for type parameters
475
476
    // Add supertypes to classes
477
478
    // Initialize classes and features; add operations and parameters
479
    initEClass(quoteEClass, Quote.class, "Quote", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
480
    initEAttribute(getQuote_Symbol(), theXMLTypePackage.getString(), "symbol", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
481
    initEAttribute(getQuote_CompanyName(), theXMLTypePackage.getString(), "companyName", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
482
    initEAttribute(getQuote_Price(), theXMLTypePackage.getDecimal(), "price", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
483
    initEAttribute(getQuote_Open1(), theXMLTypePackage.getDecimal(), "open1", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
484
    initEAttribute(getQuote_High(), theXMLTypePackage.getDecimal(), "high", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
485
    initEAttribute(getQuote_Low(), theXMLTypePackage.getDecimal(), "low", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
486
    initEAttribute(getQuote_Volume(), theXMLTypePackage.getDouble(), "volume", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
487
    initEAttribute(getQuote_Change1(), theXMLTypePackage.getDouble(), "change1", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
488
    initEReference(getQuote_Quotes(), this.getQuote(), null, "quotes", null, 0, -1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
489
490
    // Create resource
491
    createResource(eNS_URI);
492
493
    // Create annotations
494
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
495
    createExtendedMetaDataAnnotations();
496
  }
497
498
  /**
499
   * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
500
   * <!-- begin-user-doc -->
501
   * <!-- end-user-doc -->
502
   * @generated
503
   */
504
  protected void createExtendedMetaDataAnnotations()
505
  {
506
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";		
507
    addAnnotation
508
      (quoteEClass, 
509
       source, 
510
       new String[] 
511
       {
512
       "name", "Quote",
513
       "kind", "elementOnly"
514
       });		
515
    addAnnotation
516
      (getQuote_Symbol(), 
517
       source, 
518
       new String[] 
519
       {
520
       "kind", "element",
521
       "name", "symbol"
522
       });		
523
    addAnnotation
524
      (getQuote_CompanyName(), 
525
       source, 
526
       new String[] 
527
       {
528
       "kind", "element",
529
       "name", "companyName"
530
       });		
531
    addAnnotation
532
      (getQuote_Price(), 
533
       source, 
534
       new String[] 
535
       {
536
       "kind", "element",
537
       "name", "price"
538
       });		
539
    addAnnotation
540
      (getQuote_Open1(), 
541
       source, 
542
       new String[] 
543
       {
544
       "kind", "element",
545
       "name", "open1"
546
       });		
547
    addAnnotation
548
      (getQuote_High(), 
549
       source, 
550
       new String[] 
551
       {
552
       "kind", "element",
553
       "name", "high"
554
       });		
555
    addAnnotation
556
      (getQuote_Low(), 
557
       source, 
558
       new String[] 
559
       {
560
       "kind", "element",
561
       "name", "low"
562
       });		
563
    addAnnotation
564
      (getQuote_Volume(), 
565
       source, 
566
       new String[] 
567
       {
568
       "kind", "element",
569
       "name", "volume"
570
       });		
571
    addAnnotation
572
      (getQuote_Change1(), 
573
       source, 
574
       new String[] 
575
       {
576
       "kind", "element",
577
       "name", "change1"
578
       });		
579
    addAnnotation
580
      (getQuote_Quotes(), 
581
       source, 
582
       new String[] 
583
       {
584
       "kind", "element",
585
       "name", "quotes"
586
       });
587
  }
588
589
  /**
590
   * <!-- begin-user-doc -->
591
   * Defines literals for the meta objects that represent
592
   * <ul>
593
   *   <li>each class,</li>
594
   *   <li>each feature of each class,</li>
595
   *   <li>each enum,</li>
596
   *   <li>and each data type</li>
597
   * </ul>
598
   * <!-- end-user-doc -->
599
   * @generated
600
   */
601
  public interface Literals
602
  {
603
    /**
604
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl <em>Quote</em>}' class.
605
     * <!-- begin-user-doc -->
606
     * <!-- end-user-doc -->
607
     * @see org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl
608
     * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#getQuote()
609
     * @generated
610
     */
611
    public static final EClass QUOTE = eINSTANCE.getQuote();
612
613
    /**
614
     * The meta object literal for the '<em><b>Symbol</b></em>' attribute feature.
615
     * <!-- begin-user-doc -->
616
     * <!-- end-user-doc -->
617
     * @generated
618
     */
619
    public static final EAttribute QUOTE__SYMBOL = eINSTANCE.getQuote_Symbol();
620
621
    /**
622
     * The meta object literal for the '<em><b>Company Name</b></em>' attribute feature.
623
     * <!-- begin-user-doc -->
624
     * <!-- end-user-doc -->
625
     * @generated
626
     */
627
    public static final EAttribute QUOTE__COMPANY_NAME = eINSTANCE.getQuote_CompanyName();
628
629
    /**
630
     * The meta object literal for the '<em><b>Price</b></em>' attribute feature.
631
     * <!-- begin-user-doc -->
632
     * <!-- end-user-doc -->
633
     * @generated
634
     */
635
    public static final EAttribute QUOTE__PRICE = eINSTANCE.getQuote_Price();
636
637
    /**
638
     * The meta object literal for the '<em><b>Open1</b></em>' attribute feature.
639
     * <!-- begin-user-doc -->
640
     * <!-- end-user-doc -->
641
     * @generated
642
     */
643
    public static final EAttribute QUOTE__OPEN1 = eINSTANCE.getQuote_Open1();
644
645
    /**
646
     * The meta object literal for the '<em><b>High</b></em>' attribute feature.
647
     * <!-- begin-user-doc -->
648
     * <!-- end-user-doc -->
649
     * @generated
650
     */
651
    public static final EAttribute QUOTE__HIGH = eINSTANCE.getQuote_High();
652
653
    /**
654
     * The meta object literal for the '<em><b>Low</b></em>' attribute feature.
655
     * <!-- begin-user-doc -->
656
     * <!-- end-user-doc -->
657
     * @generated
658
     */
659
    public static final EAttribute QUOTE__LOW = eINSTANCE.getQuote_Low();
660
661
    /**
662
     * The meta object literal for the '<em><b>Volume</b></em>' attribute feature.
663
     * <!-- begin-user-doc -->
664
     * <!-- end-user-doc -->
665
     * @generated
666
     */
667
    public static final EAttribute QUOTE__VOLUME = eINSTANCE.getQuote_Volume();
668
669
    /**
670
     * The meta object literal for the '<em><b>Change1</b></em>' attribute feature.
671
     * <!-- begin-user-doc -->
672
     * <!-- end-user-doc -->
673
     * @generated
674
     */
675
    public static final EAttribute QUOTE__CHANGE1 = eINSTANCE.getQuote_Change1();
676
677
    /**
678
     * The meta object literal for the '<em><b>Quotes</b></em>' containment reference list feature.
679
     * <!-- begin-user-doc -->
680
     * <!-- end-user-doc -->
681
     * @generated
682
     */
683
    public static final EReference QUOTE__QUOTES = eINSTANCE.getQuote_Quotes();
684
685
  }
686
687
} //SimplePackageImpl
(-)src/org/eclipse/emf/test/models/types/util/TypesResourceImpl.java (-44 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesResourceImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.types.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * The <b>Resource </b> associated with the package.
26
 * <!-- end-user-doc -->
27
 * @see org.eclipse.emf.test.models.types.util.TypesResourceFactoryImpl
28
 * @generated
29
 */
30
public class TypesResourceImpl extends XMLResourceImpl
31
{
32
  /**
33
   * Creates an instance of the resource.
34
   * <!-- begin-user-doc -->
35
   * <!-- end-user-doc -->
36
   * @param uri the URI of the new resource.
37
   * @generated
38
   */
39
  public TypesResourceImpl(URI uri)
40
  {
41
    super(uri);
42
  }
43
44
} //TypesResourceImpl
(-)src/org/eclipse/emf/test/models/types/util/TypesResourceFactoryImpl.java (-69 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.types.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.resource.Resource;
22
23
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
24
25
import org.eclipse.emf.ecore.xmi.XMLResource;
26
27
/**
28
 * <!-- begin-user-doc -->
29
 * The <b>Resource Factory</b> associated with the package.
30
 * <!-- end-user-doc -->
31
 * @see org.eclipse.emf.test.models.types.util.TypesResourceImpl
32
 * @generated
33
 */
34
public class TypesResourceFactoryImpl extends ResourceFactoryImpl
35
{
36
  /**
37
   * Creates an instance of the resource factory.
38
   * <!-- begin-user-doc -->
39
   * <!-- end-user-doc -->
40
   * @generated
41
   */
42
  public TypesResourceFactoryImpl()
43
  {
44
    super();
45
  }
46
47
  /**
48
   * Creates an instance of the resource.
49
   * <!-- begin-user-doc -->
50
   * <!-- end-user-doc -->
51
   * @generated
52
   */
53
  @Override
54
  public Resource createResource(URI uri)
55
  {
56
    XMLResource result = new TypesResourceImpl(uri);
57
    result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
58
    result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
59
60
    result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
61
62
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
63
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
64
65
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
66
    return result;
67
  }
68
69
} //TypesResourceFactoryImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/AddressImpl.java (-310 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: AddressImpl.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
21
import org.eclipse.emf.ecore.EClass;
22
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
25
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
26
27
import org.eclipse.emf.test.models.ipo.Address;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Address</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getName <em>Name</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getStreet <em>Street</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getCity <em>City</em>}</li>
39
 * </ul>
40
 * </p>
41
 *
42
 * @generated
43
 */
44
public class AddressImpl extends EDataObjectImpl implements Address
45
{
46
  /**
47
   * <!-- begin-user-doc -->
48
   * <!-- end-user-doc -->
49
   * @generated
50
   */
51
  private static final long serialVersionUID = 1L;
52
53
  /**
54
   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
55
   * <!-- begin-user-doc -->
56
   * <!-- end-user-doc -->
57
   * @see #getName()
58
   * @generated
59
   * @ordered
60
   */
61
  protected static final String NAME_EDEFAULT = null;
62
63
  /**
64
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
65
   * <!-- begin-user-doc -->
66
   * <!-- end-user-doc -->
67
   * @see #getName()
68
   * @generated
69
   * @ordered
70
   */
71
  protected String name = NAME_EDEFAULT;
72
73
  /**
74
   * The default value of the '{@link #getStreet() <em>Street</em>}' attribute.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @see #getStreet()
78
   * @generated
79
   * @ordered
80
   */
81
  protected static final String STREET_EDEFAULT = null;
82
83
  /**
84
   * The cached value of the '{@link #getStreet() <em>Street</em>}' attribute.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see #getStreet()
88
   * @generated
89
   * @ordered
90
   */
91
  protected String street = STREET_EDEFAULT;
92
93
  /**
94
   * The default value of the '{@link #getCity() <em>City</em>}' attribute.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @see #getCity()
98
   * @generated
99
   * @ordered
100
   */
101
  protected static final String CITY_EDEFAULT = null;
102
103
  /**
104
   * The cached value of the '{@link #getCity() <em>City</em>}' attribute.
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @see #getCity()
108
   * @generated
109
   * @ordered
110
   */
111
  protected String city = CITY_EDEFAULT;
112
113
  /**
114
   * <!-- begin-user-doc -->
115
   * <!-- end-user-doc -->
116
   * @generated
117
   */
118
  protected AddressImpl()
119
  {
120
    super();
121
  }
122
123
  /**
124
   * <!-- begin-user-doc -->
125
   * <!-- end-user-doc -->
126
   * @generated
127
   */
128
  @Override
129
  protected EClass eStaticClass()
130
  {
131
    return IPOPackageImpl.Literals.ADDRESS;
132
  }
133
134
  /**
135
   * <!-- begin-user-doc -->
136
   * <!-- end-user-doc -->
137
   * @generated
138
   */
139
  public String getName()
140
  {
141
    return name;
142
  }
143
144
  /**
145
   * <!-- begin-user-doc -->
146
   * <!-- end-user-doc -->
147
   * @generated
148
   */
149
  public void setName(String newName)
150
  {
151
    String oldName = name;
152
    name = newName;
153
    if (eNotificationRequired())
154
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__NAME, oldName, name));
155
  }
156
157
  /**
158
   * <!-- begin-user-doc -->
159
   * <!-- end-user-doc -->
160
   * @generated
161
   */
162
  public String getStreet()
163
  {
164
    return street;
165
  }
166
167
  /**
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   */
172
  public void setStreet(String newStreet)
173
  {
174
    String oldStreet = street;
175
    street = newStreet;
176
    if (eNotificationRequired())
177
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__STREET, oldStreet, street));
178
  }
179
180
  /**
181
   * <!-- begin-user-doc -->
182
   * <!-- end-user-doc -->
183
   * @generated
184
   */
185
  public String getCity()
186
  {
187
    return city;
188
  }
189
190
  /**
191
   * <!-- begin-user-doc -->
192
   * <!-- end-user-doc -->
193
   * @generated
194
   */
195
  public void setCity(String newCity)
196
  {
197
    String oldCity = city;
198
    city = newCity;
199
    if (eNotificationRequired())
200
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__CITY, oldCity, city));
201
  }
202
203
  /**
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   */
208
  @Override
209
  public Object eGet(int featureID, boolean resolve, boolean coreType)
210
  {
211
    switch (featureID)
212
    {
213
      case IPOPackageImpl.ADDRESS__NAME:
214
        return getName();
215
      case IPOPackageImpl.ADDRESS__STREET:
216
        return getStreet();
217
      case IPOPackageImpl.ADDRESS__CITY:
218
        return getCity();
219
    }
220
    return super.eGet(featureID, resolve, coreType);
221
  }
222
223
  /**
224
   * <!-- begin-user-doc -->
225
   * <!-- end-user-doc -->
226
   * @generated
227
   */
228
  @Override
229
  public void eSet(int featureID, Object newValue)
230
  {
231
    switch (featureID)
232
    {
233
      case IPOPackageImpl.ADDRESS__NAME:
234
        setName((String)newValue);
235
        return;
236
      case IPOPackageImpl.ADDRESS__STREET:
237
        setStreet((String)newValue);
238
        return;
239
      case IPOPackageImpl.ADDRESS__CITY:
240
        setCity((String)newValue);
241
        return;
242
    }
243
    super.eSet(featureID, newValue);
244
  }
245
246
  /**
247
   * <!-- begin-user-doc -->
248
   * <!-- end-user-doc -->
249
   * @generated
250
   */
251
  @Override
252
  public void eUnset(int featureID)
253
  {
254
    switch (featureID)
255
    {
256
      case IPOPackageImpl.ADDRESS__NAME:
257
        setName(NAME_EDEFAULT);
258
        return;
259
      case IPOPackageImpl.ADDRESS__STREET:
260
        setStreet(STREET_EDEFAULT);
261
        return;
262
      case IPOPackageImpl.ADDRESS__CITY:
263
        setCity(CITY_EDEFAULT);
264
        return;
265
    }
266
    super.eUnset(featureID);
267
  }
268
269
  /**
270
   * <!-- begin-user-doc -->
271
   * <!-- end-user-doc -->
272
   * @generated
273
   */
274
  @Override
275
  public boolean eIsSet(int featureID)
276
  {
277
    switch (featureID)
278
    {
279
      case IPOPackageImpl.ADDRESS__NAME:
280
        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
281
      case IPOPackageImpl.ADDRESS__STREET:
282
        return STREET_EDEFAULT == null ? street != null : !STREET_EDEFAULT.equals(street);
283
      case IPOPackageImpl.ADDRESS__CITY:
284
        return CITY_EDEFAULT == null ? city != null : !CITY_EDEFAULT.equals(city);
285
    }
286
    return super.eIsSet(featureID);
287
  }
288
289
  /**
290
   * <!-- begin-user-doc -->
291
   * <!-- end-user-doc -->
292
   * @generated
293
   */
294
  @Override
295
  public String toString()
296
  {
297
    if (eIsProxy()) return super.toString();
298
299
    StringBuffer result = new StringBuffer(super.toString());
300
    result.append(" (name: ");
301
    result.append(name);
302
    result.append(", street: ");
303
    result.append(street);
304
    result.append(", city: ");
305
    result.append(city);
306
    result.append(')');
307
    return result.toString();
308
  }
309
310
} //AddressImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/PurchaseOrderTypeImpl.java (-486 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PurchaseOrderTypeImpl.java,v 1.4 2007/06/02 19:35:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import javax.xml.datatype.XMLGregorianCalendar;
20
import org.eclipse.emf.common.notify.Notification;
21
import org.eclipse.emf.common.notify.NotificationChain;
22
23
import org.eclipse.emf.ecore.EClass;
24
import org.eclipse.emf.ecore.InternalEObject;
25
26
import org.eclipse.emf.ecore.impl.ENotificationImpl;
27
28
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
29
30
import org.eclipse.emf.test.models.ipo.Address;
31
import org.eclipse.emf.test.models.ipo.Items;
32
import org.eclipse.emf.test.models.ipo.PurchaseOrderType;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * An implementation of the model object '<em><b>Purchase Order Type</b></em>'.
37
 * <!-- end-user-doc -->
38
 * <p>
39
 * The following features are implemented:
40
 * <ul>
41
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getShipTo <em>Ship To</em>}</li>
42
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getBillTo <em>Bill To</em>}</li>
43
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getComment <em>Comment</em>}</li>
44
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getItems <em>Items</em>}</li>
45
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getOrderDate <em>Order Date</em>}</li>
46
 * </ul>
47
 * </p>
48
 *
49
 * @generated
50
 */
51
public class PurchaseOrderTypeImpl extends EDataObjectImpl implements PurchaseOrderType
52
{
53
  /**
54
   * <!-- begin-user-doc -->
55
   * <!-- end-user-doc -->
56
   * @generated
57
   */
58
  private static final long serialVersionUID = 1L;
59
60
  /**
61
   * The cached value of the '{@link #getShipTo() <em>Ship To</em>}' containment reference.
62
   * <!-- begin-user-doc -->
63
   * <!-- end-user-doc -->
64
   * @see #getShipTo()
65
   * @generated
66
   * @ordered
67
   */
68
  protected Address shipTo;
69
70
  /**
71
   * The cached value of the '{@link #getBillTo() <em>Bill To</em>}' containment reference.
72
   * <!-- begin-user-doc -->
73
   * <!-- end-user-doc -->
74
   * @see #getBillTo()
75
   * @generated
76
   * @ordered
77
   */
78
  protected Address billTo;
79
80
  /**
81
   * The default value of the '{@link #getComment() <em>Comment</em>}' attribute.
82
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
84
   * @see #getComment()
85
   * @generated
86
   * @ordered
87
   */
88
  protected static final String COMMENT_EDEFAULT = null;
89
90
  /**
91
   * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute.
92
   * <!-- begin-user-doc -->
93
   * <!-- end-user-doc -->
94
   * @see #getComment()
95
   * @generated
96
   * @ordered
97
   */
98
  protected String comment = COMMENT_EDEFAULT;
99
100
  /**
101
   * The cached value of the '{@link #getItems() <em>Items</em>}' containment reference.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @see #getItems()
105
   * @generated
106
   * @ordered
107
   */
108
  protected Items items;
109
110
  /**
111
   * The default value of the '{@link #getOrderDate() <em>Order Date</em>}' attribute.
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @see #getOrderDate()
115
   * @generated
116
   * @ordered
117
   */
118
  protected static final XMLGregorianCalendar ORDER_DATE_EDEFAULT = null;
119
120
  /**
121
   * The cached value of the '{@link #getOrderDate() <em>Order Date</em>}' attribute.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @see #getOrderDate()
125
   * @generated
126
   * @ordered
127
   */
128
  protected XMLGregorianCalendar orderDate = ORDER_DATE_EDEFAULT;
129
130
  /**
131
   * <!-- begin-user-doc -->
132
   * <!-- end-user-doc -->
133
   * @generated
134
   */
135
  protected PurchaseOrderTypeImpl()
136
  {
137
    super();
138
  }
139
140
  /**
141
   * <!-- begin-user-doc -->
142
   * <!-- end-user-doc -->
143
   * @generated
144
   */
145
  @Override
146
  protected EClass eStaticClass()
147
  {
148
    return IPOPackageImpl.Literals.PURCHASE_ORDER_TYPE;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  public Address getShipTo()
157
  {
158
    return shipTo;
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  public NotificationChain basicSetShipTo(Address newShipTo, NotificationChain msgs)
167
  {
168
    Address oldShipTo = shipTo;
169
    shipTo = newShipTo;
170
    if (eNotificationRequired())
171
    {
172
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, oldShipTo, newShipTo);
173
      if (msgs == null) msgs = notification; else msgs.add(notification);
174
    }
175
    return msgs;
176
  }
177
178
  /**
179
   * <!-- begin-user-doc -->
180
   * <!-- end-user-doc -->
181
   * @generated
182
   */
183
  public void setShipTo(Address newShipTo)
184
  {
185
    if (newShipTo != shipTo)
186
    {
187
      NotificationChain msgs = null;
188
      if (shipTo != null)
189
        msgs = ((InternalEObject)shipTo).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, null, msgs);
190
      if (newShipTo != null)
191
        msgs = ((InternalEObject)newShipTo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, null, msgs);
192
      msgs = basicSetShipTo(newShipTo, msgs);
193
      if (msgs != null) msgs.dispatch();
194
    }
195
    else if (eNotificationRequired())
196
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, newShipTo, newShipTo));
197
  }
198
199
  /**
200
   * <!-- begin-user-doc -->
201
   * <!-- end-user-doc -->
202
   * @generated
203
   */
204
  public Address getBillTo()
205
  {
206
    return billTo;
207
  }
208
209
  /**
210
   * <!-- begin-user-doc -->
211
   * <!-- end-user-doc -->
212
   * @generated
213
   */
214
  public NotificationChain basicSetBillTo(Address newBillTo, NotificationChain msgs)
215
  {
216
    Address oldBillTo = billTo;
217
    billTo = newBillTo;
218
    if (eNotificationRequired())
219
    {
220
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, oldBillTo, newBillTo);
221
      if (msgs == null) msgs = notification; else msgs.add(notification);
222
    }
223
    return msgs;
224
  }
225
226
  /**
227
   * <!-- begin-user-doc -->
228
   * <!-- end-user-doc -->
229
   * @generated
230
   */
231
  public void setBillTo(Address newBillTo)
232
  {
233
    if (newBillTo != billTo)
234
    {
235
      NotificationChain msgs = null;
236
      if (billTo != null)
237
        msgs = ((InternalEObject)billTo).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, null, msgs);
238
      if (newBillTo != null)
239
        msgs = ((InternalEObject)newBillTo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, null, msgs);
240
      msgs = basicSetBillTo(newBillTo, msgs);
241
      if (msgs != null) msgs.dispatch();
242
    }
243
    else if (eNotificationRequired())
244
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, newBillTo, newBillTo));
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public String getComment()
253
  {
254
    return comment;
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @generated
261
   */
262
  public void setComment(String newComment)
263
  {
264
    String oldComment = comment;
265
    comment = newComment;
266
    if (eNotificationRequired())
267
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT, oldComment, comment));
268
  }
269
270
  /**
271
   * <!-- begin-user-doc -->
272
   * <!-- end-user-doc -->
273
   * @generated
274
   */
275
  public Items getItems()
276
  {
277
    return items;
278
  }
279
280
  /**
281
   * <!-- begin-user-doc -->
282
   * <!-- end-user-doc -->
283
   * @generated
284
   */
285
  public NotificationChain basicSetItems(Items newItems, NotificationChain msgs)
286
  {
287
    Items oldItems = items;
288
    items = newItems;
289
    if (eNotificationRequired())
290
    {
291
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, oldItems, newItems);
292
      if (msgs == null) msgs = notification; else msgs.add(notification);
293
    }
294
    return msgs;
295
  }
296
297
  /**
298
   * <!-- begin-user-doc -->
299
   * <!-- end-user-doc -->
300
   * @generated
301
   */
302
  public void setItems(Items newItems)
303
  {
304
    if (newItems != items)
305
    {
306
      NotificationChain msgs = null;
307
      if (items != null)
308
        msgs = ((InternalEObject)items).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, null, msgs);
309
      if (newItems != null)
310
        msgs = ((InternalEObject)newItems).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, null, msgs);
311
      msgs = basicSetItems(newItems, msgs);
312
      if (msgs != null) msgs.dispatch();
313
    }
314
    else if (eNotificationRequired())
315
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, newItems, newItems));
316
  }
317
318
  /**
319
   * <!-- begin-user-doc -->
320
   * <!-- end-user-doc -->
321
   * @generated
322
   */
323
  public XMLGregorianCalendar getOrderDate()
324
  {
325
    return orderDate;
326
  }
327
328
  /**
329
   * <!-- begin-user-doc -->
330
   * <!-- end-user-doc -->
331
   * @generated
332
   */
333
  public void setOrderDate(XMLGregorianCalendar newOrderDate)
334
  {
335
    XMLGregorianCalendar oldOrderDate = orderDate;
336
    orderDate = newOrderDate;
337
    if (eNotificationRequired())
338
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE, oldOrderDate, orderDate));
339
  }
340
341
  /**
342
   * <!-- begin-user-doc -->
343
   * <!-- end-user-doc -->
344
   * @generated
345
   */
346
  @Override
347
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
348
  {
349
    switch (featureID)
350
    {
351
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
352
        return basicSetShipTo(null, msgs);
353
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
354
        return basicSetBillTo(null, msgs);
355
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
356
        return basicSetItems(null, msgs);
357
    }
358
    return super.eInverseRemove(otherEnd, featureID, msgs);
359
  }
360
361
  /**
362
   * <!-- begin-user-doc -->
363
   * <!-- end-user-doc -->
364
   * @generated
365
   */
366
  @Override
367
  public Object eGet(int featureID, boolean resolve, boolean coreType)
368
  {
369
    switch (featureID)
370
    {
371
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
372
        return getShipTo();
373
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
374
        return getBillTo();
375
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT:
376
        return getComment();
377
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
378
        return getItems();
379
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE:
380
        return getOrderDate();
381
    }
382
    return super.eGet(featureID, resolve, coreType);
383
  }
384
385
  /**
386
   * <!-- begin-user-doc -->
387
   * <!-- end-user-doc -->
388
   * @generated
389
   */
390
  @Override
391
  public void eSet(int featureID, Object newValue)
392
  {
393
    switch (featureID)
394
    {
395
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
396
        setShipTo((Address)newValue);
397
        return;
398
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
399
        setBillTo((Address)newValue);
400
        return;
401
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT:
402
        setComment((String)newValue);
403
        return;
404
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
405
        setItems((Items)newValue);
406
        return;
407
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE:
408
        setOrderDate((XMLGregorianCalendar)newValue);
409
        return;
410
    }
411
    super.eSet(featureID, newValue);
412
  }
413
414
  /**
415
   * <!-- begin-user-doc -->
416
   * <!-- end-user-doc -->
417
   * @generated
418
   */
419
  @Override
420
  public void eUnset(int featureID)
421
  {
422
    switch (featureID)
423
    {
424
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
425
        setShipTo((Address)null);
426
        return;
427
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
428
        setBillTo((Address)null);
429
        return;
430
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT:
431
        setComment(COMMENT_EDEFAULT);
432
        return;
433
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
434
        setItems((Items)null);
435
        return;
436
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE:
437
        setOrderDate(ORDER_DATE_EDEFAULT);
438
        return;
439
    }
440
    super.eUnset(featureID);
441
  }
442
443
  /**
444
   * <!-- begin-user-doc -->
445
   * <!-- end-user-doc -->
446
   * @generated
447
   */
448
  @Override
449
  public boolean eIsSet(int featureID)
450
  {
451
    switch (featureID)
452
    {
453
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
454
        return shipTo != null;
455
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
456
        return billTo != null;
457
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT:
458
        return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment);
459
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
460
        return items != null;
461
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE:
462
        return ORDER_DATE_EDEFAULT == null ? orderDate != null : !ORDER_DATE_EDEFAULT.equals(orderDate);
463
    }
464
    return super.eIsSet(featureID);
465
  }
466
467
  /**
468
   * <!-- begin-user-doc -->
469
   * <!-- end-user-doc -->
470
   * @generated
471
   */
472
  @Override
473
  public String toString()
474
  {
475
    if (eIsProxy()) return super.toString();
476
477
    StringBuffer result = new StringBuffer(super.toString());
478
    result.append(" (comment: ");
479
    result.append(comment);
480
    result.append(", orderDate: ");
481
    result.append(orderDate);
482
    result.append(')');
483
    return result.toString();
484
  }
485
486
} //PurchaseOrderTypeImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/ItemTypeImpl.java (-482 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: ItemTypeImpl.java,v 1.3 2007/06/02 19:35:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import java.math.BigDecimal;
20
import java.math.BigInteger;
21
22
import javax.xml.datatype.XMLGregorianCalendar;
23
import org.eclipse.emf.common.notify.Notification;
24
25
import org.eclipse.emf.ecore.EClass;
26
27
import org.eclipse.emf.ecore.impl.ENotificationImpl;
28
29
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
30
31
import org.eclipse.emf.test.models.ipo.ItemType;
32
33
/**
34
 * <!-- begin-user-doc -->
35
 * An implementation of the model object '<em><b>Item Type</b></em>'.
36
 * <!-- end-user-doc -->
37
 * <p>
38
 * The following features are implemented:
39
 * <ul>
40
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getProductName <em>Product Name</em>}</li>
41
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getQuantity <em>Quantity</em>}</li>
42
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getUSPrice <em>US Price</em>}</li>
43
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getComment <em>Comment</em>}</li>
44
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getShipDate <em>Ship Date</em>}</li>
45
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getPartNum <em>Part Num</em>}</li>
46
 * </ul>
47
 * </p>
48
 *
49
 * @generated
50
 */
51
public class ItemTypeImpl extends EDataObjectImpl implements ItemType
52
{
53
  /**
54
   * <!-- begin-user-doc -->
55
   * <!-- end-user-doc -->
56
   * @generated
57
   */
58
  private static final long serialVersionUID = 1L;
59
60
  /**
61
   * The default value of the '{@link #getProductName() <em>Product Name</em>}' attribute.
62
   * <!-- begin-user-doc -->
63
   * <!-- end-user-doc -->
64
   * @see #getProductName()
65
   * @generated
66
   * @ordered
67
   */
68
  protected static final String PRODUCT_NAME_EDEFAULT = null;
69
70
  /**
71
   * The cached value of the '{@link #getProductName() <em>Product Name</em>}' attribute.
72
   * <!-- begin-user-doc -->
73
   * <!-- end-user-doc -->
74
   * @see #getProductName()
75
   * @generated
76
   * @ordered
77
   */
78
  protected String productName = PRODUCT_NAME_EDEFAULT;
79
80
  /**
81
   * The default value of the '{@link #getQuantity() <em>Quantity</em>}' attribute.
82
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
84
   * @see #getQuantity()
85
   * @generated
86
   * @ordered
87
   */
88
  protected static final BigInteger QUANTITY_EDEFAULT = null;
89
90
  /**
91
   * The cached value of the '{@link #getQuantity() <em>Quantity</em>}' attribute.
92
   * <!-- begin-user-doc -->
93
   * <!-- end-user-doc -->
94
   * @see #getQuantity()
95
   * @generated
96
   * @ordered
97
   */
98
  protected BigInteger quantity = QUANTITY_EDEFAULT;
99
100
  /**
101
   * The default value of the '{@link #getUSPrice() <em>US Price</em>}' attribute.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @see #getUSPrice()
105
   * @generated
106
   * @ordered
107
   */
108
  protected static final BigDecimal US_PRICE_EDEFAULT = null;
109
110
  /**
111
   * The cached value of the '{@link #getUSPrice() <em>US Price</em>}' attribute.
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @see #getUSPrice()
115
   * @generated
116
   * @ordered
117
   */
118
  protected BigDecimal uSPrice = US_PRICE_EDEFAULT;
119
120
  /**
121
   * The default value of the '{@link #getComment() <em>Comment</em>}' attribute.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @see #getComment()
125
   * @generated
126
   * @ordered
127
   */
128
  protected static final String COMMENT_EDEFAULT = null;
129
130
  /**
131
   * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute.
132
   * <!-- begin-user-doc -->
133
   * <!-- end-user-doc -->
134
   * @see #getComment()
135
   * @generated
136
   * @ordered
137
   */
138
  protected String comment = COMMENT_EDEFAULT;
139
140
  /**
141
   * The default value of the '{@link #getShipDate() <em>Ship Date</em>}' attribute.
142
   * <!-- begin-user-doc -->
143
   * <!-- end-user-doc -->
144
   * @see #getShipDate()
145
   * @generated
146
   * @ordered
147
   */
148
  protected static final XMLGregorianCalendar SHIP_DATE_EDEFAULT = null;
149
150
  /**
151
   * The cached value of the '{@link #getShipDate() <em>Ship Date</em>}' attribute.
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @see #getShipDate()
155
   * @generated
156
   * @ordered
157
   */
158
  protected XMLGregorianCalendar shipDate = SHIP_DATE_EDEFAULT;
159
160
  /**
161
   * The default value of the '{@link #getPartNum() <em>Part Num</em>}' attribute.
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @see #getPartNum()
165
   * @generated
166
   * @ordered
167
   */
168
  protected static final String PART_NUM_EDEFAULT = null;
169
170
  /**
171
   * The cached value of the '{@link #getPartNum() <em>Part Num</em>}' attribute.
172
   * <!-- begin-user-doc -->
173
   * <!-- end-user-doc -->
174
   * @see #getPartNum()
175
   * @generated
176
   * @ordered
177
   */
178
  protected String partNum = PART_NUM_EDEFAULT;
179
180
  /**
181
   * <!-- begin-user-doc -->
182
   * <!-- end-user-doc -->
183
   * @generated
184
   */
185
  protected ItemTypeImpl()
186
  {
187
    super();
188
  }
189
190
  /**
191
   * <!-- begin-user-doc -->
192
   * <!-- end-user-doc -->
193
   * @generated
194
   */
195
  @Override
196
  protected EClass eStaticClass()
197
  {
198
    return IPOPackageImpl.Literals.ITEM_TYPE;
199
  }
200
201
  /**
202
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
204
   * @generated
205
   */
206
  public String getProductName()
207
  {
208
    return productName;
209
  }
210
211
  /**
212
   * <!-- begin-user-doc -->
213
   * <!-- end-user-doc -->
214
   * @generated
215
   */
216
  public void setProductName(String newProductName)
217
  {
218
    String oldProductName = productName;
219
    productName = newProductName;
220
    if (eNotificationRequired())
221
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME, oldProductName, productName));
222
  }
223
224
  /**
225
   * <!-- begin-user-doc -->
226
   * <!-- end-user-doc -->
227
   * @generated
228
   */
229
  public BigInteger getQuantity()
230
  {
231
    return quantity;
232
  }
233
234
  /**
235
   * <!-- begin-user-doc -->
236
   * <!-- end-user-doc -->
237
   * @generated
238
   */
239
  public void setQuantity(BigInteger newQuantity)
240
  {
241
    BigInteger oldQuantity = quantity;
242
    quantity = newQuantity;
243
    if (eNotificationRequired())
244
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__QUANTITY, oldQuantity, quantity));
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public BigDecimal getUSPrice()
253
  {
254
    return uSPrice;
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @generated
261
   */
262
  public void setUSPrice(BigDecimal newUSPrice)
263
  {
264
    BigDecimal oldUSPrice = uSPrice;
265
    uSPrice = newUSPrice;
266
    if (eNotificationRequired())
267
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__US_PRICE, oldUSPrice, uSPrice));
268
  }
269
270
  /**
271
   * <!-- begin-user-doc -->
272
   * <!-- end-user-doc -->
273
   * @generated
274
   */
275
  public String getComment()
276
  {
277
    return comment;
278
  }
279
280
  /**
281
   * <!-- begin-user-doc -->
282
   * <!-- end-user-doc -->
283
   * @generated
284
   */
285
  public void setComment(String newComment)
286
  {
287
    String oldComment = comment;
288
    comment = newComment;
289
    if (eNotificationRequired())
290
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__COMMENT, oldComment, comment));
291
  }
292
293
  /**
294
   * <!-- begin-user-doc -->
295
   * <!-- end-user-doc -->
296
   * @generated
297
   */
298
  public XMLGregorianCalendar getShipDate()
299
  {
300
    return shipDate;
301
  }
302
303
  /**
304
   * <!-- begin-user-doc -->
305
   * <!-- end-user-doc -->
306
   * @generated
307
   */
308
  public void setShipDate(XMLGregorianCalendar newShipDate)
309
  {
310
    XMLGregorianCalendar oldShipDate = shipDate;
311
    shipDate = newShipDate;
312
    if (eNotificationRequired())
313
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__SHIP_DATE, oldShipDate, shipDate));
314
  }
315
316
  /**
317
   * <!-- begin-user-doc -->
318
   * <!-- end-user-doc -->
319
   * @generated
320
   */
321
  public String getPartNum()
322
  {
323
    return partNum;
324
  }
325
326
  /**
327
   * <!-- begin-user-doc -->
328
   * <!-- end-user-doc -->
329
   * @generated
330
   */
331
  public void setPartNum(String newPartNum)
332
  {
333
    String oldPartNum = partNum;
334
    partNum = newPartNum;
335
    if (eNotificationRequired())
336
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__PART_NUM, oldPartNum, partNum));
337
  }
338
339
  /**
340
   * <!-- begin-user-doc -->
341
   * <!-- end-user-doc -->
342
   * @generated
343
   */
344
  @Override
345
  public Object eGet(int featureID, boolean resolve, boolean coreType)
346
  {
347
    switch (featureID)
348
    {
349
      case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME:
350
        return getProductName();
351
      case IPOPackageImpl.ITEM_TYPE__QUANTITY:
352
        return getQuantity();
353
      case IPOPackageImpl.ITEM_TYPE__US_PRICE:
354
        return getUSPrice();
355
      case IPOPackageImpl.ITEM_TYPE__COMMENT:
356
        return getComment();
357
      case IPOPackageImpl.ITEM_TYPE__SHIP_DATE:
358
        return getShipDate();
359
      case IPOPackageImpl.ITEM_TYPE__PART_NUM:
360
        return getPartNum();
361
    }
362
    return super.eGet(featureID, resolve, coreType);
363
  }
364
365
  /**
366
   * <!-- begin-user-doc -->
367
   * <!-- end-user-doc -->
368
   * @generated
369
   */
370
  @Override
371
  public void eSet(int featureID, Object newValue)
372
  {
373
    switch (featureID)
374
    {
375
      case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME:
376
        setProductName((String)newValue);
377
        return;
378
      case IPOPackageImpl.ITEM_TYPE__QUANTITY:
379
        setQuantity((BigInteger)newValue);
380
        return;
381
      case IPOPackageImpl.ITEM_TYPE__US_PRICE:
382
        setUSPrice((BigDecimal)newValue);
383
        return;
384
      case IPOPackageImpl.ITEM_TYPE__COMMENT:
385
        setComment((String)newValue);
386
        return;
387
      case IPOPackageImpl.ITEM_TYPE__SHIP_DATE:
388
        setShipDate((XMLGregorianCalendar)newValue);
389
        return;
390
      case IPOPackageImpl.ITEM_TYPE__PART_NUM:
391
        setPartNum((String)newValue);
392
        return;
393
    }
394
    super.eSet(featureID, newValue);
395
  }
396
397
  /**
398
   * <!-- begin-user-doc -->
399
   * <!-- end-user-doc -->
400
   * @generated
401
   */
402
  @Override
403
  public void eUnset(int featureID)
404
  {
405
    switch (featureID)
406
    {
407
      case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME:
408
        setProductName(PRODUCT_NAME_EDEFAULT);
409
        return;
410
      case IPOPackageImpl.ITEM_TYPE__QUANTITY:
411
        setQuantity(QUANTITY_EDEFAULT);
412
        return;
413
      case IPOPackageImpl.ITEM_TYPE__US_PRICE:
414
        setUSPrice(US_PRICE_EDEFAULT);
415
        return;
416
      case IPOPackageImpl.ITEM_TYPE__COMMENT:
417
        setComment(COMMENT_EDEFAULT);
418
        return;
419
      case IPOPackageImpl.ITEM_TYPE__SHIP_DATE:
420
        setShipDate(SHIP_DATE_EDEFAULT);
421
        return;
422
      case IPOPackageImpl.ITEM_TYPE__PART_NUM:
423
        setPartNum(PART_NUM_EDEFAULT);
424
        return;
425
    }
426
    super.eUnset(featureID);
427
  }
428
429
  /**
430
   * <!-- begin-user-doc -->
431
   * <!-- end-user-doc -->
432
   * @generated
433
   */
434
  @Override
435
  public boolean eIsSet(int featureID)
436
  {
437
    switch (featureID)
438
    {
439
      case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME:
440
        return PRODUCT_NAME_EDEFAULT == null ? productName != null : !PRODUCT_NAME_EDEFAULT.equals(productName);
441
      case IPOPackageImpl.ITEM_TYPE__QUANTITY:
442
        return QUANTITY_EDEFAULT == null ? quantity != null : !QUANTITY_EDEFAULT.equals(quantity);
443
      case IPOPackageImpl.ITEM_TYPE__US_PRICE:
444
        return US_PRICE_EDEFAULT == null ? uSPrice != null : !US_PRICE_EDEFAULT.equals(uSPrice);
445
      case IPOPackageImpl.ITEM_TYPE__COMMENT:
446
        return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment);
447
      case IPOPackageImpl.ITEM_TYPE__SHIP_DATE:
448
        return SHIP_DATE_EDEFAULT == null ? shipDate != null : !SHIP_DATE_EDEFAULT.equals(shipDate);
449
      case IPOPackageImpl.ITEM_TYPE__PART_NUM:
450
        return PART_NUM_EDEFAULT == null ? partNum != null : !PART_NUM_EDEFAULT.equals(partNum);
451
    }
452
    return super.eIsSet(featureID);
453
  }
454
455
  /**
456
   * <!-- begin-user-doc -->
457
   * <!-- end-user-doc -->
458
   * @generated
459
   */
460
  @Override
461
  public String toString()
462
  {
463
    if (eIsProxy()) return super.toString();
464
465
    StringBuffer result = new StringBuffer(super.toString());
466
    result.append(" (productName: ");
467
    result.append(productName);
468
    result.append(", quantity: ");
469
    result.append(quantity);
470
    result.append(", uSPrice: ");
471
    result.append(uSPrice);
472
    result.append(", comment: ");
473
    result.append(comment);
474
    result.append(", shipDate: ");
475
    result.append(shipDate);
476
    result.append(", partNum: ");
477
    result.append(partNum);
478
    result.append(')');
479
    return result.toString();
480
  }
481
482
} //ItemTypeImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/LinkType.java (-109 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: LinkType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Link Type</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed <em>Mixed</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}</li>
34
 * </ul>
35
 * </p>
36
 *
37
 * @model extendedMetaData="name='linkType' kind='mixed'"
38
 * @generated
39
 */
40
public interface LinkType
41
{
42
  /**
43
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
44
   * <!-- begin-user-doc -->
45
   * <p>
46
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
47
   * there really should be more of a description here...
48
   * </p>
49
   * <!-- end-user-doc -->
50
   * @return the value of the '<em>Mixed</em>' attribute list.
51
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
52
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
53
   * @generated
54
   */
55
  Sequence getMixed();
56
57
  /**
58
   * Returns the value of the '<em><b>Manager</b></em>' attribute.
59
   * <!-- begin-user-doc -->
60
   * <p>
61
   * If the meaning of the '<em>Manager</em>' attribute isn't clear,
62
   * there really should be more of a description here...
63
   * </p>
64
   * <!-- end-user-doc -->
65
   * @return the value of the '<em>Manager</em>' attribute.
66
   * @see #setManager(String)
67
   * @model dataType="org.eclipse.emf.ecore.xml.type.IDREF"
68
   *        extendedMetaData="kind='attribute' name='manager'"
69
   * @generated
70
   */
71
  String getManager();
72
73
  /**
74
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}' attribute.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @param value the new value of the '<em>Manager</em>' attribute.
78
   * @see #getManager()
79
   * @generated
80
   */
81
  void setManager(String value);
82
83
  /**
84
   * Returns the value of the '<em><b>Subordinates</b></em>' attribute.
85
   * <!-- begin-user-doc -->
86
   * <p>
87
   * If the meaning of the '<em>Subordinates</em>' attribute isn't clear,
88
   * there really should be more of a description here...
89
   * </p>
90
   * <!-- end-user-doc -->
91
   * @return the value of the '<em>Subordinates</em>' attribute.
92
   * @see #setSubordinates(List)
93
   * @model dataType="org.eclipse.emf.ecore.xml.type.IDREFS" many="false"
94
   *        extendedMetaData="kind='attribute' name='subordinates'"
95
   * @generated
96
   */
97
  List<String> getSubordinates();
98
99
  /**
100
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}' attribute.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @param value the new value of the '<em>Subordinates</em>' attribute.
104
   * @see #getSubordinates()
105
   * @generated
106
   */
107
  void setSubordinates(List<String> value);
108
109
} // LinkType
(-)src/org/eclipse/emf/test/models/personal/mixed/NameType.java (-107 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: NameType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import commonj.sdo.Sequence;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Name Type</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getMixed <em>Mixed</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}</li>
31
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}</li>
32
 * </ul>
33
 * </p>
34
 *
35
 * @model extendedMetaData="name='nameType' kind='mixed'"
36
 * @generated
37
 */
38
public interface NameType
39
{
40
  /**
41
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
42
   * <!-- begin-user-doc -->
43
   * <p>
44
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
45
   * there really should be more of a description here...
46
   * </p>
47
   * <!-- end-user-doc -->
48
   * @return the value of the '<em>Mixed</em>' attribute list.
49
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
50
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
51
   * @generated
52
   */
53
  Sequence getMixed();
54
55
  /**
56
   * Returns the value of the '<em><b>Family</b></em>' attribute.
57
   * <!-- begin-user-doc -->
58
   * <p>
59
   * If the meaning of the '<em>Family</em>' attribute isn't clear,
60
   * there really should be more of a description here...
61
   * </p>
62
   * <!-- end-user-doc -->
63
   * @return the value of the '<em>Family</em>' attribute.
64
   * @see #setFamily(String)
65
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" transient="true" volatile="true" derived="true"
66
   *        extendedMetaData="kind='element' name='family' namespace='##targetNamespace'"
67
   * @generated
68
   */
69
  String getFamily();
70
71
  /**
72
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}' attribute.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @param value the new value of the '<em>Family</em>' attribute.
76
   * @see #getFamily()
77
   * @generated
78
   */
79
  void setFamily(String value);
80
81
  /**
82
   * Returns the value of the '<em><b>Given</b></em>' attribute.
83
   * <!-- begin-user-doc -->
84
   * <p>
85
   * If the meaning of the '<em>Given</em>' attribute isn't clear,
86
   * there really should be more of a description here...
87
   * </p>
88
   * <!-- end-user-doc -->
89
   * @return the value of the '<em>Given</em>' attribute.
90
   * @see #setGiven(String)
91
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" transient="true" volatile="true" derived="true"
92
   *        extendedMetaData="kind='element' name='given' namespace='##targetNamespace'"
93
   * @generated
94
   */
95
  String getGiven();
96
97
  /**
98
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}' attribute.
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
101
   * @param value the new value of the '<em>Given</em>' attribute.
102
   * @see #getGiven()
103
   * @generated
104
   */
105
  void setGiven(String value);
106
107
} // NameType
(-)src/org/eclipse/emf/test/models/personal/mixed/UrlType.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UrlType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Url Type</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @model extendedMetaData="name='url_._type' kind='empty'"
33
 * @generated
34
 */
35
public interface UrlType
36
{
37
  /**
38
   * Returns the value of the '<em><b>Href</b></em>' attribute.
39
   * The default value is <code>"http://"</code>.
40
   * <!-- begin-user-doc -->
41
   * <p>
42
   * If the meaning of the '<em>Href</em>' attribute isn't clear,
43
   * there really should be more of a description here...
44
   * </p>
45
   * <!-- end-user-doc -->
46
   * @return the value of the '<em>Href</em>' attribute.
47
   * @see #isSetHref()
48
   * @see #unsetHref()
49
   * @see #setHref(String)
50
   * @model default="http://" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
51
   *        extendedMetaData="kind='attribute' name='href'"
52
   * @generated
53
   */
54
  String getHref();
55
56
  /**
57
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute.
58
   * <!-- begin-user-doc -->
59
   * <!-- end-user-doc -->
60
   * @param value the new value of the '<em>Href</em>' attribute.
61
   * @see #isSetHref()
62
   * @see #unsetHref()
63
   * @see #getHref()
64
   * @generated
65
   */
66
  void setHref(String value);
67
68
  /**
69
   * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute.
70
   * <!-- begin-user-doc -->
71
   * <!-- end-user-doc -->
72
   * @see #isSetHref()
73
   * @see #getHref()
74
   * @see #setHref(String)
75
   * @generated
76
   */
77
  void unsetHref();
78
79
  /**
80
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute is set.
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @return whether the value of the '<em>Href</em>' attribute is set.
84
   * @see #unsetHref()
85
   * @see #getHref()
86
   * @see #setHref(String)
87
   * @generated
88
   */
89
  boolean isSetHref();
90
91
} // UrlType
(-)src/org/eclipse/emf/test/models/personal/mixed/MixedFactory.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedFactory.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Factory</b> for the model.
23
 * It provides a create method for each non-abstract class of the model.
24
 * <!-- end-user-doc -->
25
 * @generated
26
 */
27
public interface MixedFactory
28
{
29
  /**
30
   * The singleton instance of the factory.
31
   * <!-- begin-user-doc -->
32
   * <!-- end-user-doc -->
33
   * @generated
34
   */
35
  MixedFactory INSTANCE = org.eclipse.emf.test.models.personal.mixed.impl.MixedFactoryImpl.eINSTANCE;
36
37
  /**
38
   * Returns a new object of class '<em>Document Root</em>'.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @return a new object of class '<em>Document Root</em>'.
42
   * @generated
43
   */
44
  DocumentRoot createDocumentRoot();
45
46
  /**
47
   * Returns a new object of class '<em>Link Type</em>'.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @return a new object of class '<em>Link Type</em>'.
51
   * @generated
52
   */
53
  LinkType createLinkType();
54
55
  /**
56
   * Returns a new object of class '<em>Name Type</em>'.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @return a new object of class '<em>Name Type</em>'.
60
   * @generated
61
   */
62
  NameType createNameType();
63
64
  /**
65
   * Returns a new object of class '<em>Personnel Type</em>'.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @return a new object of class '<em>Personnel Type</em>'.
69
   * @generated
70
   */
71
  PersonnelType createPersonnelType();
72
73
  /**
74
   * Returns a new object of class '<em>Person Type</em>'.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @return a new object of class '<em>Person Type</em>'.
78
   * @generated
79
   */
80
  PersonType createPersonType();
81
82
  /**
83
   * Returns a new object of class '<em>Url Type</em>'.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @return a new object of class '<em>Url Type</em>'.
87
   * @generated
88
   */
89
  UrlType createUrlType();
90
91
} //MixedFactory
(-)src/org/eclipse/emf/test/models/personal/mixed/PersonType.java (-273 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonType.java,v 1.5 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import commonj.sdo.Sequence;
20
21
import java.math.BigInteger;
22
23
import java.util.List;
24
25
/**
26
 * <!-- begin-user-doc -->
27
 * A representation of the model object '<em><b>Person Type</b></em>'.
28
 * <!-- end-user-doc -->
29
 *
30
 * <p>
31
 * The following features are supported:
32
 * <ul>
33
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed <em>Mixed</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail <em>Email</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl <em>Url</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getAny <em>Any</em>}</li>
39
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}</li>
40
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}</li>
41
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}</li>
42
 * </ul>
43
 * </p>
44
 *
45
 * @model extendedMetaData="name='personType' kind='mixed'"
46
 * @generated
47
 */
48
public interface PersonType
49
{
50
  /**
51
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
52
   * <!-- begin-user-doc -->
53
   * <p>
54
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
55
   * there really should be more of a description here...
56
   * </p>
57
   * <!-- end-user-doc -->
58
   * @return the value of the '<em>Mixed</em>' attribute list.
59
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
60
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
61
   * @generated
62
   */
63
  Sequence getMixed();
64
65
  /**
66
   * Returns the value of the '<em><b>Name</b></em>' containment reference.
67
   * <!-- begin-user-doc -->
68
   * <p>
69
   * If the meaning of the '<em>Name</em>' containment reference isn't clear,
70
   * there really should be more of a description here...
71
   * </p>
72
   * <!-- end-user-doc -->
73
   * @return the value of the '<em>Name</em>' containment reference.
74
   * @see #setName(NameType)
75
   * @model containment="true" required="true" transient="true" volatile="true" derived="true"
76
   *        extendedMetaData="kind='element' name='name' namespace='##targetNamespace'"
77
   * @generated
78
   */
79
  NameType getName();
80
81
  /**
82
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}' containment reference.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @param value the new value of the '<em>Name</em>' containment reference.
86
   * @see #getName()
87
   * @generated
88
   */
89
  void setName(NameType value);
90
91
  /**
92
   * Returns the value of the '<em><b>Email</b></em>' attribute list.
93
   * The list contents are of type {@link java.lang.String}.
94
   * <!-- begin-user-doc -->
95
   * <p>
96
   * If the meaning of the '<em>Email</em>' attribute list isn't clear,
97
   * there really should be more of a description here...
98
   * </p>
99
   * <!-- end-user-doc -->
100
   * @return the value of the '<em>Email</em>' attribute list.
101
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" transient="true" volatile="true" derived="true"
102
   *        extendedMetaData="kind='element' name='email' namespace='##targetNamespace'"
103
   * @generated
104
   */
105
  List<String> getEmail();
106
107
  /**
108
   * Returns the value of the '<em><b>Url</b></em>' containment reference list.
109
   * The list contents are of type {@link org.eclipse.emf.test.models.personal.mixed.UrlType}.
110
   * <!-- begin-user-doc -->
111
   * <p>
112
   * If the meaning of the '<em>Url</em>' containment reference list isn't clear,
113
   * there really should be more of a description here...
114
   * </p>
115
   * <!-- end-user-doc -->
116
   * @return the value of the '<em>Url</em>' containment reference list.
117
   * @model containment="true" transient="true" volatile="true" derived="true"
118
   *        extendedMetaData="kind='element' name='url' namespace='##targetNamespace'"
119
   * @generated
120
   */
121
  List<UrlType> getUrl();
122
123
  /**
124
   * Returns the value of the '<em><b>Link</b></em>' containment reference.
125
   * <!-- begin-user-doc -->
126
   * <p>
127
   * If the meaning of the '<em>Link</em>' containment reference isn't clear,
128
   * there really should be more of a description here...
129
   * </p>
130
   * <!-- end-user-doc -->
131
   * @return the value of the '<em>Link</em>' containment reference.
132
   * @see #setLink(LinkType)
133
   * @model containment="true" required="true" transient="true" volatile="true" derived="true"
134
   *        extendedMetaData="kind='element' name='link' namespace='##targetNamespace'"
135
   * @generated
136
   */
137
  LinkType getLink();
138
139
  /**
140
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}' containment reference.
141
   * <!-- begin-user-doc -->
142
   * <!-- end-user-doc -->
143
   * @param value the new value of the '<em>Link</em>' containment reference.
144
   * @see #getLink()
145
   * @generated
146
   */
147
  void setLink(LinkType value);
148
149
  /**
150
   * Returns the value of the '<em><b>Any</b></em>' attribute list.
151
   * <!-- begin-user-doc -->
152
   * <p>
153
   * If the meaning of the '<em>Any</em>' attribute list isn't clear,
154
   * there really should be more of a description here...
155
   * </p>
156
   * <!-- end-user-doc -->
157
   * @return the value of the '<em>Any</em>' attribute list.
158
   * @model dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="false" transient="true" volatile="true" derived="true"
159
   *        extendedMetaData="kind='elementWildcard' wildcards='##any' name=':5' processing='lax'"
160
   * @generated
161
   */
162
  Sequence getAny();
163
164
  /**
165
   * Returns the value of the '<em><b>Contr</b></em>' attribute.
166
   * The default value is <code>"false"</code>.
167
   * The literals are from the enumeration {@link org.eclipse.emf.test.models.personal.mixed.ContrType}.
168
   * <!-- begin-user-doc -->
169
   * <p>
170
   * If the meaning of the '<em>Contr</em>' attribute isn't clear,
171
   * there really should be more of a description here...
172
   * </p>
173
   * <!-- end-user-doc -->
174
   * @return the value of the '<em>Contr</em>' attribute.
175
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
176
   * @see #isSetContr()
177
   * @see #unsetContr()
178
   * @see #setContr(ContrType)
179
   * @model default="false" unsettable="true"
180
   *        extendedMetaData="kind='attribute' name='contr'"
181
   * @generated
182
   */
183
  ContrType getContr();
184
185
  /**
186
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute.
187
   * <!-- begin-user-doc -->
188
   * <!-- end-user-doc -->
189
   * @param value the new value of the '<em>Contr</em>' attribute.
190
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
191
   * @see #isSetContr()
192
   * @see #unsetContr()
193
   * @see #getContr()
194
   * @generated
195
   */
196
  void setContr(ContrType value);
197
198
  /**
199
   * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute.
200
   * <!-- begin-user-doc -->
201
   * <!-- end-user-doc -->
202
   * @see #isSetContr()
203
   * @see #getContr()
204
   * @see #setContr(ContrType)
205
   * @generated
206
   */
207
  void unsetContr();
208
209
  /**
210
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute is set.
211
   * <!-- begin-user-doc -->
212
   * <!-- end-user-doc -->
213
   * @return whether the value of the '<em>Contr</em>' attribute is set.
214
   * @see #unsetContr()
215
   * @see #getContr()
216
   * @see #setContr(ContrType)
217
   * @generated
218
   */
219
  boolean isSetContr();
220
221
  /**
222
   * Returns the value of the '<em><b>Id</b></em>' attribute.
223
   * <!-- begin-user-doc -->
224
   * <p>
225
   * If the meaning of the '<em>Id</em>' attribute isn't clear,
226
   * there really should be more of a description here...
227
   * </p>
228
   * <!-- end-user-doc -->
229
   * @return the value of the '<em>Id</em>' attribute.
230
   * @see #setId(String)
231
   * @model id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true"
232
   *        extendedMetaData="kind='attribute' name='id'"
233
   * @generated
234
   */
235
  String getId();
236
237
  /**
238
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}' attribute.
239
   * <!-- begin-user-doc -->
240
   * <!-- end-user-doc -->
241
   * @param value the new value of the '<em>Id</em>' attribute.
242
   * @see #getId()
243
   * @generated
244
   */
245
  void setId(String value);
246
247
  /**
248
   * Returns the value of the '<em><b>Salary</b></em>' attribute.
249
   * <!-- begin-user-doc -->
250
   * <p>
251
   * If the meaning of the '<em>Salary</em>' attribute isn't clear,
252
   * there really should be more of a description here...
253
   * </p>
254
   * <!-- end-user-doc -->
255
   * @return the value of the '<em>Salary</em>' attribute.
256
   * @see #setSalary(BigInteger)
257
   * @model dataType="org.eclipse.emf.ecore.xml.type.Integer"
258
   *        extendedMetaData="kind='attribute' name='salary'"
259
   * @generated
260
   */
261
  BigInteger getSalary();
262
263
  /**
264
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}' attribute.
265
   * <!-- begin-user-doc -->
266
   * <!-- end-user-doc -->
267
   * @param value the new value of the '<em>Salary</em>' attribute.
268
   * @see #getSalary()
269
   * @generated
270
   */
271
  void setSalary(BigInteger value);
272
273
} // PersonType
(-)src/org/eclipse/emf/test/models/sdo/library/Writer.java (-81 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Writer.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library;
18
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Writer</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Writer#getBooks <em>Books</em>}</li>
31
 * </ul>
32
 * </p>
33
 *
34
 * @model
35
 * @generated
36
 */
37
public interface Writer
38
{
39
  /**
40
   * Returns the value of the '<em><b>Name</b></em>' attribute.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Name</em>' attribute isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Name</em>' attribute.
48
   * @see #setName(String)
49
   * @model
50
   * @generated
51
   */
52
  String getName();
53
54
  /**
55
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}' attribute.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @param value the new value of the '<em>Name</em>' attribute.
59
   * @see #getName()
60
   * @generated
61
   */
62
  void setName(String value);
63
64
  /**
65
   * Returns the value of the '<em><b>Books</b></em>' reference list.
66
   * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Book}.
67
   * It is bidirectional and its opposite is '{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}'.
68
   * <!-- begin-user-doc -->
69
   * <p>
70
   * If the meaning of the '<em>Books</em>' reference list isn't clear,
71
   * there really should be more of a description here...
72
   * </p>
73
   * <!-- end-user-doc -->
74
   * @return the value of the '<em>Books</em>' reference list.
75
   * @see org.eclipse.emf.test.models.sdo.library.Book#getAuthor
76
   * @model opposite="author"
77
   * @generated
78
   */
79
  List<Book> getBooks();
80
81
} // Writer
(-)src/org/eclipse/emf/test/models/sdo/library/Library.java (-95 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Library.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library;
18
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Library</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getWriters <em>Writers</em>}</li>
31
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getBooks <em>Books</em>}</li>
32
 * </ul>
33
 * </p>
34
 *
35
 * @model
36
 * @generated
37
 */
38
public interface Library
39
{
40
  /**
41
   * Returns the value of the '<em><b>Name</b></em>' attribute.
42
   * <!-- begin-user-doc -->
43
   * <p>
44
   * If the meaning of the '<em>Name</em>' attribute isn't clear,
45
   * there really should be more of a description here...
46
   * </p>
47
   * <!-- end-user-doc -->
48
   * @return the value of the '<em>Name</em>' attribute.
49
   * @see #setName(String)
50
   * @model
51
   * @generated
52
   */
53
  String getName();
54
55
  /**
56
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}' attribute.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @param value the new value of the '<em>Name</em>' attribute.
60
   * @see #getName()
61
   * @generated
62
   */
63
  void setName(String value);
64
65
  /**
66
   * Returns the value of the '<em><b>Writers</b></em>' containment reference list.
67
   * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Writer}.
68
   * <!-- begin-user-doc -->
69
   * <p>
70
   * If the meaning of the '<em>Writers</em>' containment reference list isn't clear,
71
   * there really should be more of a description here...
72
   * </p>
73
   * <!-- end-user-doc -->
74
   * @return the value of the '<em>Writers</em>' containment reference list.
75
   * @model containment="true"
76
   * @generated
77
   */
78
  List<Writer> getWriters();
79
80
  /**
81
   * Returns the value of the '<em><b>Books</b></em>' containment reference list.
82
   * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Book}.
83
   * <!-- begin-user-doc -->
84
   * <p>
85
   * If the meaning of the '<em>Books</em>' containment reference list isn't clear,
86
   * there really should be more of a description here...
87
   * </p>
88
   * <!-- end-user-doc -->
89
   * @return the value of the '<em>Books</em>' containment reference list.
90
   * @model containment="true"
91
   * @generated
92
   */
93
  List<Book> getBooks();
94
95
} // Library
(-)models/Library/sdoLibrary.genmodel (-38 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<genmodel:GenModel xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4
    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src"
5
    editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models"
6
    modelName="SDOLibrary" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl"
7
    rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true"
8
    suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence"
9
    featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory=""
10
    importerID="org.eclipse.emf.importer.rose" complianceLevel="5.0">
11
  <foreignModel>library.mdl</foreignModel>
12
  <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
13
  <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables>
14
  <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables>
15
  <genPackages prefix="SDOLibrary" basePackage="org.eclipse.emf.test.models.sdo" disposableProviderFactory="true"
16
      ecorePackage="sdoLibrary.ecore#/">
17
    <genEnums typeSafeEnumCompatible="false" ecoreEnum="sdoLibrary.ecore#//BookCategory">
18
      <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/Mystery"/>
19
      <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/ScienceFiction"/>
20
      <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/Biography"/>
21
    </genEnums>
22
    <genClasses ecoreClass="sdoLibrary.ecore#//Book">
23
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/title"/>
24
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/pages"/>
25
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/category"/>
26
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Book/author"/>
27
    </genClasses>
28
    <genClasses ecoreClass="sdoLibrary.ecore#//Library">
29
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Library/name"/>
30
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Library/writers"/>
31
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Library/books"/>
32
    </genClasses>
33
    <genClasses ecoreClass="sdoLibrary.ecore#//Writer">
34
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Writer/name"/>
35
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Writer/books"/>
36
    </genClasses>
37
  </genPackages>
38
</genmodel:GenModel>
(-)META-INF/MANIFEST.MF (-20 / +1 lines)
Lines 10-16 Link Here
10
Require-Bundle: org.eclipse.core.runtime,
10
Require-Bundle: org.eclipse.core.runtime,
11
 org.eclipse.emf.ecore;visibility:=reexport,
11
 org.eclipse.emf.ecore;visibility:=reexport,
12
 org.eclipse.emf.ecore.xmi,
12
 org.eclipse.emf.ecore.xmi,
13
 org.eclipse.emf.ecore.sdo,
14
 org.eclipse.emf.ecore.edit
13
 org.eclipse.emf.ecore.edit
15
Eclipse-LazyStart: true
14
Eclipse-LazyStart: true
16
Bundle-Activator: org.eclipse.emf.test.common.EMFTestCommonPlugin
15
Bundle-Activator: org.eclipse.emf.test.common.EMFTestCommonPlugin
Lines 28-36 Link Here
28
 org.eclipse.emf.test.models.ext.impl,
27
 org.eclipse.emf.test.models.ext.impl,
29
 org.eclipse.emf.test.models.ext.provider,
28
 org.eclipse.emf.test.models.ext.provider,
30
 org.eclipse.emf.test.models.ext.util,
29
 org.eclipse.emf.test.models.ext.util,
31
 org.eclipse.emf.test.models.ipo,
32
 org.eclipse.emf.test.models.ipo.impl,
33
 org.eclipse.emf.test.models.ipo.util,
34
 org.eclipse.emf.test.models.key,
30
 org.eclipse.emf.test.models.key,
35
 org.eclipse.emf.test.models.key.impl,
31
 org.eclipse.emf.test.models.key.impl,
36
 org.eclipse.emf.test.models.key.util,
32
 org.eclipse.emf.test.models.key.util,
Lines 46-57 Link Here
46
 org.eclipse.emf.test.models.order,
42
 org.eclipse.emf.test.models.order,
47
 org.eclipse.emf.test.models.order.impl,
43
 org.eclipse.emf.test.models.order.impl,
48
 org.eclipse.emf.test.models.order.util,
44
 org.eclipse.emf.test.models.order.util,
49
 org.eclipse.emf.test.models.personal,
50
 org.eclipse.emf.test.models.personal.impl,
51
 org.eclipse.emf.test.models.personal.mixed,
52
 org.eclipse.emf.test.models.personal.mixed.impl,
53
 org.eclipse.emf.test.models.personal.mixed.util,
54
 org.eclipse.emf.test.models.personal.util,
55
 org.eclipse.emf.test.models.ppo,
45
 org.eclipse.emf.test.models.ppo,
56
 org.eclipse.emf.test.models.ppo.impl,
46
 org.eclipse.emf.test.models.ppo.impl,
57
 org.eclipse.emf.test.models.ppo.util,
47
 org.eclipse.emf.test.models.ppo.util,
Lines 66-82 Link Here
66
 org.eclipse.emf.test.models.ref.unsettable.provider,
56
 org.eclipse.emf.test.models.ref.unsettable.provider,
67
 org.eclipse.emf.test.models.ref.unsettable.util,
57
 org.eclipse.emf.test.models.ref.unsettable.util,
68
 org.eclipse.emf.test.models.ref.util,
58
 org.eclipse.emf.test.models.ref.util,
69
 org.eclipse.emf.test.models.sdo.library,
70
 org.eclipse.emf.test.models.sdo.library.impl,
71
 org.eclipse.emf.test.models.sdo.library.util,
72
 org.eclipse.emf.test.models.sdo.simple,
73
 org.eclipse.emf.test.models.sdo.simple.impl,
74
 org.eclipse.emf.test.models.sdo.simple.util,
75
 org.eclipse.emf.test.models.tree,
59
 org.eclipse.emf.test.models.tree,
76
 org.eclipse.emf.test.models.tree.impl,
60
 org.eclipse.emf.test.models.tree.impl,
77
 org.eclipse.emf.test.models.tree.provider,
61
 org.eclipse.emf.test.models.tree.provider,
78
 org.eclipse.emf.test.models.tree.util,
62
 org.eclipse.emf.test.models.tree.util
79
 org.eclipse.emf.test.models.types,
80
 org.eclipse.emf.test.models.types.impl,
81
 org.eclipse.emf.test.models.types.util
82
Bundle-ActivationPolicy: lazy
63
Bundle-ActivationPolicy: lazy
(-)src/org/eclipse/emf/test/models/types/impl/TypesFactoryImpl.java (-329 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesFactoryImpl.java,v 1.4 2007/03/21 18:18:53 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.types.impl;
18
19
import java.util.Date;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EDataType;
23
import org.eclipse.emf.ecore.EObject;
24
import org.eclipse.emf.ecore.EPackage;
25
26
import org.eclipse.emf.ecore.impl.EFactoryImpl;
27
28
import org.eclipse.emf.ecore.plugin.EcorePlugin;
29
30
import org.eclipse.emf.test.models.types.*;
31
32
/**
33
 * <!-- begin-user-doc -->
34
 * An implementation of the model <b>Factory</b>.
35
 * <!-- end-user-doc -->
36
 * @generated
37
 */
38
public class TypesFactoryImpl extends EFactoryImpl implements TypesFactory
39
{
40
  /**
41
   * The singleton instance of the factory.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  public static final TypesFactoryImpl eINSTANCE = init();
47
48
  /**
49
   * Creates the default factory implementation.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public static TypesFactoryImpl init()
55
  {
56
    try
57
    {
58
      TypesFactoryImpl theTypesFactory = (TypesFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/types"); 
59
      if (theTypesFactory != null)
60
      {
61
        return theTypesFactory;
62
      }
63
    }
64
    catch (Exception exception)
65
    {
66
      EcorePlugin.INSTANCE.log(exception);
67
    }
68
    return new TypesFactoryImpl();
69
  }
70
71
  /**
72
   * Creates an instance of the factory.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @generated
76
   */
77
  public TypesFactoryImpl()
78
  {
79
    super();
80
  }
81
82
  /**
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @generated
86
   */
87
  @Override
88
  public EObject create(EClass eClass)
89
  {
90
    switch (eClass.getClassifierID())
91
    {
92
      case TypesPackageImpl.ATHING: return (EObject)createAThing();
93
      default:
94
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
95
    }
96
  }
97
98
  /**
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
101
   * @generated
102
   */
103
  @Override
104
  public Object createFromString(EDataType eDataType, String initialValue)
105
  {
106
    switch (eDataType.getClassifierID())
107
    {
108
      case TypesPackageImpl.MY_BYTES:
109
        return createMyBytesFromString(eDataType, initialValue);
110
      case TypesPackageImpl.MY_CHAR:
111
        return createMyCharFromString(eDataType, initialValue);
112
      case TypesPackageImpl.MY_CHAR_OBJECT:
113
        return createMyCharObjectFromString(eDataType, initialValue);
114
      case TypesPackageImpl.MY_DATE:
115
        return createMyDateFromString(eDataType, initialValue);
116
      case TypesPackageImpl.MY_NUMBER:
117
        return createMyNumberFromString(eDataType, initialValue);
118
      case TypesPackageImpl.MY_OBJECT:
119
        return createMyObjectFromString(eDataType, initialValue);
120
      case TypesPackageImpl.MY_THREAD:
121
        return createMyThreadFromString(eDataType, initialValue);
122
      default:
123
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
124
    }
125
  }
126
127
  /**
128
   * <!-- begin-user-doc -->
129
   * <!-- end-user-doc -->
130
   * @generated
131
   */
132
  @Override
133
  public String convertToString(EDataType eDataType, Object instanceValue)
134
  {
135
    switch (eDataType.getClassifierID())
136
    {
137
      case TypesPackageImpl.MY_BYTES:
138
        return convertMyBytesToString(eDataType, instanceValue);
139
      case TypesPackageImpl.MY_CHAR:
140
        return convertMyCharToString(eDataType, instanceValue);
141
      case TypesPackageImpl.MY_CHAR_OBJECT:
142
        return convertMyCharObjectToString(eDataType, instanceValue);
143
      case TypesPackageImpl.MY_DATE:
144
        return convertMyDateToString(eDataType, instanceValue);
145
      case TypesPackageImpl.MY_NUMBER:
146
        return convertMyNumberToString(eDataType, instanceValue);
147
      case TypesPackageImpl.MY_OBJECT:
148
        return convertMyObjectToString(eDataType, instanceValue);
149
      case TypesPackageImpl.MY_THREAD:
150
        return convertMyThreadToString(eDataType, instanceValue);
151
      default:
152
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
153
    }
154
  }
155
156
  /**
157
   * <!-- begin-user-doc -->
158
   * <!-- end-user-doc -->
159
   * @generated
160
   */
161
  public AThing createAThing()
162
  {
163
    AThingImpl aThing = new AThingImpl();
164
    return aThing;
165
  }
166
167
  /**
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   */
172
  public byte[] createMyBytesFromString(EDataType eDataType, String initialValue)
173
  {
174
    return (byte[])super.createFromString(initialValue);
175
  }
176
177
  /**
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  public String convertMyBytesToString(EDataType eDataType, Object instanceValue)
183
  {
184
    return super.convertToString(instanceValue);
185
  }
186
187
  /**
188
   * <!-- begin-user-doc -->
189
   * <!-- end-user-doc -->
190
   * @generated
191
   */
192
  public Character createMyCharFromString(EDataType eDataType, String initialValue)
193
  {
194
    return (Character)super.createFromString(eDataType, initialValue);
195
  }
196
197
  /**
198
   * <!-- begin-user-doc -->
199
   * <!-- end-user-doc -->
200
   * @generated
201
   */
202
  public String convertMyCharToString(EDataType eDataType, Object instanceValue)
203
  {
204
    return super.convertToString(eDataType, instanceValue);
205
  }
206
207
  /**
208
   * <!-- begin-user-doc -->
209
   * <!-- end-user-doc -->
210
   * @generated
211
   */
212
  public Character createMyCharObjectFromString(EDataType eDataType, String initialValue)
213
  {
214
    return createMyCharFromString(TypesPackageImpl.Literals.MY_CHAR, initialValue);
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  public String convertMyCharObjectToString(EDataType eDataType, Object instanceValue)
223
  {
224
    return convertMyCharToString(TypesPackageImpl.Literals.MY_CHAR, instanceValue);
225
  }
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  public Date createMyDateFromString(EDataType eDataType, String initialValue)
233
  {
234
    return (Date)super.createFromString(eDataType, initialValue);
235
  }
236
237
  /**
238
   * <!-- begin-user-doc -->
239
   * <!-- end-user-doc -->
240
   * @generated
241
   */
242
  public String convertMyDateToString(EDataType eDataType, Object instanceValue)
243
  {
244
    return super.convertToString(eDataType, instanceValue);
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public Number createMyNumberFromString(EDataType eDataType, String initialValue)
253
  {
254
    return (Number)super.createFromString(eDataType, initialValue);
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @generated
261
   */
262
  public String convertMyNumberToString(EDataType eDataType, Object instanceValue)
263
  {
264
    return super.convertToString(eDataType, instanceValue);
265
  }
266
267
  /**
268
   * <!-- begin-user-doc -->
269
   * <!-- end-user-doc -->
270
   * @generated
271
   */
272
  public Object createMyObjectFromString(EDataType eDataType, String initialValue)
273
  {
274
    return super.createFromString(eDataType, initialValue);
275
  }
276
277
  /**
278
   * <!-- begin-user-doc -->
279
   * <!-- end-user-doc -->
280
   * @generated
281
   */
282
  public String convertMyObjectToString(EDataType eDataType, Object instanceValue)
283
  {
284
    return super.convertToString(eDataType, instanceValue);
285
  }
286
287
  /**
288
   * <!-- begin-user-doc -->
289
   * <!-- end-user-doc -->
290
   * @generated
291
   */
292
  public Thread createMyThreadFromString(EDataType eDataType, String initialValue)
293
  {
294
    return (Thread)super.createFromString(eDataType, initialValue);
295
  }
296
297
  /**
298
   * <!-- begin-user-doc -->
299
   * <!-- end-user-doc -->
300
   * @generated
301
   */
302
  public String convertMyThreadToString(EDataType eDataType, Object instanceValue)
303
  {
304
    return super.convertToString(eDataType, instanceValue);
305
  }
306
307
  /**
308
   * <!-- begin-user-doc -->
309
   * <!-- end-user-doc -->
310
   * @generated
311
   */
312
  public TypesPackageImpl getTypesPackageImpl()
313
  {
314
    return (TypesPackageImpl)getEPackage();
315
  }
316
317
  /**
318
   * <!-- begin-user-doc -->
319
   * <!-- end-user-doc -->
320
   * @deprecated
321
   * @generated
322
   */
323
  @Deprecated
324
  public static TypesPackageImpl getPackage()
325
  {
326
    return TypesPackageImpl.eINSTANCE;
327
  }
328
329
} //TypesFactoryImpl
(-)src/org/eclipse/emf/test/models/sdo/library/util/SDOLibraryAdapterFactory.java (-188 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SDOLibraryAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.util;
18
19
import org.eclipse.emf.common.notify.Adapter;
20
import org.eclipse.emf.common.notify.Notifier;
21
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
24
import org.eclipse.emf.ecore.EObject;
25
26
import org.eclipse.emf.test.models.sdo.library.*;
27
28
import org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * The <b>Adapter Factory</b> for the model.
33
 * It provides an adapter <code>createXXX</code> method for each class of the model.
34
 * <!-- end-user-doc -->
35
 * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl
36
 * @generated
37
 */
38
public class SDOLibraryAdapterFactory extends AdapterFactoryImpl
39
{
40
  /**
41
   * The cached model package.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  protected static SDOLibraryPackageImpl modelPackage;
47
48
  /**
49
   * Creates an instance of the adapter factory.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public SDOLibraryAdapterFactory()
55
  {
56
    if (modelPackage == null)
57
    {
58
      modelPackage = SDOLibraryPackageImpl.eINSTANCE;
59
    }
60
  }
61
62
  /**
63
   * Returns whether this factory is applicable for the type of the object.
64
   * <!-- begin-user-doc -->
65
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66
   * <!-- end-user-doc -->
67
   * @return whether this factory is applicable for the type of the object.
68
   * @generated
69
   */
70
  @Override
71
  public boolean isFactoryForType(Object object)
72
  {
73
    if (object == modelPackage)
74
    {
75
      return true;
76
    }
77
    if (object instanceof EObject)
78
    {
79
      return ((EObject)object).eClass().getEPackage() == modelPackage;
80
    }
81
    return false;
82
  }
83
84
  /**
85
   * The switch that delegates to the <code>createXXX</code> methods.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  protected SDOLibrarySwitch<Adapter> modelSwitch =
91
    new SDOLibrarySwitch<Adapter>()
92
    {
93
      @Override
94
      public Adapter caseBook(Book object)
95
      {
96
        return createBookAdapter();
97
      }
98
      @Override
99
      public Adapter caseLibrary(Library object)
100
      {
101
        return createLibraryAdapter();
102
      }
103
      @Override
104
      public Adapter caseWriter(Writer object)
105
      {
106
        return createWriterAdapter();
107
      }
108
      @Override
109
      public Adapter defaultCase(EObject object)
110
      {
111
        return createEObjectAdapter();
112
      }
113
    };
114
115
  /**
116
   * Creates an adapter for the <code>target</code>.
117
   * <!-- begin-user-doc -->
118
   * <!-- end-user-doc -->
119
   * @param target the object to adapt.
120
   * @return the adapter for the <code>target</code>.
121
   * @generated
122
   */
123
  @Override
124
  public Adapter createAdapter(Notifier target)
125
  {
126
    return modelSwitch.doSwitch((EObject)target);
127
  }
128
129
130
  /**
131
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Book <em>Book</em>}'.
132
   * <!-- begin-user-doc -->
133
   * This default implementation returns null so that we can easily ignore cases;
134
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
135
   * <!-- end-user-doc -->
136
   * @return the new adapter.
137
   * @see org.eclipse.emf.test.models.sdo.library.Book
138
   * @generated
139
   */
140
  public Adapter createBookAdapter()
141
  {
142
    return null;
143
  }
144
145
  /**
146
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Library <em>Library</em>}'.
147
   * <!-- begin-user-doc -->
148
   * This default implementation returns null so that we can easily ignore cases;
149
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
150
   * <!-- end-user-doc -->
151
   * @return the new adapter.
152
   * @see org.eclipse.emf.test.models.sdo.library.Library
153
   * @generated
154
   */
155
  public Adapter createLibraryAdapter()
156
  {
157
    return null;
158
  }
159
160
  /**
161
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Writer <em>Writer</em>}'.
162
   * <!-- begin-user-doc -->
163
   * This default implementation returns null so that we can easily ignore cases;
164
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
165
   * <!-- end-user-doc -->
166
   * @return the new adapter.
167
   * @see org.eclipse.emf.test.models.sdo.library.Writer
168
   * @generated
169
   */
170
  public Adapter createWriterAdapter()
171
  {
172
    return null;
173
  }
174
175
  /**
176
   * Creates a new adapter for the default case.
177
   * <!-- begin-user-doc -->
178
   * This default implementation returns null.
179
   * <!-- end-user-doc -->
180
   * @return the new adapter.
181
   * @generated
182
   */
183
  public Adapter createEObjectAdapter()
184
  {
185
    return null;
186
  }
187
188
} //SDOLibraryAdapterFactory
(-)models/sdo.IPO/address.xsd (-63 lines)
Removed Link Here
1
<schema targetNamespace="http:///org.eclipse.emf.test.models/IPO"
2
        xmlns="http://www.w3.org/2001/XMLSchema"
3
        xmlns:ipo="http:///org.eclipse.emf.test.models/IPO">
4
5
  <complexType name="Address">
6
    <sequence>
7
      <element name="name"   type="string"/>
8
      <element name="street" type="string"/>
9
      <element name="city"   type="string"/>
10
    </sequence>
11
  </complexType>
12
13
  <complexType name="USAddress">
14
    <complexContent>
15
      <extension base="ipo:Address">
16
        <sequence>
17
          <element name="state" type="ipo:USState"/>
18
          <element name="zip"   type="positiveInteger"/>
19
        </sequence>
20
      </extension>
21
    </complexContent>
22
  </complexType>
23
24
  <complexType name="UKAddress">
25
    <complexContent>
26
      <extension base="ipo:Address">
27
        <sequence>
28
          <element name="postcode" type="ipo:UKPostcode"/>
29
        </sequence>
30
        <attribute name="exportCode" type="positiveInteger" fixed="1"/>
31
      </extension>
32
    </complexContent>
33
  </complexType>
34
35
  <!-- other Address derivations for more countries -->
36
37
  <simpleType name="USState">
38
    <restriction base="string">
39
      <enumeration value="AK"/>
40
      <enumeration value="AL"/>
41
      <enumeration value="AR"/>
42
      <enumeration value="PA"/>
43
      <!-- and so on ... -->
44
    </restriction>
45
  </simpleType>
46
47
  <!-- simple type definition for UKPostcode -->
48
49
  <simpleType name="UKPostcode">
50
  <restriction base="ipo:Postcode">
51
    <pattern value="[A-Z]{2}\d\s\d[A-Z]{2}"/>
52
  </restriction>
53
  </simpleType>
54
55
<simpleType name="Postcode">
56
  <restriction base="string">
57
    <length value="7" fixed="true"/>
58
  </restriction>
59
</simpleType>
60
61
62
</schema>
63
(-)src/org/eclipse/emf/test/build/BuildTest.java (-3 lines)
Lines 319-327 Link Here
319
  {
319
  {
320
    Set<String> brandingPluginNames = new HashSet<String>();
320
    Set<String> brandingPluginNames = new HashSet<String>();
321
    brandingPluginNames.add("org.eclipse.emf.doc");
321
    brandingPluginNames.add("org.eclipse.emf.doc");
322
    brandingPluginNames.add("org.eclipse.emf.ecore.sdo.doc");
323
    brandingPluginNames.add("org.eclipse.emf.ecore.sdo.source");
324
    brandingPluginNames.add("org.eclipse.emf.ecore.sdo");
325
    brandingPluginNames.add("org.eclipse.emf.source");
322
    brandingPluginNames.add("org.eclipse.emf.source");
326
    brandingPluginNames.add("org.eclipse.emf");
323
    brandingPluginNames.add("org.eclipse.emf");
327
    brandingPluginNames.add("org.eclipse.xsd.doc");
324
    brandingPluginNames.add("org.eclipse.xsd.doc");
(-)src/org/eclipse/emf/test/build/StandAloneSuites.java (-1 lines)
Lines 23-29 Link Here
23
  private static Test[] suites = new Test []{ 
23
  private static Test[] suites = new Test []{ 
24
    org.eclipse.emf.test.core.AllSuites.suite() 
24
    org.eclipse.emf.test.core.AllSuites.suite() 
25
    ,org.eclipse.emf.test.edit.AllSuites.suite()
25
    ,org.eclipse.emf.test.edit.AllSuites.suite()
26
    ,org.eclipse.emf.test.sdo.AllSuites.suite()
27
    ,org.eclipse.emf.test.xml.AllSuites.suite()
26
    ,org.eclipse.emf.test.xml.AllSuites.suite()
28
  };
27
  };
29
28
(-)feature.xml (-2 lines)
Lines 34-41 Link Here
34
   
34
   
35
   <includes id="org.eclipse.emf.sdk" version="0.0.0"/>
35
   <includes id="org.eclipse.emf.sdk" version="0.0.0"/>
36
36
37
   <includes id="org.eclipse.emf.ecore.sdo.sdk" version="0.0.0"/>
38
39
   <includes id="org.eclipse.xsd.sdk" version="0.0.0"/>
37
   <includes id="org.eclipse.xsd.sdk" version="0.0.0"/>
40
38
41
   <includes id="org.eclipse.emf.examples" version="0.0.0"/>
39
   <includes id="org.eclipse.emf.examples" version="0.0.0"/>

Return to bug 251402