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 247226 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/emf/cdo/tests/mango/MangoFactory.java (-14 / +16 lines)
Lines 15-60 Link Here
15
/**
15
/**
16
 * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
16
 * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
17
 * the model. <!-- end-user-doc -->
17
 * the model. <!-- end-user-doc -->
18
 * 
19
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage
18
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage
20
 * @generated
19
 * @generated
21
 */
20
 */
22
public interface MangoFactory extends EFactory
21
public interface MangoFactory extends EFactory
23
{
22
{
24
  /**
23
  /**
25
   * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
24
   * The singleton instance of the factory.
26
   * 
25
   * <!-- begin-user-doc --> <!-- end-user-doc -->
27
   * @generated
26
   * @generated
28
   */
27
   */
29
  MangoFactory eINSTANCE = org.eclipse.emf.cdo.tests.mango.impl.MangoFactoryImpl.init();
28
  MangoFactory eINSTANCE = org.eclipse.emf.cdo.tests.mango.impl.MangoFactoryImpl.init();
30
29
31
  /**
30
  /**
32
   * Returns a new object of class '<em>Value List</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
31
   * Returns a new object of class '<em>Value List</em>'.
33
   * 
32
   * <!-- begin-user-doc -->
33
   * <!-- end-user-doc -->
34
   * @return a new object of class '<em>Value List</em>'.
34
   * @return a new object of class '<em>Value List</em>'.
35
   * @generated
35
   * @generated
36
   */
36
   */
37
  ValueList createValueList();
37
  MangoValueList createMangoValueList();
38
38
39
  /**
39
  /**
40
   * Returns a new object of class '<em>Value</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
40
   * Returns a new object of class '<em>Value</em>'.
41
   * 
41
   * <!-- begin-user-doc -->
42
   * <!-- end-user-doc -->
42
   * @return a new object of class '<em>Value</em>'.
43
   * @return a new object of class '<em>Value</em>'.
43
   * @generated
44
   * @generated
44
   */
45
   */
45
  Value createValue();
46
  MangoValue createMangoValue();
46
47
47
  /**
48
  /**
48
   * Returns a new object of class '<em>Parameter</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
49
   * Returns a new object of class '<em>Parameter</em>'.
49
   * 
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
50
   * @return a new object of class '<em>Parameter</em>'.
52
   * @return a new object of class '<em>Parameter</em>'.
51
   * @generated
53
   * @generated
52
   */
54
   */
53
  Parameter createParameter();
55
  MangoParameter createMangoParameter();
54
56
55
  /**
57
  /**
56
   * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
58
   * Returns the package supported by this factory.
57
   * 
59
   * <!-- begin-user-doc --> <!-- end-user-doc -->
58
   * @return the package supported by this factory.
60
   * @return the package supported by this factory.
59
   * @generated
61
   * @generated
60
   */
62
   */
(-)src/org/eclipse/emf/cdo/tests/mango/ParameterPassing.java (-29 / +22 lines)
Lines 19-25 Link Here
19
/**
19
/**
20
 * <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>Parameter Passing</b></em>', and
20
 * <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>Parameter Passing</b></em>', and
21
 * utility methods for working with them. <!-- end-user-doc -->
21
 * utility methods for working with them. <!-- end-user-doc -->
22
 * 
23
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameterPassing()
22
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameterPassing()
24
 * @model
23
 * @model
25
 * @generated
24
 * @generated
Lines 27-34 Link Here
27
public enum ParameterPassing implements Enumerator
26
public enum ParameterPassing implements Enumerator
28
{
27
{
29
  /**
28
  /**
30
   * The '<em><b>By Value</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
29
   * The '<em><b>By Value</b></em>' literal object.
31
   * 
30
   * <!-- begin-user-doc --> <!-- end-user-doc -->
32
   * @see #BY_VALUE_VALUE
31
   * @see #BY_VALUE_VALUE
33
   * @generated
32
   * @generated
34
   * @ordered
33
   * @ordered
Lines 36-43 Link Here
36
  BY_VALUE(0, "ByValue", "ByValue"),
35
  BY_VALUE(0, "ByValue", "ByValue"),
37
36
38
  /**
37
  /**
39
   * The '<em><b>By Reference</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * The '<em><b>By Reference</b></em>' literal object.
40
   * 
39
   * <!-- begin-user-doc --> <!-- end-user-doc -->
41
   * @see #BY_REFERENCE_VALUE
40
   * @see #BY_REFERENCE_VALUE
42
   * @generated
41
   * @generated
43
   * @ordered
42
   * @ordered
Lines 45-57 Link Here
45
  BY_REFERENCE(1, "ByReference", "ByReference");
44
  BY_REFERENCE(1, "ByReference", "ByReference");
46
45
47
  /**
46
  /**
48
   * The '<em><b>By Value</b></em>' literal value. <!-- begin-user-doc -->
47
   * The '<em><b>By Value</b></em>' literal value.
48
   * <!-- begin-user-doc -->
49
   * <p>
49
   * <p>
50
   * If the meaning of '<em><b>By Value</b></em>' literal object isn't clear, there really should be more of a
50
   * If the meaning of '<em><b>By Value</b></em>' literal object isn't clear, there really should be more of a
51
   * description here...
51
   * description here...
52
   * </p>
52
   * </p>
53
   * <!-- end-user-doc -->
53
   * <!-- end-user-doc -->
54
   * 
55
   * @see #BY_VALUE
54
   * @see #BY_VALUE
56
   * @model name="ByValue"
55
   * @model name="ByValue"
57
   * @generated
56
   * @generated
Lines 60-72 Link Here
60
  public static final int BY_VALUE_VALUE = 0;
59
  public static final int BY_VALUE_VALUE = 0;
61
60
62
  /**
61
  /**
63
   * The '<em><b>By Reference</b></em>' literal value. <!-- begin-user-doc -->
62
   * The '<em><b>By Reference</b></em>' literal value.
63
   * <!-- begin-user-doc -->
64
   * <p>
64
   * <p>
65
   * If the meaning of '<em><b>By Reference</b></em>' literal object isn't clear, there really should be more of a
65
   * If the meaning of '<em><b>By Reference</b></em>' literal object isn't clear, there really should be more of a
66
   * description here...
66
   * description here...
67
   * </p>
67
   * </p>
68
   * <!-- end-user-doc -->
68
   * <!-- end-user-doc -->
69
   * 
70
   * @see #BY_REFERENCE
69
   * @see #BY_REFERENCE
71
   * @model name="ByReference"
70
   * @model name="ByReference"
72
   * @generated
71
   * @generated
Lines 75-98 Link Here
75
  public static final int BY_REFERENCE_VALUE = 1;
74
  public static final int BY_REFERENCE_VALUE = 1;
76
75
77
  /**
76
  /**
78
   * An array of all the '<em><b>Parameter Passing</b></em>' enumerators. <!-- begin-user-doc --> <!-- end-user-doc -->
77
   * An array of all the '<em><b>Parameter Passing</b></em>' enumerators.
79
   * 
78
   * <!-- begin-user-doc --> <!-- end-user-doc -->
80
   * @generated
79
   * @generated
81
   */
80
   */
82
  private static final ParameterPassing[] VALUES_ARRAY = new ParameterPassing[] { BY_VALUE, BY_REFERENCE, };
81
  private static final ParameterPassing[] VALUES_ARRAY = new ParameterPassing[] { BY_VALUE, BY_REFERENCE, };
83
82
84
  /**
83
  /**
85
   * A public read-only list of all the '<em><b>Parameter Passing</b></em>' enumerators. <!-- begin-user-doc --> <!--
84
   * A public read-only list of all the '<em><b>Parameter Passing</b></em>' enumerators.
85
   * <!-- begin-user-doc --> <!--
86
   * end-user-doc -->
86
   * end-user-doc -->
87
   * 
88
   * @generated
87
   * @generated
89
   */
88
   */
90
  public static final List<ParameterPassing> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
89
  public static final List<ParameterPassing> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
91
90
92
  /**
91
  /**
93
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified literal value. <!-- begin-user-doc -->
92
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified literal value.
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
94
   * <!-- end-user-doc -->
95
   * 
96
   * @generated
95
   * @generated
97
   */
96
   */
98
  public static ParameterPassing get(String literal)
97
  public static ParameterPassing get(String literal)
Lines 109-117 Link Here
109
  }
108
  }
110
109
111
  /**
110
  /**
112
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified name. <!-- begin-user-doc --> <!--
111
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified name.
112
   * <!-- begin-user-doc --> <!--
113
   * end-user-doc -->
113
   * end-user-doc -->
114
   * 
115
   * @generated
114
   * @generated
116
   */
115
   */
117
  public static ParameterPassing getByName(String name)
116
  public static ParameterPassing getByName(String name)
Lines 128-136 Link Here
128
  }
127
  }
129
128
130
  /**
129
  /**
131
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified integer value. <!-- begin-user-doc -->
130
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified integer value.
131
   * <!-- begin-user-doc -->
132
   * <!-- end-user-doc -->
132
   * <!-- end-user-doc -->
133
   * 
134
   * @generated
133
   * @generated
135
   */
134
   */
136
  public static ParameterPassing get(int value)
135
  public static ParameterPassing get(int value)
Lines 147-174 Link Here
147
146
148
  /**
147
  /**
149
   * <!-- begin-user-doc --> <!-- end-user-doc -->
148
   * <!-- begin-user-doc --> <!-- end-user-doc -->
150
   * 
151
   * @generated
149
   * @generated
152
   */
150
   */
153
  private final int value;
151
  private final int value;
154
152
155
  /**
153
  /**
156
   * <!-- begin-user-doc --> <!-- end-user-doc -->
154
   * <!-- begin-user-doc --> <!-- end-user-doc -->
157
   * 
158
   * @generated
155
   * @generated
159
   */
156
   */
160
  private final String name;
157
  private final String name;
161
158
162
  /**
159
  /**
163
   * <!-- begin-user-doc --> <!-- end-user-doc -->
160
   * <!-- begin-user-doc --> <!-- end-user-doc -->
164
   * 
165
   * @generated
161
   * @generated
166
   */
162
   */
167
  private final String literal;
163
  private final String literal;
168
164
169
  /**
165
  /**
170
   * Only this class can construct instances. <!-- begin-user-doc --> <!-- end-user-doc -->
166
   * Only this class can construct instances.
171
   * 
167
   * <!-- begin-user-doc --> <!-- end-user-doc -->
172
   * @generated
168
   * @generated
173
   */
169
   */
174
  private ParameterPassing(int value, String name, String literal)
170
  private ParameterPassing(int value, String name, String literal)
Lines 180-186 Link Here
180
176
181
  /**
177
  /**
182
   * <!-- begin-user-doc --> <!-- end-user-doc -->
178
   * <!-- begin-user-doc --> <!-- end-user-doc -->
183
   * 
184
   * @generated
179
   * @generated
185
   */
180
   */
186
  public int getValue()
181
  public int getValue()
Lines 190-196 Link Here
190
185
191
  /**
186
  /**
192
   * <!-- begin-user-doc --> <!-- end-user-doc -->
187
   * <!-- begin-user-doc --> <!-- end-user-doc -->
193
   * 
194
   * @generated
188
   * @generated
195
   */
189
   */
196
  public String getName()
190
  public String getName()
Lines 200-206 Link Here
200
194
201
  /**
195
  /**
202
   * <!-- begin-user-doc --> <!-- end-user-doc -->
196
   * <!-- begin-user-doc --> <!-- end-user-doc -->
203
   * 
204
   * @generated
197
   * @generated
205
   */
198
   */
206
  public String getLiteral()
199
  public String getLiteral()
Lines 209-217 Link Here
209
  }
202
  }
210
203
211
  /**
204
  /**
212
   * Returns the literal value of the enumerator, which is its string representation. <!-- begin-user-doc --> <!--
205
   * Returns the literal value of the enumerator, which is its string representation.
206
   * <!-- begin-user-doc --> <!--
213
   * end-user-doc -->
207
   * end-user-doc -->
214
   * 
215
   * @generated
208
   * @generated
216
   */
209
   */
217
  @Override
210
  @Override
(-)src/org/eclipse/emf/cdo/tests/mango/Parameter.java (-87 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango;
12
13
import org.eclipse.emf.ecore.EObject;
14
15
/**
16
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Parameter</b></em>'. <!-- end-user-doc -->
17
 * <p>
18
 * The following features are supported:
19
 * <ul>
20
 * <li>{@link org.eclipse.emf.cdo.tests.mango.Parameter#getName <em>Name</em>}</li>
21
 * <li>{@link org.eclipse.emf.cdo.tests.mango.Parameter#getPassing <em>Passing</em>}</li>
22
 * </ul>
23
 * </p>
24
 * 
25
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameter()
26
 * @model
27
 * @generated
28
 */
29
public interface Parameter extends EObject
30
{
31
  /**
32
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
33
   * <p>
34
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
35
   * </p>
36
   * <!-- end-user-doc -->
37
   * 
38
   * @return the value of the '<em>Name</em>' attribute.
39
   * @see #setName(String)
40
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameter_Name()
41
   * @model
42
   * @generated
43
   */
44
  String getName();
45
46
  /**
47
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getName <em>Name</em>}' attribute. <!--
48
   * begin-user-doc --> <!-- end-user-doc -->
49
   * 
50
   * @param value
51
   *          the new value of the '<em>Name</em>' attribute.
52
   * @see #getName()
53
   * @generated
54
   */
55
  void setName(String value);
56
57
  /**
58
   * Returns the value of the '<em><b>Passing</b></em>' attribute. The literals are from the enumeration
59
   * {@link org.eclipse.emf.cdo.tests.mango.ParameterPassing}. <!-- begin-user-doc -->
60
   * <p>
61
   * If the meaning of the '<em>Passing</em>' attribute isn't clear, there really should be more of a description
62
   * here...
63
   * </p>
64
   * <!-- end-user-doc -->
65
   * 
66
   * @return the value of the '<em>Passing</em>' attribute.
67
   * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
68
   * @see #setPassing(ParameterPassing)
69
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameter_Passing()
70
   * @model
71
   * @generated
72
   */
73
  ParameterPassing getPassing();
74
75
  /**
76
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getPassing <em>Passing</em>}' attribute.
77
   * <!-- begin-user-doc --> <!-- end-user-doc -->
78
   * 
79
   * @param value
80
   *          the new value of the '<em>Passing</em>' attribute.
81
   * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
82
   * @see #getPassing()
83
   * @generated
84
   */
85
  void setPassing(ParameterPassing value);
86
87
} // Parameter
(-)src/org/eclipse/emf/cdo/tests/mango/MangoPackage.java (-146 / +149 lines)
Lines 25-31 Link Here
25
 * <li>and each data type</li>
25
 * <li>and each data type</li>
26
 * </ul>
26
 * </ul>
27
 * <!-- end-user-doc -->
27
 * <!-- end-user-doc -->
28
 * 
29
 * @see org.eclipse.emf.cdo.tests.mango.MangoFactory
28
 * @see org.eclipse.emf.cdo.tests.mango.MangoFactory
30
 * @model kind="package"
29
 * @model kind="package"
31
 * @generated
30
 * @generated
Lines 33-163 Link Here
33
public interface MangoPackage extends EPackage
32
public interface MangoPackage extends EPackage
34
{
33
{
35
  /**
34
  /**
36
   * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->
35
   * The package name.
37
   * 
36
   * <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * @generated
37
   * @generated
39
   */
38
   */
40
  String eNAME = "mango";
39
  String eNAME = "mango";
41
40
42
  /**
41
  /**
43
   * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->
42
   * The package namespace URI.
44
   * 
43
   * <!-- begin-user-doc --> <!-- end-user-doc -->
45
   * @generated
44
   * @generated
46
   */
45
   */
47
  String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/mango";
46
  String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/mango";
48
47
49
  /**
48
  /**
50
   * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->
49
   * The package namespace name.
51
   * 
50
   * <!-- begin-user-doc --> <!-- end-user-doc -->
52
   * @generated
51
   * @generated
53
   */
52
   */
54
  String eNS_PREFIX = "mango";
53
  String eNS_PREFIX = "mango";
55
54
56
  /**
55
  /**
57
   * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->
56
   * The singleton instance of the package.
58
   * 
57
   * <!-- begin-user-doc --> <!-- end-user-doc -->
59
   * @generated
58
   * @generated
60
   */
59
   */
61
  MangoPackage eINSTANCE = org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl.init();
60
  MangoPackage eINSTANCE = org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl.init();
62
61
63
  /**
62
  /**
64
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl <em>Value List</em>}' class.
63
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.impl.MangoValueListImpl <em>Value List</em>}' class.
65
   * <!-- begin-user-doc --> <!-- end-user-doc -->
64
   * <!-- begin-user-doc -->
66
   * 
65
   * <!-- end-user-doc -->
67
   * @see org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl
66
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoValueListImpl
68
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getValueList()
67
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getMangoValueList()
69
   * @generated
68
   * @generated
70
   */
69
   */
71
  int VALUE_LIST = 0;
70
  int MANGO_VALUE_LIST = 0;
72
71
73
  /**
72
  /**
74
   * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
73
   * The feature id for the '<em><b>Name</b></em>' attribute.
75
   * 
74
   * <!-- begin-user-doc -->
75
   * <!-- end-user-doc -->
76
   * @generated
76
   * @generated
77
   * @ordered
77
   * @ordered
78
   */
78
   */
79
  int VALUE_LIST__NAME = 0;
79
  int MANGO_VALUE_LIST__NAME = 0;
80
80
81
  /**
81
  /**
82
   * The feature id for the '<em><b>Values</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
82
   * The feature id for the '<em><b>Values</b></em>' reference list.
83
   * 
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
84
   * @generated
85
   * @generated
85
   * @ordered
86
   * @ordered
86
   */
87
   */
87
  int VALUE_LIST__VALUES = 1;
88
  int MANGO_VALUE_LIST__VALUES = 1;
88
89
89
  /**
90
  /**
90
   * The number of structural features of the '<em>Value List</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
91
   * The number of structural features of the '<em>Value List</em>' class.
91
   * 
92
   * <!-- begin-user-doc -->
93
   * <!-- end-user-doc -->
92
   * @generated
94
   * @generated
93
   * @ordered
95
   * @ordered
94
   */
96
   */
95
  int VALUE_LIST_FEATURE_COUNT = 2;
97
  int MANGO_VALUE_LIST_FEATURE_COUNT = 2;
96
98
97
  /**
99
  /**
98
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ValueImpl <em>Value</em>}' class. <!--
100
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.impl.MangoValueImpl <em>Value</em>}' class.
99
   * begin-user-doc --> <!-- end-user-doc -->
101
   * <!-- begin-user-doc -->
100
   * 
102
   * <!-- end-user-doc -->
101
   * @see org.eclipse.emf.cdo.tests.mango.impl.ValueImpl
103
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoValueImpl
102
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getValue()
104
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getMangoValue()
103
   * @generated
105
   * @generated
104
   */
106
   */
105
  int VALUE = 1;
107
  int MANGO_VALUE = 1;
106
108
107
  /**
109
  /**
108
   * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
110
   * The feature id for the '<em><b>Name</b></em>' attribute.
109
   * 
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
110
   * @generated
113
   * @generated
111
   * @ordered
114
   * @ordered
112
   */
115
   */
113
  int VALUE__NAME = 0;
116
  int MANGO_VALUE__NAME = 0;
114
117
115
  /**
118
  /**
116
   * The number of structural features of the '<em>Value</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
119
   * The number of structural features of the '<em>Value</em>' class.
117
   * 
120
   * <!-- begin-user-doc -->
121
   * <!-- end-user-doc -->
118
   * @generated
122
   * @generated
119
   * @ordered
123
   * @ordered
120
   */
124
   */
121
  int VALUE_FEATURE_COUNT = 1;
125
  int MANGO_VALUE_FEATURE_COUNT = 1;
122
126
123
  /**
127
  /**
124
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl <em>Parameter</em>}' class.
128
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.impl.MangoParameterImpl <em>Parameter</em>}' class.
125
   * <!-- begin-user-doc --> <!-- end-user-doc -->
129
   * <!-- begin-user-doc -->
126
   * 
130
   * <!-- end-user-doc -->
127
   * @see org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl
131
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoParameterImpl
128
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameter()
132
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getMangoParameter()
129
   * @generated
133
   * @generated
130
   */
134
   */
131
  int PARAMETER = 2;
135
  int MANGO_PARAMETER = 2;
132
136
133
  /**
137
  /**
134
   * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
138
   * The feature id for the '<em><b>Name</b></em>' attribute.
135
   * 
139
   * <!-- begin-user-doc -->
140
   * <!-- end-user-doc -->
136
   * @generated
141
   * @generated
137
   * @ordered
142
   * @ordered
138
   */
143
   */
139
  int PARAMETER__NAME = 0;
144
  int MANGO_PARAMETER__NAME = 0;
140
145
141
  /**
146
  /**
142
   * The feature id for the '<em><b>Passing</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
147
   * The feature id for the '<em><b>Passing</b></em>' attribute.
143
   * 
148
   * <!-- begin-user-doc -->
149
   * <!-- end-user-doc -->
144
   * @generated
150
   * @generated
145
   * @ordered
151
   * @ordered
146
   */
152
   */
147
  int PARAMETER__PASSING = 1;
153
  int MANGO_PARAMETER__PASSING = 1;
148
154
149
  /**
155
  /**
150
   * The number of structural features of the '<em>Parameter</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
156
   * The number of structural features of the '<em>Parameter</em>' class.
151
   * 
157
   * <!-- begin-user-doc -->
158
   * <!-- end-user-doc -->
152
   * @generated
159
   * @generated
153
   * @ordered
160
   * @ordered
154
   */
161
   */
155
  int PARAMETER_FEATURE_COUNT = 2;
162
  int MANGO_PARAMETER_FEATURE_COUNT = 2;
156
163
157
  /**
164
  /**
158
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing <em>Parameter Passing</em>}'
165
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing <em>Parameter Passing</em>}' enum.
159
   * enum. <!-- begin-user-doc --> <!-- end-user-doc -->
166
   * <!-- begin-user-doc --> <!-- end-user-doc -->
160
   * 
161
   * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
167
   * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
162
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameterPassing()
168
   * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameterPassing()
163
   * @generated
169
   * @generated
Lines 165-258 Link Here
165
  int PARAMETER_PASSING = 3;
171
  int PARAMETER_PASSING = 3;
166
172
167
  /**
173
  /**
168
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.mango.ValueList <em>Value List</em>}'. <!--
174
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList <em>Value List</em>}'.
169
   * begin-user-doc --> <!-- end-user-doc -->
175
   * <!-- begin-user-doc -->
170
   * 
176
   * <!-- end-user-doc -->
171
   * @return the meta object for class '<em>Value List</em>'.
177
   * @return the meta object for class '<em>Value List</em>'.
172
   * @see org.eclipse.emf.cdo.tests.mango.ValueList
178
   * @see org.eclipse.emf.cdo.tests.mango.MangoValueList
173
   * @generated
179
   * @generated
174
   */
180
   */
175
  EClass getValueList();
181
  EClass getMangoValueList();
176
182
177
  /**
183
  /**
178
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.ValueList#getName <em>Name</em>}
184
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList#getName <em>Name</em>}'.
179
   * '. <!-- begin-user-doc --> <!-- end-user-doc -->
185
   * <!-- begin-user-doc -->
180
   * 
186
   * <!-- end-user-doc -->
181
   * @return the meta object for the attribute '<em>Name</em>'.
187
   * @return the meta object for the attribute '<em>Name</em>'.
182
   * @see org.eclipse.emf.cdo.tests.mango.ValueList#getName()
188
   * @see org.eclipse.emf.cdo.tests.mango.MangoValueList#getName()
183
   * @see #getValueList()
189
   * @see #getMangoValueList()
184
   * @generated
190
   * @generated
185
   */
191
   */
186
  EAttribute getValueList_Name();
192
  EAttribute getMangoValueList_Name();
187
193
188
  /**
194
  /**
189
   * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.mango.ValueList#getValues
195
   * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList#getValues <em>Values</em>}'.
190
   * <em>Values</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
196
   * <!-- begin-user-doc -->
191
   * 
197
   * <!-- end-user-doc -->
192
   * @return the meta object for the reference list '<em>Values</em>'.
198
   * @return the meta object for the reference list '<em>Values</em>'.
193
   * @see org.eclipse.emf.cdo.tests.mango.ValueList#getValues()
199
   * @see org.eclipse.emf.cdo.tests.mango.MangoValueList#getValues()
194
   * @see #getValueList()
200
   * @see #getMangoValueList()
195
   * @generated
201
   * @generated
196
   */
202
   */
197
  EReference getValueList_Values();
203
  EReference getMangoValueList_Values();
198
204
199
  /**
205
  /**
200
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.mango.Value <em>Value</em>}'. <!--
206
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.mango.MangoValue <em>Value</em>}'.
201
   * begin-user-doc --> <!-- end-user-doc -->
207
   * <!-- begin-user-doc -->
202
   * 
208
   * <!-- end-user-doc -->
203
   * @return the meta object for class '<em>Value</em>'.
209
   * @return the meta object for class '<em>Value</em>'.
204
   * @see org.eclipse.emf.cdo.tests.mango.Value
210
   * @see org.eclipse.emf.cdo.tests.mango.MangoValue
205
   * @generated
211
   * @generated
206
   */
212
   */
207
  EClass getValue();
213
  EClass getMangoValue();
208
214
209
  /**
215
  /**
210
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.Value#getName <em>Name</em>}'.
216
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.MangoValue#getName <em>Name</em>}'.
211
   * <!-- begin-user-doc --> <!-- end-user-doc -->
217
   * <!-- begin-user-doc -->
212
   * 
218
   * <!-- end-user-doc -->
213
   * @return the meta object for the attribute '<em>Name</em>'.
219
   * @return the meta object for the attribute '<em>Name</em>'.
214
   * @see org.eclipse.emf.cdo.tests.mango.Value#getName()
220
   * @see org.eclipse.emf.cdo.tests.mango.MangoValue#getName()
215
   * @see #getValue()
221
   * @see #getMangoValue()
216
   * @generated
222
   * @generated
217
   */
223
   */
218
  EAttribute getValue_Name();
224
  EAttribute getMangoValue_Name();
219
225
220
  /**
226
  /**
221
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.mango.Parameter <em>Parameter</em>}'. <!--
227
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter <em>Parameter</em>}'.
222
   * begin-user-doc --> <!-- end-user-doc -->
228
   * <!-- begin-user-doc -->
223
   * 
229
   * <!-- end-user-doc -->
224
   * @return the meta object for class '<em>Parameter</em>'.
230
   * @return the meta object for class '<em>Parameter</em>'.
225
   * @see org.eclipse.emf.cdo.tests.mango.Parameter
231
   * @see org.eclipse.emf.cdo.tests.mango.MangoParameter
226
   * @generated
232
   * @generated
227
   */
233
   */
228
  EClass getParameter();
234
  EClass getMangoParameter();
229
235
230
  /**
236
  /**
231
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getName <em>Name</em>}
237
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getName <em>Name</em>}'.
232
   * '. <!-- begin-user-doc --> <!-- end-user-doc -->
238
   * <!-- begin-user-doc -->
233
   * 
239
   * <!-- end-user-doc -->
234
   * @return the meta object for the attribute '<em>Name</em>'.
240
   * @return the meta object for the attribute '<em>Name</em>'.
235
   * @see org.eclipse.emf.cdo.tests.mango.Parameter#getName()
241
   * @see org.eclipse.emf.cdo.tests.mango.MangoParameter#getName()
236
   * @see #getParameter()
242
   * @see #getMangoParameter()
237
   * @generated
243
   * @generated
238
   */
244
   */
239
  EAttribute getParameter_Name();
245
  EAttribute getMangoParameter_Name();
240
246
241
  /**
247
  /**
242
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getPassing
248
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getPassing <em>Passing</em>}'.
243
   * <em>Passing</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
249
   * <!-- begin-user-doc -->
244
   * 
250
   * <!-- end-user-doc -->
245
   * @return the meta object for the attribute '<em>Passing</em>'.
251
   * @return the meta object for the attribute '<em>Passing</em>'.
246
   * @see org.eclipse.emf.cdo.tests.mango.Parameter#getPassing()
252
   * @see org.eclipse.emf.cdo.tests.mango.MangoParameter#getPassing()
247
   * @see #getParameter()
253
   * @see #getMangoParameter()
248
   * @generated
254
   * @generated
249
   */
255
   */
250
  EAttribute getParameter_Passing();
256
  EAttribute getMangoParameter_Passing();
251
257
252
  /**
258
  /**
253
   * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing
259
   * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing <em>Parameter Passing</em>}'.
254
   * <em>Parameter Passing</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
260
   * <!-- begin-user-doc --> <!-- end-user-doc -->
255
   * 
256
   * @return the meta object for enum '<em>Parameter Passing</em>'.
261
   * @return the meta object for enum '<em>Parameter Passing</em>'.
257
   * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
262
   * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
258
   * @generated
263
   * @generated
Lines 260-267 Link Here
260
  EEnum getParameterPassing();
265
  EEnum getParameterPassing();
261
266
262
  /**
267
  /**
263
   * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc -->
268
   * Returns the factory that creates the instances of the model.
264
   * 
269
   * <!-- begin-user-doc --> <!-- end-user-doc -->
265
   * @return the factory that creates the instances of the model.
270
   * @return the factory that creates the instances of the model.
266
   * @generated
271
   * @generated
267
   */
272
   */
Lines 276-360 Link Here
276
   * <li>and each data type</li>
281
   * <li>and each data type</li>
277
   * </ul>
282
   * </ul>
278
   * <!-- end-user-doc -->
283
   * <!-- end-user-doc -->
279
   * 
280
   * @generated
284
   * @generated
281
   */
285
   */
282
  interface Literals
286
  interface Literals
283
  {
287
  {
284
    /**
288
    /**
285
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl <em>Value List</em>}'
289
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.MangoValueListImpl <em>Value List</em>}' class.
286
     * class. <!-- begin-user-doc --> <!-- end-user-doc -->
290
     * <!-- begin-user-doc -->
287
     * 
291
     * <!-- end-user-doc -->
288
     * @see org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl
292
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoValueListImpl
289
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getValueList()
293
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getMangoValueList()
290
     * @generated
294
     * @generated
291
     */
295
     */
292
    EClass VALUE_LIST = eINSTANCE.getValueList();
296
    EClass MANGO_VALUE_LIST = eINSTANCE.getMangoValueList();
293
297
294
    /**
298
    /**
295
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
299
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
296
     * end-user-doc -->
300
     * <!-- begin-user-doc -->
297
     * 
301
     * <!-- end-user-doc -->
298
     * @generated
302
     * @generated
299
     */
303
     */
300
    EAttribute VALUE_LIST__NAME = eINSTANCE.getValueList_Name();
304
    EAttribute MANGO_VALUE_LIST__NAME = eINSTANCE.getMangoValueList_Name();
301
305
302
    /**
306
    /**
303
     * The meta object literal for the '<em><b>Values</b></em>' reference list feature. <!-- begin-user-doc --> <!--
307
     * The meta object literal for the '<em><b>Values</b></em>' reference list feature.
304
     * end-user-doc -->
308
     * <!-- begin-user-doc -->
305
     * 
309
     * <!-- end-user-doc -->
306
     * @generated
310
     * @generated
307
     */
311
     */
308
    EReference VALUE_LIST__VALUES = eINSTANCE.getValueList_Values();
312
    EReference MANGO_VALUE_LIST__VALUES = eINSTANCE.getMangoValueList_Values();
309
313
310
    /**
314
    /**
311
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ValueImpl <em>Value</em>}' class.
315
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.MangoValueImpl <em>Value</em>}' class.
312
     * <!-- begin-user-doc --> <!-- end-user-doc -->
316
     * <!-- begin-user-doc -->
313
     * 
317
     * <!-- end-user-doc -->
314
     * @see org.eclipse.emf.cdo.tests.mango.impl.ValueImpl
318
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoValueImpl
315
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getValue()
319
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getMangoValue()
316
     * @generated
320
     * @generated
317
     */
321
     */
318
    EClass VALUE = eINSTANCE.getValue();
322
    EClass MANGO_VALUE = eINSTANCE.getMangoValue();
319
323
320
    /**
324
    /**
321
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
325
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
322
     * end-user-doc -->
326
     * <!-- begin-user-doc -->
323
     * 
327
     * <!-- end-user-doc -->
324
     * @generated
328
     * @generated
325
     */
329
     */
326
    EAttribute VALUE__NAME = eINSTANCE.getValue_Name();
330
    EAttribute MANGO_VALUE__NAME = eINSTANCE.getMangoValue_Name();
327
331
328
    /**
332
    /**
329
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl <em>Parameter</em>}'
333
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.MangoParameterImpl <em>Parameter</em>}' class.
330
     * class. <!-- begin-user-doc --> <!-- end-user-doc -->
334
     * <!-- begin-user-doc -->
331
     * 
335
     * <!-- end-user-doc -->
332
     * @see org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl
336
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoParameterImpl
333
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameter()
337
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getMangoParameter()
334
     * @generated
338
     * @generated
335
     */
339
     */
336
    EClass PARAMETER = eINSTANCE.getParameter();
340
    EClass MANGO_PARAMETER = eINSTANCE.getMangoParameter();
337
341
338
    /**
342
    /**
339
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
343
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
340
     * end-user-doc -->
344
     * <!-- begin-user-doc -->
341
     * 
345
     * <!-- end-user-doc -->
342
     * @generated
346
     * @generated
343
     */
347
     */
344
    EAttribute PARAMETER__NAME = eINSTANCE.getParameter_Name();
348
    EAttribute MANGO_PARAMETER__NAME = eINSTANCE.getMangoParameter_Name();
345
349
346
    /**
350
    /**
347
     * The meta object literal for the '<em><b>Passing</b></em>' attribute feature. <!-- begin-user-doc --> <!--
351
     * The meta object literal for the '<em><b>Passing</b></em>' attribute feature.
348
     * end-user-doc -->
352
     * <!-- begin-user-doc -->
349
     * 
353
     * <!-- end-user-doc -->
350
     * @generated
354
     * @generated
351
     */
355
     */
352
    EAttribute PARAMETER__PASSING = eINSTANCE.getParameter_Passing();
356
    EAttribute MANGO_PARAMETER__PASSING = eINSTANCE.getMangoParameter_Passing();
353
357
354
    /**
358
    /**
355
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing
359
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing <em>Parameter Passing</em>}' enum.
356
     * <em>Parameter Passing</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->
360
     * <!-- begin-user-doc --> <!-- end-user-doc -->
357
     * 
358
     * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
361
     * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
359
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameterPassing()
362
     * @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameterPassing()
360
     * @generated
363
     * @generated
(-)src/org/eclipse/emf/cdo/tests/mango/ValueList.java (-74 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango;
12
13
import org.eclipse.emf.common.util.EList;
14
import org.eclipse.emf.ecore.EObject;
15
16
/**
17
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Value List</b></em>'. <!-- end-user-doc -->
18
 * <p>
19
 * The following features are supported:
20
 * <ul>
21
 * <li>{@link org.eclipse.emf.cdo.tests.mango.ValueList#getName <em>Name</em>}</li>
22
 * <li>{@link org.eclipse.emf.cdo.tests.mango.ValueList#getValues <em>Values</em>}</li>
23
 * </ul>
24
 * </p>
25
 * 
26
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValueList()
27
 * @model
28
 * @generated
29
 */
30
public interface ValueList extends EObject
31
{
32
  /**
33
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
34
   * <p>
35
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
36
   * </p>
37
   * <!-- end-user-doc -->
38
   * 
39
   * @return the value of the '<em>Name</em>' attribute.
40
   * @see #setName(String)
41
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValueList_Name()
42
   * @model
43
   * @generated
44
   */
45
  String getName();
46
47
  /**
48
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.ValueList#getName <em>Name</em>}' attribute. <!--
49
   * begin-user-doc --> <!-- end-user-doc -->
50
   * 
51
   * @param value
52
   *          the new value of the '<em>Name</em>' attribute.
53
   * @see #getName()
54
   * @generated
55
   */
56
  void setName(String value);
57
58
  /**
59
   * Returns the value of the '<em><b>Values</b></em>' reference list. The list contents are of type
60
   * {@link org.eclipse.emf.cdo.tests.mango.Value}. <!-- begin-user-doc -->
61
   * <p>
62
   * If the meaning of the '<em>Values</em>' reference list isn't clear, there really should be more of a description
63
   * here...
64
   * </p>
65
   * <!-- end-user-doc -->
66
   * 
67
   * @return the value of the '<em>Values</em>' reference list.
68
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValueList_Values()
69
   * @model
70
   * @generated
71
   */
72
  EList<Value> getValues();
73
74
} // ValueList
(-)src/org/eclipse/emf/cdo/tests/mango/Value.java (-56 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango;
12
13
import org.eclipse.emf.ecore.EObject;
14
15
/**
16
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Value</b></em>'. <!-- end-user-doc -->
17
 * <p>
18
 * The following features are supported:
19
 * <ul>
20
 * <li>{@link org.eclipse.emf.cdo.tests.mango.Value#getName <em>Name</em>}</li>
21
 * </ul>
22
 * </p>
23
 * 
24
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValue()
25
 * @model
26
 * @generated
27
 */
28
public interface Value extends EObject
29
{
30
  /**
31
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
32
   * <p>
33
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
34
   * </p>
35
   * <!-- end-user-doc -->
36
   * 
37
   * @return the value of the '<em>Name</em>' attribute.
38
   * @see #setName(String)
39
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValue_Name()
40
   * @model
41
   * @generated
42
   */
43
  String getName();
44
45
  /**
46
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.Value#getName <em>Name</em>}' attribute. <!--
47
   * begin-user-doc --> <!-- end-user-doc -->
48
   * 
49
   * @param value
50
   *          the new value of the '<em>Name</em>' attribute.
51
   * @see #getName()
52
   * @generated
53
   */
54
  void setName(String value);
55
56
} // Value
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/ParameterPassing.java (-225 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: ParameterPassing.java,v 1.2 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango;
14
15
import org.eclipse.emf.common.util.Enumerator;
16
17
import java.util.Arrays;
18
import java.util.Collections;
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>Parameter Passing</b></em>', and
23
 * utility methods for working with them. <!-- end-user-doc -->
24
 * 
25
 * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getParameterPassing()
26
 * @model
27
 * @generated
28
 */
29
public enum ParameterPassing implements Enumerator
30
{
31
  /**
32
   * The '<em><b>By Value</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
33
   * 
34
   * @see #BY_VALUE_VALUE
35
   * @generated
36
   * @ordered
37
   */
38
  BY_VALUE(0, "ByValue", "ByValue"),
39
40
  /**
41
   * The '<em><b>By Reference</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
42
   * 
43
   * @see #BY_REFERENCE_VALUE
44
   * @generated
45
   * @ordered
46
   */
47
  BY_REFERENCE(1, "ByReference", "ByReference");
48
49
  /**
50
   * The '<em><b>By Value</b></em>' literal value. <!-- begin-user-doc -->
51
   * <p>
52
   * If the meaning of '<em><b>By Value</b></em>' literal object isn't clear, there really should be more of a
53
   * description here...
54
   * </p>
55
   * <!-- end-user-doc -->
56
   * 
57
   * @see #BY_VALUE
58
   * @model name="ByValue"
59
   * @generated
60
   * @ordered
61
   */
62
  public static final int BY_VALUE_VALUE = 0;
63
64
  /**
65
   * The '<em><b>By Reference</b></em>' literal value. <!-- begin-user-doc -->
66
   * <p>
67
   * If the meaning of '<em><b>By Reference</b></em>' literal object isn't clear, there really should be more of a
68
   * description here...
69
   * </p>
70
   * <!-- end-user-doc -->
71
   * 
72
   * @see #BY_REFERENCE
73
   * @model name="ByReference"
74
   * @generated
75
   * @ordered
76
   */
77
  public static final int BY_REFERENCE_VALUE = 1;
78
79
  /**
80
   * An array of all the '<em><b>Parameter Passing</b></em>' enumerators. <!-- begin-user-doc --> <!-- end-user-doc -->
81
   * 
82
   * @generated
83
   */
84
  private static final ParameterPassing[] VALUES_ARRAY = new ParameterPassing[] { BY_VALUE, BY_REFERENCE, };
85
86
  /**
87
   * A public read-only list of all the '<em><b>Parameter Passing</b></em>' enumerators. <!-- begin-user-doc --> <!--
88
   * end-user-doc -->
89
   * 
90
   * @generated
91
   */
92
  public static final List<ParameterPassing> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
93
94
  /**
95
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified literal value. <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * 
98
   * @generated
99
   */
100
  public static ParameterPassing get(String literal)
101
  {
102
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
103
    {
104
      ParameterPassing result = VALUES_ARRAY[i];
105
      if (result.toString().equals(literal))
106
      {
107
        return result;
108
      }
109
    }
110
    return null;
111
  }
112
113
  /**
114
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified name. <!-- begin-user-doc --> <!--
115
   * end-user-doc -->
116
   * 
117
   * @generated
118
   */
119
  public static ParameterPassing getByName(String name)
120
  {
121
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
122
    {
123
      ParameterPassing result = VALUES_ARRAY[i];
124
      if (result.getName().equals(name))
125
      {
126
        return result;
127
      }
128
    }
129
    return null;
130
  }
131
132
  /**
133
   * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified integer value. <!-- begin-user-doc -->
134
   * <!-- end-user-doc -->
135
   * 
136
   * @generated
137
   */
138
  public static ParameterPassing get(int value)
139
  {
140
    switch (value)
141
    {
142
    case BY_VALUE_VALUE:
143
      return BY_VALUE;
144
    case BY_REFERENCE_VALUE:
145
      return BY_REFERENCE;
146
    }
147
    return null;
148
  }
149
150
  /**
151
   * <!-- begin-user-doc --> <!-- end-user-doc -->
152
   * 
153
   * @generated
154
   */
155
  private final int value;
156
157
  /**
158
   * <!-- begin-user-doc --> <!-- end-user-doc -->
159
   * 
160
   * @generated
161
   */
162
  private final String name;
163
164
  /**
165
   * <!-- begin-user-doc --> <!-- end-user-doc -->
166
   * 
167
   * @generated
168
   */
169
  private final String literal;
170
171
  /**
172
   * Only this class can construct instances. <!-- begin-user-doc --> <!-- end-user-doc -->
173
   * 
174
   * @generated
175
   */
176
  private ParameterPassing(int value, String name, String literal)
177
  {
178
    this.value = value;
179
    this.name = name;
180
    this.literal = literal;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc --> <!-- end-user-doc -->
185
   * 
186
   * @generated
187
   */
188
  public int getValue()
189
  {
190
    return value;
191
  }
192
193
  /**
194
   * <!-- begin-user-doc --> <!-- end-user-doc -->
195
   * 
196
   * @generated
197
   */
198
  public String getName()
199
  {
200
    return name;
201
  }
202
203
  /**
204
   * <!-- begin-user-doc --> <!-- end-user-doc -->
205
   * 
206
   * @generated
207
   */
208
  public String getLiteral()
209
  {
210
    return literal;
211
  }
212
213
  /**
214
   * Returns the literal value of the enumerator, which is its string representation. <!-- begin-user-doc --> <!--
215
   * end-user-doc -->
216
   * 
217
   * @generated
218
   */
219
  @Override
220
  public String toString()
221
  {
222
    return literal;
223
  }
224
225
} // ParameterPassing
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/Parameter.java (-89 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Parameter.java,v 1.2 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango;
14
15
import org.eclipse.emf.ecore.EObject;
16
17
/**
18
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Parameter</b></em>'. <!-- end-user-doc -->
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.Parameter#getName <em>Name</em>}</li>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.Parameter#getPassing <em>Passing</em>}</li>
24
 * </ul>
25
 * </p>
26
 * 
27
 * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getParameter()
28
 * @model
29
 * @generated
30
 */
31
public interface Parameter extends EObject
32
{
33
  /**
34
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
35
   * <p>
36
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
37
   * </p>
38
   * <!-- end-user-doc -->
39
   * 
40
   * @return the value of the '<em>Name</em>' attribute.
41
   * @see #setName(String)
42
   * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getParameter_Name()
43
   * @model
44
   * @generated
45
   */
46
  String getName();
47
48
  /**
49
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.mango.Parameter#getName <em>Name</em>}' attribute.
50
   * <!-- begin-user-doc --> <!-- end-user-doc -->
51
   * 
52
   * @param value
53
   *          the new value of the '<em>Name</em>' attribute.
54
   * @see #getName()
55
   * @generated
56
   */
57
  void setName(String value);
58
59
  /**
60
   * Returns the value of the '<em><b>Passing</b></em>' attribute. The literals are from the enumeration
61
   * {@link org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing}. <!-- begin-user-doc -->
62
   * <p>
63
   * If the meaning of the '<em>Passing</em>' attribute isn't clear, there really should be more of a description
64
   * here...
65
   * </p>
66
   * <!-- end-user-doc -->
67
   * 
68
   * @return the value of the '<em>Passing</em>' attribute.
69
   * @see org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing
70
   * @see #setPassing(ParameterPassing)
71
   * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getParameter_Passing()
72
   * @model
73
   * @generated
74
   */
75
  ParameterPassing getPassing();
76
77
  /**
78
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.mango.Parameter#getPassing <em>Passing</em>}'
79
   * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
80
   * 
81
   * @param value
82
   *          the new value of the '<em>Passing</em>' attribute.
83
   * @see org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing
84
   * @see #getPassing()
85
   * @generated
86
   */
87
  void setPassing(ParameterPassing value);
88
89
} // Parameter
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/Value.java (-58 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Value.java,v 1.2 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango;
14
15
import org.eclipse.emf.ecore.EObject;
16
17
/**
18
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Value</b></em>'. <!-- end-user-doc -->
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.Value#getName <em>Name</em>}</li>
23
 * </ul>
24
 * </p>
25
 * 
26
 * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getValue()
27
 * @model
28
 * @generated
29
 */
30
public interface Value extends EObject
31
{
32
  /**
33
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
34
   * <p>
35
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
36
   * </p>
37
   * <!-- end-user-doc -->
38
   * 
39
   * @return the value of the '<em>Name</em>' attribute.
40
   * @see #setName(String)
41
   * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getValue_Name()
42
   * @model
43
   * @generated
44
   */
45
  String getName();
46
47
  /**
48
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.mango.Value#getName <em>Name</em>}' attribute. <!--
49
   * begin-user-doc --> <!-- end-user-doc -->
50
   * 
51
   * @param value
52
   *          the new value of the '<em>Name</em>' attribute.
53
   * @see #getName()
54
   * @generated
55
   */
56
  void setName(String value);
57
58
} // Value
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/MangoPackage.java (-368 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: MangoPackage.java,v 1.5 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango;
14
15
import org.eclipse.emf.ecore.EAttribute;
16
import org.eclipse.emf.ecore.EClass;
17
import org.eclipse.emf.ecore.EEnum;
18
import org.eclipse.emf.ecore.EPackage;
19
import org.eclipse.emf.ecore.EReference;
20
21
/**
22
 * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent
23
 * <ul>
24
 * <li>each class,</li>
25
 * <li>each feature of each class,</li>
26
 * <li>each enum,</li>
27
 * <li>and each data type</li>
28
 * </ul>
29
 * <!-- end-user-doc -->
30
 * 
31
 * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoFactory
32
 * @model kind="package"
33
 * @generated
34
 */
35
public interface MangoPackage extends EPackage
36
{
37
  /**
38
   * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->
39
   * 
40
   * @generated
41
   */
42
  String eNAME = "mango";
43
44
  /**
45
   * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->
46
   * 
47
   * @generated
48
   */
49
  String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/mango";
50
51
  /**
52
   * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->
53
   * 
54
   * @generated
55
   */
56
  String eNS_PREFIX = "mango";
57
58
  /**
59
   * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->
60
   * 
61
   * @generated
62
   */
63
  MangoPackage eINSTANCE = org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl.init();
64
65
  /**
66
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueListImpl <em>Value List</em>}'
67
   * class. <!-- begin-user-doc --> <!-- end-user-doc -->
68
   * 
69
   * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueListImpl
70
   * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl#getValueList()
71
   * @generated
72
   */
73
  int VALUE_LIST = 0;
74
75
  /**
76
   * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
77
   * 
78
   * @generated
79
   * @ordered
80
   */
81
  int VALUE_LIST__NAME = 0;
82
83
  /**
84
   * The feature id for the '<em><b>Values</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
85
   * 
86
   * @generated
87
   * @ordered
88
   */
89
  int VALUE_LIST__VALUES = 1;
90
91
  /**
92
   * The number of structural features of the '<em>Value List</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
93
   * 
94
   * @generated
95
   * @ordered
96
   */
97
  int VALUE_LIST_FEATURE_COUNT = 2;
98
99
  /**
100
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueImpl <em>Value</em>}' class.
101
   * <!-- begin-user-doc --> <!-- end-user-doc -->
102
   * 
103
   * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueImpl
104
   * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl#getValue()
105
   * @generated
106
   */
107
  int VALUE = 1;
108
109
  /**
110
   * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
111
   * 
112
   * @generated
113
   * @ordered
114
   */
115
  int VALUE__NAME = 0;
116
117
  /**
118
   * The number of structural features of the '<em>Value</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
119
   * 
120
   * @generated
121
   * @ordered
122
   */
123
  int VALUE_FEATURE_COUNT = 1;
124
125
  /**
126
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ParameterImpl <em>Parameter</em>}'
127
   * class. <!-- begin-user-doc --> <!-- end-user-doc -->
128
   * 
129
   * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.ParameterImpl
130
   * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl#getParameter()
131
   * @generated
132
   */
133
  int PARAMETER = 2;
134
135
  /**
136
   * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
137
   * 
138
   * @generated
139
   * @ordered
140
   */
141
  int PARAMETER__NAME = 0;
142
143
  /**
144
   * The feature id for the '<em><b>Passing</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
145
   * 
146
   * @generated
147
   * @ordered
148
   */
149
  int PARAMETER__PASSING = 1;
150
151
  /**
152
   * The number of structural features of the '<em>Parameter</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
153
   * 
154
   * @generated
155
   * @ordered
156
   */
157
  int PARAMETER_FEATURE_COUNT = 2;
158
159
  /**
160
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing
161
   * <em>Parameter Passing</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->
162
   * 
163
   * @see org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing
164
   * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl#getParameterPassing()
165
   * @generated
166
   */
167
  int PARAMETER_PASSING = 3;
168
169
  /**
170
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.mango.ValueList <em>Value List</em>}'.
171
   * <!-- begin-user-doc --> <!-- end-user-doc -->
172
   * 
173
   * @return the meta object for class '<em>Value List</em>'.
174
   * @see org.eclipse.emf.cdo.tests.legacy.mango.ValueList
175
   * @generated
176
   */
177
  EClass getValueList();
178
179
  /**
180
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.mango.ValueList#getName
181
   * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
182
   * 
183
   * @return the meta object for the attribute '<em>Name</em>'.
184
   * @see org.eclipse.emf.cdo.tests.legacy.mango.ValueList#getName()
185
   * @see #getValueList()
186
   * @generated
187
   */
188
  EAttribute getValueList_Name();
189
190
  /**
191
   * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.legacy.mango.ValueList#getValues
192
   * <em>Values</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
193
   * 
194
   * @return the meta object for the reference list '<em>Values</em>'.
195
   * @see org.eclipse.emf.cdo.tests.legacy.mango.ValueList#getValues()
196
   * @see #getValueList()
197
   * @generated
198
   */
199
  EReference getValueList_Values();
200
201
  /**
202
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.mango.Value <em>Value</em>}'. <!--
203
   * begin-user-doc --> <!-- end-user-doc -->
204
   * 
205
   * @return the meta object for class '<em>Value</em>'.
206
   * @see org.eclipse.emf.cdo.tests.legacy.mango.Value
207
   * @generated
208
   */
209
  EClass getValue();
210
211
  /**
212
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.mango.Value#getName
213
   * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
214
   * 
215
   * @return the meta object for the attribute '<em>Name</em>'.
216
   * @see org.eclipse.emf.cdo.tests.legacy.mango.Value#getName()
217
   * @see #getValue()
218
   * @generated
219
   */
220
  EAttribute getValue_Name();
221
222
  /**
223
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.mango.Parameter <em>Parameter</em>}'.
224
   * <!-- begin-user-doc --> <!-- end-user-doc -->
225
   * 
226
   * @return the meta object for class '<em>Parameter</em>'.
227
   * @see org.eclipse.emf.cdo.tests.legacy.mango.Parameter
228
   * @generated
229
   */
230
  EClass getParameter();
231
232
  /**
233
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.mango.Parameter#getName
234
   * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
235
   * 
236
   * @return the meta object for the attribute '<em>Name</em>'.
237
   * @see org.eclipse.emf.cdo.tests.legacy.mango.Parameter#getName()
238
   * @see #getParameter()
239
   * @generated
240
   */
241
  EAttribute getParameter_Name();
242
243
  /**
244
   * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.mango.Parameter#getPassing
245
   * <em>Passing</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
246
   * 
247
   * @return the meta object for the attribute '<em>Passing</em>'.
248
   * @see org.eclipse.emf.cdo.tests.legacy.mango.Parameter#getPassing()
249
   * @see #getParameter()
250
   * @generated
251
   */
252
  EAttribute getParameter_Passing();
253
254
  /**
255
   * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing
256
   * <em>Parameter Passing</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
257
   * 
258
   * @return the meta object for enum '<em>Parameter Passing</em>'.
259
   * @see org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing
260
   * @generated
261
   */
262
  EEnum getParameterPassing();
263
264
  /**
265
   * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc -->
266
   * 
267
   * @return the factory that creates the instances of the model.
268
   * @generated
269
   */
270
  MangoFactory getMangoFactory();
271
272
  /**
273
   * <!-- begin-user-doc --> Defines literals for the meta objects that represent
274
   * <ul>
275
   * <li>each class,</li>
276
   * <li>each feature of each class,</li>
277
   * <li>each enum,</li>
278
   * <li>and each data type</li>
279
   * </ul>
280
   * <!-- end-user-doc -->
281
   * 
282
   * @generated
283
   */
284
  interface Literals
285
  {
286
    /**
287
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueListImpl
288
     * <em>Value List</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
289
     * 
290
     * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueListImpl
291
     * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl#getValueList()
292
     * @generated
293
     */
294
    EClass VALUE_LIST = eINSTANCE.getValueList();
295
296
    /**
297
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
298
     * end-user-doc -->
299
     * 
300
     * @generated
301
     */
302
    EAttribute VALUE_LIST__NAME = eINSTANCE.getValueList_Name();
303
304
    /**
305
     * The meta object literal for the '<em><b>Values</b></em>' reference list feature. <!-- begin-user-doc --> <!--
306
     * end-user-doc -->
307
     * 
308
     * @generated
309
     */
310
    EReference VALUE_LIST__VALUES = eINSTANCE.getValueList_Values();
311
312
    /**
313
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueImpl <em>Value</em>}'
314
     * class. <!-- begin-user-doc --> <!-- end-user-doc -->
315
     * 
316
     * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueImpl
317
     * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl#getValue()
318
     * @generated
319
     */
320
    EClass VALUE = eINSTANCE.getValue();
321
322
    /**
323
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
324
     * end-user-doc -->
325
     * 
326
     * @generated
327
     */
328
    EAttribute VALUE__NAME = eINSTANCE.getValue_Name();
329
330
    /**
331
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ParameterImpl
332
     * <em>Parameter</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
333
     * 
334
     * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.ParameterImpl
335
     * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl#getParameter()
336
     * @generated
337
     */
338
    EClass PARAMETER = eINSTANCE.getParameter();
339
340
    /**
341
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
342
     * end-user-doc -->
343
     * 
344
     * @generated
345
     */
346
    EAttribute PARAMETER__NAME = eINSTANCE.getParameter_Name();
347
348
    /**
349
     * The meta object literal for the '<em><b>Passing</b></em>' attribute feature. <!-- begin-user-doc --> <!--
350
     * end-user-doc -->
351
     * 
352
     * @generated
353
     */
354
    EAttribute PARAMETER__PASSING = eINSTANCE.getParameter_Passing();
355
356
    /**
357
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing
358
     * <em>Parameter Passing</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->
359
     * 
360
     * @see org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing
361
     * @see org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl#getParameterPassing()
362
     * @generated
363
     */
364
    EEnum PARAMETER_PASSING = eINSTANCE.getParameterPassing();
365
366
  }
367
368
} // MangoPackage
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/MangoFactory.java (-65 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: MangoFactory.java,v 1.5 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango;
14
15
import org.eclipse.emf.ecore.EFactory;
16
17
/**
18
 * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
19
 * the model. <!-- end-user-doc -->
20
 * 
21
 * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage
22
 * @generated
23
 */
24
public interface MangoFactory extends EFactory
25
{
26
  /**
27
   * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
28
   * 
29
   * @generated
30
   */
31
  MangoFactory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoFactoryImpl.init();
32
33
  /**
34
   * Returns a new object of class '<em>Value List</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
35
   * 
36
   * @return a new object of class '<em>Value List</em>'.
37
   * @generated
38
   */
39
  ValueList createValueList();
40
41
  /**
42
   * Returns a new object of class '<em>Value</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
43
   * 
44
   * @return a new object of class '<em>Value</em>'.
45
   * @generated
46
   */
47
  Value createValue();
48
49
  /**
50
   * Returns a new object of class '<em>Parameter</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
51
   * 
52
   * @return a new object of class '<em>Parameter</em>'.
53
   * @generated
54
   */
55
  Parameter createParameter();
56
57
  /**
58
   * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
59
   * 
60
   * @return the package supported by this factory.
61
   * @generated
62
   */
63
  MangoPackage getMangoPackage();
64
65
} // MangoFactory
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/ValueList.java (-76 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: ValueList.java,v 1.2 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango;
14
15
import org.eclipse.emf.common.util.EList;
16
import org.eclipse.emf.ecore.EObject;
17
18
/**
19
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Value List</b></em>'. <!-- end-user-doc -->
20
 * <p>
21
 * The following features are supported:
22
 * <ul>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.ValueList#getName <em>Name</em>}</li>
24
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.ValueList#getValues <em>Values</em>}</li>
25
 * </ul>
26
 * </p>
27
 * 
28
 * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getValueList()
29
 * @model
30
 * @generated
31
 */
32
public interface ValueList extends EObject
33
{
34
  /**
35
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
36
   * <p>
37
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
38
   * </p>
39
   * <!-- end-user-doc -->
40
   * 
41
   * @return the value of the '<em>Name</em>' attribute.
42
   * @see #setName(String)
43
   * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getValueList_Name()
44
   * @model
45
   * @generated
46
   */
47
  String getName();
48
49
  /**
50
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.mango.ValueList#getName <em>Name</em>}' attribute.
51
   * <!-- begin-user-doc --> <!-- end-user-doc -->
52
   * 
53
   * @param value
54
   *          the new value of the '<em>Name</em>' attribute.
55
   * @see #getName()
56
   * @generated
57
   */
58
  void setName(String value);
59
60
  /**
61
   * Returns the value of the '<em><b>Values</b></em>' reference list. The list contents are of type
62
   * {@link org.eclipse.emf.cdo.tests.legacy.mango.Value}. <!-- begin-user-doc -->
63
   * <p>
64
   * If the meaning of the '<em>Values</em>' reference list isn't clear, there really should be more of a description
65
   * here...
66
   * </p>
67
   * <!-- end-user-doc -->
68
   * 
69
   * @return the value of the '<em>Values</em>' reference list.
70
   * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#getValueList_Values()
71
   * @model
72
   * @generated
73
   */
74
  EList<Value> getValues();
75
76
} // ValueList
(-)src/org/eclipse/emf/cdo/tests/mango/impl/MangoPackageImpl.java (-86 / +83 lines)
Lines 12-21 Link Here
12
12
13
import org.eclipse.emf.cdo.tests.mango.MangoFactory;
13
import org.eclipse.emf.cdo.tests.mango.MangoFactory;
14
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
15
import org.eclipse.emf.cdo.tests.mango.Parameter;
15
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
16
import org.eclipse.emf.cdo.tests.mango.MangoValue;
17
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
16
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
18
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
17
import org.eclipse.emf.cdo.tests.mango.Value;
18
import org.eclipse.emf.cdo.tests.mango.ValueList;
19
19
20
import org.eclipse.emf.ecore.EAttribute;
20
import org.eclipse.emf.ecore.EAttribute;
21
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EClass;
Lines 26-60 Link Here
26
26
27
/**
27
/**
28
 * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
28
 * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
29
 * 
30
 * @generated
29
 * @generated
31
 */
30
 */
32
public class MangoPackageImpl extends EPackageImpl implements MangoPackage
31
public class MangoPackageImpl extends EPackageImpl implements MangoPackage
33
{
32
{
34
  /**
33
  /**
35
   * <!-- begin-user-doc --> <!-- end-user-doc -->
34
   * <!-- begin-user-doc -->
36
   * 
35
   * <!-- end-user-doc -->
37
   * @generated
36
   * @generated
38
   */
37
   */
39
  private EClass valueListEClass = null;
38
  private EClass mangoValueListEClass = null;
40
39
41
  /**
40
  /**
42
   * <!-- begin-user-doc --> <!-- end-user-doc -->
41
   * <!-- begin-user-doc -->
43
   * 
42
   * <!-- end-user-doc -->
44
   * @generated
43
   * @generated
45
   */
44
   */
46
  private EClass valueEClass = null;
45
  private EClass mangoValueEClass = null;
47
46
48
  /**
47
  /**
49
   * <!-- begin-user-doc --> <!-- end-user-doc -->
48
   * <!-- begin-user-doc -->
50
   * 
49
   * <!-- end-user-doc -->
51
   * @generated
50
   * @generated
52
   */
51
   */
53
  private EClass parameterEClass = null;
52
  private EClass mangoParameterEClass = null;
54
53
55
  /**
54
  /**
56
   * <!-- begin-user-doc --> <!-- end-user-doc -->
55
   * <!-- begin-user-doc --> <!-- end-user-doc -->
57
   * 
58
   * @generated
56
   * @generated
59
   */
57
   */
60
  private EEnum parameterPassingEEnum = null;
58
  private EEnum parameterPassingEEnum = null;
Lines 79-96 Link Here
79
77
80
  /**
78
  /**
81
   * <!-- begin-user-doc --> <!-- end-user-doc -->
79
   * <!-- begin-user-doc --> <!-- end-user-doc -->
82
   * 
83
   * @generated
80
   * @generated
84
   */
81
   */
85
  private static boolean isInited = false;
82
  private static boolean isInited = false;
86
83
87
  /**
84
  /**
88
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
85
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
89
   * <p>
90
   * This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed. Clients should not
91
   * invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * 
86
   * 
87
   * <p>This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed.
88
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
89
   * <!-- begin-user-doc -->
90
   * <!-- end-user-doc -->
94
   * @see #eNS_URI
91
   * @see #eNS_URI
95
   * @see #createPackageContents()
92
   * @see #createPackageContents()
96
   * @see #initializePackageContents()
93
   * @see #initializePackageContents()
Lines 123-210 Link Here
123
  }
120
  }
124
121
125
  /**
122
  /**
126
   * <!-- begin-user-doc --> <!-- end-user-doc -->
123
   * <!-- begin-user-doc -->
127
   * 
124
   * <!-- end-user-doc -->
128
   * @generated
125
   * @generated
129
   */
126
   */
130
  public EClass getValueList()
127
  public EClass getMangoValueList()
131
  {
128
  {
132
    return valueListEClass;
129
    return mangoValueListEClass;
133
  }
130
  }
134
131
135
  /**
132
  /**
136
   * <!-- begin-user-doc --> <!-- end-user-doc -->
133
   * <!-- begin-user-doc -->
137
   * 
134
   * <!-- end-user-doc -->
138
   * @generated
135
   * @generated
139
   */
136
   */
140
  public EAttribute getValueList_Name()
137
  public EAttribute getMangoValueList_Name()
141
  {
138
  {
142
    return (EAttribute)valueListEClass.getEStructuralFeatures().get(0);
139
    return (EAttribute)mangoValueListEClass.getEStructuralFeatures().get(0);
143
  }
140
  }
144
141
145
  /**
142
  /**
146
   * <!-- begin-user-doc --> <!-- end-user-doc -->
143
   * <!-- begin-user-doc -->
147
   * 
144
   * <!-- end-user-doc -->
148
   * @generated
145
   * @generated
149
   */
146
   */
150
  public EReference getValueList_Values()
147
  public EReference getMangoValueList_Values()
151
  {
148
  {
152
    return (EReference)valueListEClass.getEStructuralFeatures().get(1);
149
    return (EReference)mangoValueListEClass.getEStructuralFeatures().get(1);
153
  }
150
  }
154
151
155
  /**
152
  /**
156
   * <!-- begin-user-doc --> <!-- end-user-doc -->
153
   * <!-- begin-user-doc -->
157
   * 
154
   * <!-- end-user-doc -->
158
   * @generated
155
   * @generated
159
   */
156
   */
160
  public EClass getValue()
157
  public EClass getMangoValue()
161
  {
158
  {
162
    return valueEClass;
159
    return mangoValueEClass;
163
  }
160
  }
164
161
165
  /**
162
  /**
166
   * <!-- begin-user-doc --> <!-- end-user-doc -->
163
   * <!-- begin-user-doc -->
167
   * 
164
   * <!-- end-user-doc -->
168
   * @generated
165
   * @generated
169
   */
166
   */
170
  public EAttribute getValue_Name()
167
  public EAttribute getMangoValue_Name()
171
  {
168
  {
172
    return (EAttribute)valueEClass.getEStructuralFeatures().get(0);
169
    return (EAttribute)mangoValueEClass.getEStructuralFeatures().get(0);
173
  }
170
  }
174
171
175
  /**
172
  /**
176
   * <!-- begin-user-doc --> <!-- end-user-doc -->
173
   * <!-- begin-user-doc -->
177
   * 
174
   * <!-- end-user-doc -->
178
   * @generated
175
   * @generated
179
   */
176
   */
180
  public EClass getParameter()
177
  public EClass getMangoParameter()
181
  {
178
  {
182
    return parameterEClass;
179
    return mangoParameterEClass;
183
  }
180
  }
184
181
185
  /**
182
  /**
186
   * <!-- begin-user-doc --> <!-- end-user-doc -->
183
   * <!-- begin-user-doc -->
187
   * 
184
   * <!-- end-user-doc -->
188
   * @generated
185
   * @generated
189
   */
186
   */
190
  public EAttribute getParameter_Name()
187
  public EAttribute getMangoParameter_Name()
191
  {
188
  {
192
    return (EAttribute)parameterEClass.getEStructuralFeatures().get(0);
189
    return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(0);
193
  }
190
  }
194
191
195
  /**
192
  /**
196
   * <!-- begin-user-doc --> <!-- end-user-doc -->
193
   * <!-- begin-user-doc -->
197
   * 
194
   * <!-- end-user-doc -->
198
   * @generated
195
   * @generated
199
   */
196
   */
200
  public EAttribute getParameter_Passing()
197
  public EAttribute getMangoParameter_Passing()
201
  {
198
  {
202
    return (EAttribute)parameterEClass.getEStructuralFeatures().get(1);
199
    return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(1);
203
  }
200
  }
204
201
205
  /**
202
  /**
206
   * <!-- begin-user-doc --> <!-- end-user-doc -->
203
   * <!-- begin-user-doc --> <!-- end-user-doc -->
207
   * 
208
   * @generated
204
   * @generated
209
   */
205
   */
210
  public EEnum getParameterPassing()
206
  public EEnum getParameterPassing()
Lines 214-220 Link Here
214
210
215
  /**
211
  /**
216
   * <!-- begin-user-doc --> <!-- end-user-doc -->
212
   * <!-- begin-user-doc --> <!-- end-user-doc -->
217
   * 
218
   * @generated
213
   * @generated
219
   */
214
   */
220
  public MangoFactory getMangoFactory()
215
  public MangoFactory getMangoFactory()
Lines 224-238 Link Here
224
219
225
  /**
220
  /**
226
   * <!-- begin-user-doc --> <!-- end-user-doc -->
221
   * <!-- begin-user-doc --> <!-- end-user-doc -->
227
   * 
228
   * @generated
222
   * @generated
229
   */
223
   */
230
  private boolean isCreated = false;
224
  private boolean isCreated = false;
231
225
232
  /**
226
  /**
233
   * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its
227
   * Creates the meta-model objects for the package.  This method is
234
   * first. <!-- begin-user-doc --> <!-- end-user-doc -->
228
   * guarded to have no affect on any invocation but its first.
235
   * 
229
   * <!-- begin-user-doc --> <!-- end-user-doc -->
236
   * @generated
230
   * @generated
237
   */
231
   */
238
  public void createPackageContents()
232
  public void createPackageContents()
Lines 242-257 Link Here
242
    isCreated = true;
236
    isCreated = true;
243
237
244
    // Create classes and their features
238
    // Create classes and their features
245
    valueListEClass = createEClass(VALUE_LIST);
239
    mangoValueListEClass = createEClass(MANGO_VALUE_LIST);
246
    createEAttribute(valueListEClass, VALUE_LIST__NAME);
240
    createEAttribute(mangoValueListEClass, MANGO_VALUE_LIST__NAME);
247
    createEReference(valueListEClass, VALUE_LIST__VALUES);
241
    createEReference(mangoValueListEClass, MANGO_VALUE_LIST__VALUES);
248
242
249
    valueEClass = createEClass(VALUE);
243
    mangoValueEClass = createEClass(MANGO_VALUE);
250
    createEAttribute(valueEClass, VALUE__NAME);
244
    createEAttribute(mangoValueEClass, MANGO_VALUE__NAME);
251
245
252
    parameterEClass = createEClass(PARAMETER);
246
    mangoParameterEClass = createEClass(MANGO_PARAMETER);
253
    createEAttribute(parameterEClass, PARAMETER__NAME);
247
    createEAttribute(mangoParameterEClass, MANGO_PARAMETER__NAME);
254
    createEAttribute(parameterEClass, PARAMETER__PASSING);
248
    createEAttribute(mangoParameterEClass, MANGO_PARAMETER__PASSING);
255
249
256
    // Create enums
250
    // Create enums
257
    parameterPassingEEnum = createEEnum(PARAMETER_PASSING);
251
    parameterPassingEEnum = createEEnum(PARAMETER_PASSING);
Lines 259-273 Link Here
259
253
260
  /**
254
  /**
261
   * <!-- begin-user-doc --> <!-- end-user-doc -->
255
   * <!-- begin-user-doc --> <!-- end-user-doc -->
262
   * 
263
   * @generated
256
   * @generated
264
   */
257
   */
265
  private boolean isInitialized = false;
258
  private boolean isInitialized = false;
266
259
267
  /**
260
  /**
268
   * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any
261
   * Complete the initialization of the package and its meta-model.  This
269
   * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
262
   * method is guarded to have no affect on any invocation but its first.
270
   * 
263
   * <!-- begin-user-doc --> <!-- end-user-doc -->
271
   * @generated
264
   * @generated
272
   */
265
   */
273
  public void initializePackageContents()
266
  public void initializePackageContents()
Lines 288-309 Link Here
288
    // Add supertypes to classes
281
    // Add supertypes to classes
289
282
290
    // Initialize classes and features; add operations and parameters
283
    // Initialize classes and features; add operations and parameters
291
    initEClass(valueListEClass, ValueList.class, "ValueList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
284
    initEClass(mangoValueListEClass, MangoValueList.class, "MangoValueList", !IS_ABSTRACT, !IS_INTERFACE,
292
    initEAttribute(getValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, ValueList.class, !IS_TRANSIENT,
285
        IS_GENERATED_INSTANCE_CLASS);
293
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
286
    initEAttribute(getMangoValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValueList.class,
294
    initEReference(getValueList_Values(), this.getValue(), null, "values", null, 0, -1, ValueList.class, !IS_TRANSIENT,
287
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
295
        !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
288
    initEReference(getMangoValueList_Values(), this.getMangoValue(), null, "values", null, 0, -1, MangoValueList.class,
296
        IS_ORDERED);
289
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
297
290
        !IS_DERIVED, IS_ORDERED);
298
    initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
291
299
    initEAttribute(getValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, Value.class, !IS_TRANSIENT,
292
    initEClass(mangoValueEClass, MangoValue.class, "MangoValue", !IS_ABSTRACT, !IS_INTERFACE,
300
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
293
        IS_GENERATED_INSTANCE_CLASS);
301
294
    initEAttribute(getMangoValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValue.class,
302
    initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
295
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
303
    initEAttribute(getParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Parameter.class, !IS_TRANSIENT,
296
304
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
297
    initEClass(mangoParameterEClass, MangoParameter.class, "MangoParameter", !IS_ABSTRACT, !IS_INTERFACE,
305
    initEAttribute(getParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1, Parameter.class,
298
        IS_GENERATED_INSTANCE_CLASS);
299
    initEAttribute(getMangoParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoParameter.class,
306
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
300
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
301
    initEAttribute(getMangoParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1,
302
        MangoParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
303
        !IS_DERIVED, IS_ORDERED);
307
304
308
    // Initialize enums and add enum literals
305
    // Initialize enums and add enum literals
309
    initEEnum(parameterPassingEEnum, ParameterPassing.class, "ParameterPassing");
306
    initEEnum(parameterPassingEEnum, ParameterPassing.class, "ParameterPassing");
(-)src/org/eclipse/emf/cdo/tests/mango/impl/ValueListImpl.java (-99 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango.impl;
12
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.Value;
15
import org.eclipse.emf.cdo.tests.mango.ValueList;
16
17
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
18
19
import org.eclipse.emf.common.util.EList;
20
import org.eclipse.emf.ecore.EClass;
21
22
/**
23
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Value List</b></em>'. <!-- end-user-doc -->
24
 * <p>
25
 * The following features are implemented:
26
 * <ul>
27
 * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl#getName <em>Name</em>}</li>
28
 * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl#getValues <em>Values</em>}</li>
29
 * </ul>
30
 * </p>
31
 * 
32
 * @generated
33
 */
34
public class ValueListImpl extends CDOObjectImpl implements ValueList
35
{
36
  /**
37
   * <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * 
39
   * @generated
40
   */
41
  protected ValueListImpl()
42
  {
43
    super();
44
  }
45
46
  /**
47
   * <!-- begin-user-doc --> <!-- end-user-doc -->
48
   * 
49
   * @generated
50
   */
51
  @Override
52
  protected EClass eStaticClass()
53
  {
54
    return MangoPackage.Literals.VALUE_LIST;
55
  }
56
57
  /**
58
   * <!-- begin-user-doc --> <!-- end-user-doc -->
59
   * 
60
   * @generated
61
   */
62
  @Override
63
  protected int eStaticFeatureCount()
64
  {
65
    return 0;
66
  }
67
68
  /**
69
   * <!-- begin-user-doc --> <!-- end-user-doc -->
70
   * 
71
   * @generated
72
   */
73
  public String getName()
74
  {
75
    return (String)eGet(MangoPackage.Literals.VALUE_LIST__NAME, true);
76
  }
77
78
  /**
79
   * <!-- begin-user-doc --> <!-- end-user-doc -->
80
   * 
81
   * @generated
82
   */
83
  public void setName(String newName)
84
  {
85
    eSet(MangoPackage.Literals.VALUE_LIST__NAME, newName);
86
  }
87
88
  /**
89
   * <!-- begin-user-doc --> <!-- end-user-doc -->
90
   * 
91
   * @generated
92
   */
93
  @SuppressWarnings("unchecked")
94
  public EList<Value> getValues()
95
  {
96
    return (EList<Value>)eGet(MangoPackage.Literals.VALUE_LIST__VALUES, true);
97
  }
98
99
} // ValueListImpl
(-)src/org/eclipse/emf/cdo/tests/mango/impl/ParameterImpl.java (-107 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango.impl;
12
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.Parameter;
15
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
16
17
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
18
19
import org.eclipse.emf.ecore.EClass;
20
21
/**
22
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Parameter</b></em>'. <!-- end-user-doc -->
23
 * <p>
24
 * The following features are implemented:
25
 * <ul>
26
 * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl#getName <em>Name</em>}</li>
27
 * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl#getPassing <em>Passing</em>}</li>
28
 * </ul>
29
 * </p>
30
 * 
31
 * @generated
32
 */
33
public class ParameterImpl extends CDOObjectImpl implements Parameter
34
{
35
  /**
36
   * <!-- begin-user-doc --> <!-- end-user-doc -->
37
   * 
38
   * @generated
39
   */
40
  protected ParameterImpl()
41
  {
42
    super();
43
  }
44
45
  /**
46
   * <!-- begin-user-doc --> <!-- end-user-doc -->
47
   * 
48
   * @generated
49
   */
50
  @Override
51
  protected EClass eStaticClass()
52
  {
53
    return MangoPackage.Literals.PARAMETER;
54
  }
55
56
  /**
57
   * <!-- begin-user-doc --> <!-- end-user-doc -->
58
   * 
59
   * @generated
60
   */
61
  @Override
62
  protected int eStaticFeatureCount()
63
  {
64
    return 0;
65
  }
66
67
  /**
68
   * <!-- begin-user-doc --> <!-- end-user-doc -->
69
   * 
70
   * @generated
71
   */
72
  public String getName()
73
  {
74
    return (String)eGet(MangoPackage.Literals.PARAMETER__NAME, true);
75
  }
76
77
  /**
78
   * <!-- begin-user-doc --> <!-- end-user-doc -->
79
   * 
80
   * @generated
81
   */
82
  public void setName(String newName)
83
  {
84
    eSet(MangoPackage.Literals.PARAMETER__NAME, newName);
85
  }
86
87
  /**
88
   * <!-- begin-user-doc --> <!-- end-user-doc -->
89
   * 
90
   * @generated
91
   */
92
  public ParameterPassing getPassing()
93
  {
94
    return (ParameterPassing)eGet(MangoPackage.Literals.PARAMETER__PASSING, true);
95
  }
96
97
  /**
98
   * <!-- begin-user-doc --> <!-- end-user-doc -->
99
   * 
100
   * @generated
101
   */
102
  public void setPassing(ParameterPassing newPassing)
103
  {
104
    eSet(MangoPackage.Literals.PARAMETER__PASSING, newPassing);
105
  }
106
107
} // ParameterImpl
(-)src/org/eclipse/emf/cdo/tests/mango/impl/ValueImpl.java (-85 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango.impl;
12
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.Value;
15
16
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
17
18
import org.eclipse.emf.ecore.EClass;
19
20
/**
21
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Value</b></em>'. <!-- end-user-doc -->
22
 * <p>
23
 * The following features are implemented:
24
 * <ul>
25
 * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueImpl#getName <em>Name</em>}</li>
26
 * </ul>
27
 * </p>
28
 * 
29
 * @generated
30
 */
31
public class ValueImpl extends CDOObjectImpl implements Value
32
{
33
  /**
34
   * <!-- begin-user-doc --> <!-- end-user-doc -->
35
   * 
36
   * @generated
37
   */
38
  protected ValueImpl()
39
  {
40
    super();
41
  }
42
43
  /**
44
   * <!-- begin-user-doc --> <!-- end-user-doc -->
45
   * 
46
   * @generated
47
   */
48
  @Override
49
  protected EClass eStaticClass()
50
  {
51
    return MangoPackage.Literals.VALUE;
52
  }
53
54
  /**
55
   * <!-- begin-user-doc --> <!-- end-user-doc -->
56
   * 
57
   * @generated
58
   */
59
  @Override
60
  protected int eStaticFeatureCount()
61
  {
62
    return 0;
63
  }
64
65
  /**
66
   * <!-- begin-user-doc --> <!-- end-user-doc -->
67
   * 
68
   * @generated
69
   */
70
  public String getName()
71
  {
72
    return (String)eGet(MangoPackage.Literals.VALUE__NAME, true);
73
  }
74
75
  /**
76
   * <!-- begin-user-doc --> <!-- end-user-doc -->
77
   * 
78
   * @generated
79
   */
80
  public void setName(String newName)
81
  {
82
    eSet(MangoPackage.Literals.VALUE__NAME, newName);
83
  }
84
85
} // ValueImpl
(-)src/org/eclipse/emf/cdo/tests/mango/impl/MangoFactoryImpl.java (-36 / +28 lines)
Lines 12-21 Link Here
12
12
13
import org.eclipse.emf.cdo.tests.mango.MangoFactory;
13
import org.eclipse.emf.cdo.tests.mango.MangoFactory;
14
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
15
import org.eclipse.emf.cdo.tests.mango.Parameter;
15
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
16
import org.eclipse.emf.cdo.tests.mango.MangoValue;
17
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
16
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
18
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
17
import org.eclipse.emf.cdo.tests.mango.Value;
18
import org.eclipse.emf.cdo.tests.mango.ValueList;
19
19
20
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EDataType;
21
import org.eclipse.emf.ecore.EDataType;
Lines 26-39 Link Here
26
26
27
/**
27
/**
28
 * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
28
 * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
29
 * 
30
 * @generated
29
 * @generated
31
 */
30
 */
32
public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
31
public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
33
{
32
{
34
  /**
33
  /**
35
   * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
34
   * Creates the default factory implementation.
36
   * 
35
   * <!-- begin-user-doc --> <!-- end-user-doc -->
37
   * @generated
36
   * @generated
38
   */
37
   */
39
  public static MangoFactory init()
38
  public static MangoFactory init()
Lines 55-62 Link Here
55
  }
54
  }
56
55
57
  /**
56
  /**
58
   * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
57
   * Creates an instance of the factory.
59
   * 
58
   * <!-- begin-user-doc --> <!-- end-user-doc -->
60
   * @generated
59
   * @generated
61
   */
60
   */
62
  public MangoFactoryImpl()
61
  public MangoFactoryImpl()
Lines 66-72 Link Here
66
65
67
  /**
66
  /**
68
   * <!-- begin-user-doc --> <!-- end-user-doc -->
67
   * <!-- begin-user-doc --> <!-- end-user-doc -->
69
   * 
70
   * @generated
68
   * @generated
71
   */
69
   */
72
  @Override
70
  @Override
Lines 74-85 Link Here
74
  {
72
  {
75
    switch (eClass.getClassifierID())
73
    switch (eClass.getClassifierID())
76
    {
74
    {
77
    case MangoPackage.VALUE_LIST:
75
    case MangoPackage.MANGO_VALUE_LIST:
78
      return createValueList();
76
      return createMangoValueList();
79
    case MangoPackage.VALUE:
77
    case MangoPackage.MANGO_VALUE:
80
      return createValue();
78
      return createMangoValue();
81
    case MangoPackage.PARAMETER:
79
    case MangoPackage.MANGO_PARAMETER:
82
      return createParameter();
80
      return createMangoParameter();
83
    default:
81
    default:
84
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
82
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
85
    }
83
    }
Lines 87-93 Link Here
87
85
88
  /**
86
  /**
89
   * <!-- begin-user-doc --> <!-- end-user-doc -->
87
   * <!-- begin-user-doc --> <!-- end-user-doc -->
90
   * 
91
   * @generated
88
   * @generated
92
   */
89
   */
93
  @Override
90
  @Override
Lines 104-110 Link Here
104
101
105
  /**
102
  /**
106
   * <!-- begin-user-doc --> <!-- end-user-doc -->
103
   * <!-- begin-user-doc --> <!-- end-user-doc -->
107
   * 
108
   * @generated
104
   * @generated
109
   */
105
   */
110
  @Override
106
  @Override
Lines 120-160 Link Here
120
  }
116
  }
121
117
122
  /**
118
  /**
123
   * <!-- begin-user-doc --> <!-- end-user-doc -->
119
   * <!-- begin-user-doc -->
124
   * 
120
   * <!-- end-user-doc -->
125
   * @generated
121
   * @generated
126
   */
122
   */
127
  public ValueList createValueList()
123
  public MangoValueList createMangoValueList()
128
  {
124
  {
129
    ValueListImpl valueList = new ValueListImpl();
125
    MangoValueListImpl mangoValueList = new MangoValueListImpl();
130
    return valueList;
126
    return mangoValueList;
131
  }
127
  }
132
128
133
  /**
129
  /**
134
   * <!-- begin-user-doc --> <!-- end-user-doc -->
130
   * <!-- begin-user-doc -->
135
   * 
131
   * <!-- end-user-doc -->
136
   * @generated
132
   * @generated
137
   */
133
   */
138
  public Value createValue()
134
  public MangoValue createMangoValue()
139
  {
135
  {
140
    ValueImpl value = new ValueImpl();
136
    MangoValueImpl mangoValue = new MangoValueImpl();
141
    return value;
137
    return mangoValue;
142
  }
138
  }
143
139
144
  /**
140
  /**
145
   * <!-- begin-user-doc --> <!-- end-user-doc -->
141
   * <!-- begin-user-doc -->
146
   * 
142
   * <!-- end-user-doc -->
147
   * @generated
143
   * @generated
148
   */
144
   */
149
  public Parameter createParameter()
145
  public MangoParameter createMangoParameter()
150
  {
146
  {
151
    ParameterImpl parameter = new ParameterImpl();
147
    MangoParameterImpl mangoParameter = new MangoParameterImpl();
152
    return parameter;
148
    return mangoParameter;
153
  }
149
  }
154
150
155
  /**
151
  /**
156
   * <!-- begin-user-doc --> <!-- end-user-doc -->
152
   * <!-- begin-user-doc --> <!-- end-user-doc -->
157
   * 
158
   * @generated
153
   * @generated
159
   */
154
   */
160
  public ParameterPassing createParameterPassingFromString(EDataType eDataType, String initialValue)
155
  public ParameterPassing createParameterPassingFromString(EDataType eDataType, String initialValue)
Lines 168-174 Link Here
168
163
169
  /**
164
  /**
170
   * <!-- begin-user-doc --> <!-- end-user-doc -->
165
   * <!-- begin-user-doc --> <!-- end-user-doc -->
171
   * 
172
   * @generated
166
   * @generated
173
   */
167
   */
174
  public String convertParameterPassingToString(EDataType eDataType, Object instanceValue)
168
  public String convertParameterPassingToString(EDataType eDataType, Object instanceValue)
Lines 178-184 Link Here
178
172
179
  /**
173
  /**
180
   * <!-- begin-user-doc --> <!-- end-user-doc -->
174
   * <!-- begin-user-doc --> <!-- end-user-doc -->
181
   * 
182
   * @generated
175
   * @generated
183
   */
176
   */
184
  public MangoPackage getMangoPackage()
177
  public MangoPackage getMangoPackage()
Lines 188-194 Link Here
188
181
189
  /**
182
  /**
190
   * <!-- begin-user-doc --> <!-- end-user-doc -->
183
   * <!-- begin-user-doc --> <!-- end-user-doc -->
191
   * 
192
   * @deprecated
184
   * @deprecated
193
   * @generated
185
   * @generated
194
   */
186
   */
(-)model/mango.ecore (-4 / +4 lines)
Lines 3-21 Link Here
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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="mango"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="mango"
5
    nsURI="http://www.eclipse.org/emf/CDO/tests/mango" nsPrefix="mango">
5
    nsURI="http://www.eclipse.org/emf/CDO/tests/mango" nsPrefix="mango">
6
  <eClassifiers xsi:type="ecore:EClass" name="ValueList">
6
  <eClassifiers xsi:type="ecore:EClass" name="MangoValueList">
7
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
7
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
8
    <eStructuralFeatures xsi:type="ecore:EReference" name="values" upperBound="-1"
8
    <eStructuralFeatures xsi:type="ecore:EReference" name="values" upperBound="-1"
9
        eType="#//Value"/>
9
        eType="#//MangoValue"/>
10
  </eClassifiers>
10
  </eClassifiers>
11
  <eClassifiers xsi:type="ecore:EClass" name="Value">
11
  <eClassifiers xsi:type="ecore:EClass" name="MangoValue">
12
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
12
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
13
  </eClassifiers>
13
  </eClassifiers>
14
  <eClassifiers xsi:type="ecore:EEnum" name="ParameterPassing">
14
  <eClassifiers xsi:type="ecore:EEnum" name="ParameterPassing">
15
    <eLiterals name="ByValue"/>
15
    <eLiterals name="ByValue"/>
16
    <eLiterals name="ByReference" value="1"/>
16
    <eLiterals name="ByReference" value="1"/>
17
  </eClassifiers>
17
  </eClassifiers>
18
  <eClassifiers xsi:type="ecore:EClass" name="Parameter">
18
  <eClassifiers xsi:type="ecore:EClass" name="MangoParameter">
19
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
19
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
20
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="passing" eType="#//ParameterPassing"/>
20
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="passing" eType="#//ParameterPassing"/>
21
  </eClassifiers>
21
  </eClassifiers>
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/util/MangoAdapterFactory.java (-176 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: MangoAdapterFactory.java,v 1.5 2009/08/22 09:34:42 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.util;
14
15
import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.legacy.mango.Parameter;
17
import org.eclipse.emf.cdo.tests.legacy.mango.Value;
18
import org.eclipse.emf.cdo.tests.legacy.mango.ValueList;
19
20
import org.eclipse.emf.common.notify.Adapter;
21
import org.eclipse.emf.common.notify.Notifier;
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
import org.eclipse.emf.ecore.EObject;
24
25
/**
26
 * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
27
 * method for each class of the model. <!-- end-user-doc -->
28
 * 
29
 * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage
30
 * @generated
31
 */
32
public class MangoAdapterFactory extends AdapterFactoryImpl
33
{
34
  /**
35
   * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
36
   * 
37
   * @generated
38
   */
39
  protected static MangoPackage modelPackage;
40
41
  /**
42
   * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
43
   * 
44
   * @generated
45
   */
46
  public MangoAdapterFactory()
47
  {
48
    if (modelPackage == null)
49
    {
50
      modelPackage = MangoPackage.eINSTANCE;
51
    }
52
  }
53
54
  /**
55
   * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> This implementation
56
   * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
57
   * end-user-doc -->
58
   * 
59
   * @return whether this factory is applicable for the type of the object.
60
   * @generated
61
   */
62
  @Override
63
  public boolean isFactoryForType(Object object)
64
  {
65
    if (object == modelPackage)
66
    {
67
      return true;
68
    }
69
    if (object instanceof EObject)
70
    {
71
      return ((EObject)object).eClass().getEPackage() == modelPackage;
72
    }
73
    return false;
74
  }
75
76
  /**
77
   * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- end-user-doc -->
78
   * 
79
   * @generated
80
   */
81
  protected MangoSwitch<Adapter> modelSwitch = new MangoSwitch<Adapter>()
82
  {
83
    @Override
84
    public Adapter caseValueList(ValueList object)
85
    {
86
      return createValueListAdapter();
87
    }
88
89
    @Override
90
    public Adapter caseValue(Value object)
91
    {
92
      return createValueAdapter();
93
    }
94
95
    @Override
96
    public Adapter caseParameter(Parameter object)
97
    {
98
      return createParameterAdapter();
99
    }
100
101
    @Override
102
    public Adapter defaultCase(EObject object)
103
    {
104
      return createEObjectAdapter();
105
    }
106
  };
107
108
  /**
109
   * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc -->
110
   * 
111
   * @param target
112
   *          the object to adapt.
113
   * @return the adapter for the <code>target</code>.
114
   * @generated
115
   */
116
  @Override
117
  public Adapter createAdapter(Notifier target)
118
  {
119
    return modelSwitch.doSwitch((EObject)target);
120
  }
121
122
  /**
123
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.mango.ValueList
124
   * <em>Value List</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
125
   * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
126
   * 
127
   * @return the new adapter.
128
   * @see org.eclipse.emf.cdo.tests.legacy.mango.ValueList
129
   * @generated
130
   */
131
  public Adapter createValueListAdapter()
132
  {
133
    return null;
134
  }
135
136
  /**
137
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.mango.Value <em>Value</em>}'.
138
   * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
139
   * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
140
   * 
141
   * @return the new adapter.
142
   * @see org.eclipse.emf.cdo.tests.legacy.mango.Value
143
   * @generated
144
   */
145
  public Adapter createValueAdapter()
146
  {
147
    return null;
148
  }
149
150
  /**
151
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.mango.Parameter
152
   * <em>Parameter</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
153
   * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
154
   * 
155
   * @return the new adapter.
156
   * @see org.eclipse.emf.cdo.tests.legacy.mango.Parameter
157
   * @generated
158
   */
159
  public Adapter createParameterAdapter()
160
  {
161
    return null;
162
  }
163
164
  /**
165
   * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!--
166
   * end-user-doc -->
167
   * 
168
   * @return the new adapter.
169
   * @generated
170
   */
171
  public Adapter createEObjectAdapter()
172
  {
173
    return null;
174
  }
175
176
} // MangoAdapterFactory
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/util/MangoSwitch.java (-189 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: MangoSwitch.java,v 1.5 2009/08/22 09:34:42 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.util;
14
15
import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.legacy.mango.Parameter;
17
import org.eclipse.emf.cdo.tests.legacy.mango.Value;
18
import org.eclipse.emf.cdo.tests.legacy.mango.ValueList;
19
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EObject;
22
23
import java.util.List;
24
25
/**
26
 * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call
27
 * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
28
 * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
29
 * returned, which is the result of the switch. <!-- end-user-doc -->
30
 * 
31
 * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage
32
 * @generated
33
 */
34
public class MangoSwitch<T>
35
{
36
  /**
37
   * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * 
39
   * @generated
40
   */
41
  protected static MangoPackage modelPackage;
42
43
  /**
44
   * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
45
   * 
46
   * @generated
47
   */
48
  public MangoSwitch()
49
  {
50
    if (modelPackage == null)
51
    {
52
      modelPackage = MangoPackage.eINSTANCE;
53
    }
54
  }
55
56
  /**
57
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
58
   * <!-- begin-user-doc --> <!-- end-user-doc -->
59
   * 
60
   * @return the first non-null result returned by a <code>caseXXX</code> call.
61
   * @generated
62
   */
63
  public T doSwitch(EObject theEObject)
64
  {
65
    return doSwitch(theEObject.eClass(), theEObject);
66
  }
67
68
  /**
69
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
70
   * <!-- begin-user-doc --> <!-- end-user-doc -->
71
   * 
72
   * @return the first non-null result returned by a <code>caseXXX</code> call.
73
   * @generated
74
   */
75
  protected T doSwitch(EClass theEClass, EObject theEObject)
76
  {
77
    if (theEClass.eContainer() == modelPackage)
78
    {
79
      return doSwitch(theEClass.getClassifierID(), theEObject);
80
    }
81
    else
82
    {
83
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
84
      return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
85
    }
86
  }
87
88
  /**
89
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
90
   * <!-- begin-user-doc --> <!-- end-user-doc -->
91
   * 
92
   * @return the first non-null result returned by a <code>caseXXX</code> call.
93
   * @generated
94
   */
95
  protected T doSwitch(int classifierID, EObject theEObject)
96
  {
97
    switch (classifierID)
98
    {
99
    case MangoPackage.VALUE_LIST:
100
    {
101
      ValueList valueList = (ValueList)theEObject;
102
      T result = caseValueList(valueList);
103
      if (result == null)
104
        result = defaultCase(theEObject);
105
      return result;
106
    }
107
    case MangoPackage.VALUE:
108
    {
109
      Value value = (Value)theEObject;
110
      T result = caseValue(value);
111
      if (result == null)
112
        result = defaultCase(theEObject);
113
      return result;
114
    }
115
    case MangoPackage.PARAMETER:
116
    {
117
      Parameter parameter = (Parameter)theEObject;
118
      T result = caseParameter(parameter);
119
      if (result == null)
120
        result = defaultCase(theEObject);
121
      return result;
122
    }
123
    default:
124
      return defaultCase(theEObject);
125
    }
126
  }
127
128
  /**
129
   * Returns the result of interpreting the object as an instance of '<em>Value List</em>'. <!-- begin-user-doc --> This
130
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
131
   * 
132
   * @param object
133
   *          the target of the switch.
134
   * @return the result of interpreting the object as an instance of '<em>Value List</em>'.
135
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
136
   * @generated
137
   */
138
  public T caseValueList(ValueList object)
139
  {
140
    return null;
141
  }
142
143
  /**
144
   * Returns the result of interpreting the object as an instance of '<em>Value</em>'. <!-- begin-user-doc --> This
145
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
146
   * 
147
   * @param object
148
   *          the target of the switch.
149
   * @return the result of interpreting the object as an instance of '<em>Value</em>'.
150
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
151
   * @generated
152
   */
153
  public T caseValue(Value object)
154
  {
155
    return null;
156
  }
157
158
  /**
159
   * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'. <!-- begin-user-doc --> This
160
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
161
   * 
162
   * @param object
163
   *          the target of the switch.
164
   * @return the result of interpreting the object as an instance of '<em>Parameter</em>'.
165
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
166
   * @generated
167
   */
168
  public T caseParameter(Parameter object)
169
  {
170
    return null;
171
  }
172
173
  /**
174
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This
175
   * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
176
   * anyway. <!-- end-user-doc -->
177
   * 
178
   * @param object
179
   *          the target of the switch.
180
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
181
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
182
   * @generated
183
   */
184
  public T defaultCase(EObject object)
185
  {
186
    return null;
187
  }
188
189
} // MangoSwitch
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/impl/ValueListImpl.java (-225 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: ValueListImpl.java,v 1.5 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
14
15
import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.legacy.mango.Value;
17
import org.eclipse.emf.cdo.tests.legacy.mango.ValueList;
18
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.util.EList;
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.impl.ENotificationImpl;
23
import org.eclipse.emf.ecore.impl.EObjectImpl;
24
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
25
26
import java.util.Collection;
27
28
/**
29
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Value List</b></em>'. <!-- end-user-doc -->
30
 * <p>
31
 * The following features are implemented:
32
 * <ul>
33
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueListImpl#getName <em>Name</em>}</li>
34
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueListImpl#getValues <em>Values</em>}</li>
35
 * </ul>
36
 * </p>
37
 * 
38
 * @generated
39
 */
40
public class ValueListImpl extends EObjectImpl implements ValueList
41
{
42
  /**
43
   * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
44
   * -->
45
   * 
46
   * @see #getName()
47
   * @generated
48
   * @ordered
49
   */
50
  protected static final String NAME_EDEFAULT = null;
51
52
  /**
53
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
54
   * 
55
   * @see #getName()
56
   * @generated
57
   * @ordered
58
   */
59
  protected String name = NAME_EDEFAULT;
60
61
  /**
62
   * The cached value of the '{@link #getValues() <em>Values</em>}' reference list. <!-- begin-user-doc --> <!--
63
   * end-user-doc -->
64
   * 
65
   * @see #getValues()
66
   * @generated
67
   * @ordered
68
   */
69
  protected EList<Value> values;
70
71
  /**
72
   * <!-- begin-user-doc --> <!-- end-user-doc -->
73
   * 
74
   * @generated
75
   */
76
  protected ValueListImpl()
77
  {
78
    super();
79
  }
80
81
  /**
82
   * <!-- begin-user-doc --> <!-- end-user-doc -->
83
   * 
84
   * @generated
85
   */
86
  @Override
87
  protected EClass eStaticClass()
88
  {
89
    return MangoPackage.Literals.VALUE_LIST;
90
  }
91
92
  /**
93
   * <!-- begin-user-doc --> <!-- end-user-doc -->
94
   * 
95
   * @generated
96
   */
97
  public String getName()
98
  {
99
    return name;
100
  }
101
102
  /**
103
   * <!-- begin-user-doc --> <!-- end-user-doc -->
104
   * 
105
   * @generated
106
   */
107
  public void setName(String newName)
108
  {
109
    String oldName = name;
110
    name = newName;
111
    if (eNotificationRequired())
112
      eNotify(new ENotificationImpl(this, Notification.SET, MangoPackage.VALUE_LIST__NAME, oldName, name));
113
  }
114
115
  /**
116
   * <!-- begin-user-doc --> <!-- end-user-doc -->
117
   * 
118
   * @generated
119
   */
120
  public EList<Value> getValues()
121
  {
122
    if (values == null)
123
    {
124
      values = new EObjectResolvingEList<Value>(Value.class, this, MangoPackage.VALUE_LIST__VALUES);
125
    }
126
    return values;
127
  }
128
129
  /**
130
   * <!-- begin-user-doc --> <!-- end-user-doc -->
131
   * 
132
   * @generated
133
   */
134
  @Override
135
  public Object eGet(int featureID, boolean resolve, boolean coreType)
136
  {
137
    switch (featureID)
138
    {
139
    case MangoPackage.VALUE_LIST__NAME:
140
      return getName();
141
    case MangoPackage.VALUE_LIST__VALUES:
142
      return getValues();
143
    }
144
    return super.eGet(featureID, resolve, coreType);
145
  }
146
147
  /**
148
   * <!-- begin-user-doc --> <!-- end-user-doc -->
149
   * 
150
   * @generated
151
   */
152
  @SuppressWarnings("unchecked")
153
  @Override
154
  public void eSet(int featureID, Object newValue)
155
  {
156
    switch (featureID)
157
    {
158
    case MangoPackage.VALUE_LIST__NAME:
159
      setName((String)newValue);
160
      return;
161
    case MangoPackage.VALUE_LIST__VALUES:
162
      getValues().clear();
163
      getValues().addAll((Collection<? extends Value>)newValue);
164
      return;
165
    }
166
    super.eSet(featureID, newValue);
167
  }
168
169
  /**
170
   * <!-- begin-user-doc --> <!-- end-user-doc -->
171
   * 
172
   * @generated
173
   */
174
  @Override
175
  public void eUnset(int featureID)
176
  {
177
    switch (featureID)
178
    {
179
    case MangoPackage.VALUE_LIST__NAME:
180
      setName(NAME_EDEFAULT);
181
      return;
182
    case MangoPackage.VALUE_LIST__VALUES:
183
      getValues().clear();
184
      return;
185
    }
186
    super.eUnset(featureID);
187
  }
188
189
  /**
190
   * <!-- begin-user-doc --> <!-- end-user-doc -->
191
   * 
192
   * @generated
193
   */
194
  @Override
195
  public boolean eIsSet(int featureID)
196
  {
197
    switch (featureID)
198
    {
199
    case MangoPackage.VALUE_LIST__NAME:
200
      return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
201
    case MangoPackage.VALUE_LIST__VALUES:
202
      return values != null && !values.isEmpty();
203
    }
204
    return super.eIsSet(featureID);
205
  }
206
207
  /**
208
   * <!-- begin-user-doc --> <!-- end-user-doc -->
209
   * 
210
   * @generated
211
   */
212
  @Override
213
  public String toString()
214
  {
215
    if (eIsProxy())
216
      return super.toString();
217
218
    StringBuffer result = new StringBuffer(super.toString());
219
    result.append(" (name: ");
220
    result.append(name);
221
    result.append(')');
222
    return result.toString();
223
  }
224
225
} // ValueListImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/impl/ValueImpl.java (-183 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: ValueImpl.java,v 1.5 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
14
15
import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.legacy.mango.Value;
17
18
import org.eclipse.emf.common.notify.Notification;
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.impl.ENotificationImpl;
21
import org.eclipse.emf.ecore.impl.EObjectImpl;
22
23
/**
24
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Value</b></em>'. <!-- end-user-doc -->
25
 * <p>
26
 * The following features are implemented:
27
 * <ul>
28
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ValueImpl#getName <em>Name</em>}</li>
29
 * </ul>
30
 * </p>
31
 * 
32
 * @generated
33
 */
34
public class ValueImpl extends EObjectImpl implements Value
35
{
36
  /**
37
   * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
38
   * -->
39
   * 
40
   * @see #getName()
41
   * @generated
42
   * @ordered
43
   */
44
  protected static final String NAME_EDEFAULT = null;
45
46
  /**
47
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
48
   * 
49
   * @see #getName()
50
   * @generated
51
   * @ordered
52
   */
53
  protected String name = NAME_EDEFAULT;
54
55
  /**
56
   * <!-- begin-user-doc --> <!-- end-user-doc -->
57
   * 
58
   * @generated
59
   */
60
  protected ValueImpl()
61
  {
62
    super();
63
  }
64
65
  /**
66
   * <!-- begin-user-doc --> <!-- end-user-doc -->
67
   * 
68
   * @generated
69
   */
70
  @Override
71
  protected EClass eStaticClass()
72
  {
73
    return MangoPackage.Literals.VALUE;
74
  }
75
76
  /**
77
   * <!-- begin-user-doc --> <!-- end-user-doc -->
78
   * 
79
   * @generated
80
   */
81
  public String getName()
82
  {
83
    return name;
84
  }
85
86
  /**
87
   * <!-- begin-user-doc --> <!-- end-user-doc -->
88
   * 
89
   * @generated
90
   */
91
  public void setName(String newName)
92
  {
93
    String oldName = name;
94
    name = newName;
95
    if (eNotificationRequired())
96
      eNotify(new ENotificationImpl(this, Notification.SET, MangoPackage.VALUE__NAME, oldName, name));
97
  }
98
99
  /**
100
   * <!-- begin-user-doc --> <!-- end-user-doc -->
101
   * 
102
   * @generated
103
   */
104
  @Override
105
  public Object eGet(int featureID, boolean resolve, boolean coreType)
106
  {
107
    switch (featureID)
108
    {
109
    case MangoPackage.VALUE__NAME:
110
      return getName();
111
    }
112
    return super.eGet(featureID, resolve, coreType);
113
  }
114
115
  /**
116
   * <!-- begin-user-doc --> <!-- end-user-doc -->
117
   * 
118
   * @generated
119
   */
120
  @Override
121
  public void eSet(int featureID, Object newValue)
122
  {
123
    switch (featureID)
124
    {
125
    case MangoPackage.VALUE__NAME:
126
      setName((String)newValue);
127
      return;
128
    }
129
    super.eSet(featureID, newValue);
130
  }
131
132
  /**
133
   * <!-- begin-user-doc --> <!-- end-user-doc -->
134
   * 
135
   * @generated
136
   */
137
  @Override
138
  public void eUnset(int featureID)
139
  {
140
    switch (featureID)
141
    {
142
    case MangoPackage.VALUE__NAME:
143
      setName(NAME_EDEFAULT);
144
      return;
145
    }
146
    super.eUnset(featureID);
147
  }
148
149
  /**
150
   * <!-- begin-user-doc --> <!-- end-user-doc -->
151
   * 
152
   * @generated
153
   */
154
  @Override
155
  public boolean eIsSet(int featureID)
156
  {
157
    switch (featureID)
158
    {
159
    case MangoPackage.VALUE__NAME:
160
      return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
161
    }
162
    return super.eIsSet(featureID);
163
  }
164
165
  /**
166
   * <!-- begin-user-doc --> <!-- end-user-doc -->
167
   * 
168
   * @generated
169
   */
170
  @Override
171
  public String toString()
172
  {
173
    if (eIsProxy())
174
      return super.toString();
175
176
    StringBuffer result = new StringBuffer(super.toString());
177
    result.append(" (name: ");
178
    result.append(name);
179
    result.append(')');
180
    return result.toString();
181
  }
182
183
} // ValueImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoFactoryImpl.java (-25 / +34 lines)
Lines 12-23 Link Here
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.mango.MangoFactory;
15
import org.eclipse.emf.cdo.tests.mango.MangoFactory;
16
import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
17
import org.eclipse.emf.cdo.tests.legacy.mango.Parameter;
17
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
18
import org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing;
18
import org.eclipse.emf.cdo.tests.mango.MangoValue;
19
import org.eclipse.emf.cdo.tests.legacy.mango.Value;
19
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
20
import org.eclipse.emf.cdo.tests.legacy.mango.ValueList;
20
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
21
21
22
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EClass;
23
import org.eclipse.emf.ecore.EDataType;
23
import org.eclipse.emf.ecore.EDataType;
Lines 34-50 Link Here
34
public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
34
public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
35
{
35
{
36
  /**
36
  /**
37
   * @ADDED
38
   */
39
  public static final MangoFactory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoFactoryImpl.init();
40
41
  /**
37
   * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
42
   * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * 
43
   * 
39
   * @generated
44
   * @generated NOT
40
   */
45
   */
41
  public static MangoFactory init()
46
  public static org.eclipse.emf.cdo.tests.mango.MangoFactory init()
42
  {
47
  {
43
    try
48
    try
44
    {
49
    {
45
      MangoFactory theMangoFactory = (MangoFactory)EPackage.Registry.INSTANCE
50
      MangoFactory theMangoFactory = (MangoFactory)EPackage.Registry.INSTANCE
46
          .getEFactory("http://www.eclipse.org/emf/CDO/tests/mango");
51
          .getEFactory("http://www.eclipse.org/emf/CDO/tests/mango");
47
      if (theMangoFactory != null)
52
      if (theMangoFactory instanceof MangoFactoryImpl)
48
      {
53
      {
49
        return theMangoFactory;
54
        return theMangoFactory;
50
      }
55
      }
Lines 53-59 Link Here
53
    {
58
    {
54
      EcorePlugin.INSTANCE.log(exception);
59
      EcorePlugin.INSTANCE.log(exception);
55
    }
60
    }
56
    return new MangoFactoryImpl();
61
62
    MangoFactoryImpl factory = new MangoFactoryImpl();
63
   // EPackage.Registry.INSTANCE.put(factory.getEPackage().getNsURI(), factory);
64
    EPackage.Registry.INSTANCE.put("http://www.eclipse.org/emf/CDO/tests/mango", factory);
65
    return factory;
57
  }
66
  }
58
67
59
  /**
68
  /**
Lines 76-87 Link Here
76
  {
85
  {
77
    switch (eClass.getClassifierID())
86
    switch (eClass.getClassifierID())
78
    {
87
    {
79
    case MangoPackage.VALUE_LIST:
88
    case MangoPackage.MANGO_VALUE_LIST:
80
      return createValueList();
89
      return createMangoValueList();
81
    case MangoPackage.VALUE:
90
    case MangoPackage.MANGO_VALUE:
82
      return createValue();
91
      return createMangoValue();
83
    case MangoPackage.PARAMETER:
92
    case MangoPackage.MANGO_PARAMETER:
84
      return createParameter();
93
      return createMangoParameter();
85
    default:
94
    default:
86
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
95
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
87
    }
96
    }
Lines 126-135 Link Here
126
   * 
135
   * 
127
   * @generated
136
   * @generated
128
   */
137
   */
129
  public ValueList createValueList()
138
  public MangoValueList createMangoValueList()
130
  {
139
  {
131
    ValueListImpl valueList = new ValueListImpl();
140
    MangoValueListImpl mangoValueList = new MangoValueListImpl();
132
    return valueList;
141
    return mangoValueList;
133
  }
142
  }
134
143
135
  /**
144
  /**
Lines 137-146 Link Here
137
   * 
146
   * 
138
   * @generated
147
   * @generated
139
   */
148
   */
140
  public Value createValue()
149
  public MangoValue createMangoValue()
141
  {
150
  {
142
    ValueImpl value = new ValueImpl();
151
    MangoValueImpl mangoValue = new MangoValueImpl();
143
    return value;
152
    return mangoValue;
144
  }
153
  }
145
154
146
  /**
155
  /**
Lines 148-157 Link Here
148
   * 
157
   * 
149
   * @generated
158
   * @generated
150
   */
159
   */
151
  public Parameter createParameter()
160
  public MangoParameter createMangoParameter()
152
  {
161
  {
153
    ParameterImpl parameter = new ParameterImpl();
162
    MangoParameterImpl mangoParameter = new MangoParameterImpl();
154
    return parameter;
163
    return mangoParameter;
155
  }
164
  }
156
165
157
  /**
166
  /**
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoPackageImpl.java (-89 / +91 lines)
Lines 12-23 Link Here
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.mango.MangoFactory;
15
16
import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.mango.MangoFactory;
17
import org.eclipse.emf.cdo.tests.legacy.mango.Parameter;
17
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
18
import org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing;
18
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
19
import org.eclipse.emf.cdo.tests.legacy.mango.Value;
19
import org.eclipse.emf.cdo.tests.mango.MangoValue;
20
import org.eclipse.emf.cdo.tests.legacy.mango.ValueList;
20
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
21
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
21
22
22
import org.eclipse.emf.ecore.EAttribute;
23
import org.eclipse.emf.ecore.EAttribute;
23
import org.eclipse.emf.ecore.EClass;
24
import org.eclipse.emf.ecore.EClass;
Lines 28-62 Link Here
28
29
29
/**
30
/**
30
 * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
31
 * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
31
 * 
32
 * @generated
32
 * @generated
33
 */
33
 */
34
public class MangoPackageImpl extends EPackageImpl implements MangoPackage
34
public class MangoPackageImpl extends EPackageImpl implements MangoPackage
35
{
35
{
36
  /**
36
  /**
37
   * <!-- begin-user-doc --> <!-- end-user-doc -->
37
   * @ADDED
38
   * 
38
   */
39
  public static final MangoPackage eINSTANCE = org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl.init();
40
  /**
41
   * <!-- begin-user-doc -->
42
   * <!-- end-user-doc -->
39
   * @generated
43
   * @generated
40
   */
44
   */
41
  private EClass valueListEClass = null;
45
  private EClass mangoValueListEClass = null;
42
46
43
  /**
47
  /**
44
   * <!-- begin-user-doc --> <!-- end-user-doc -->
48
   * <!-- begin-user-doc -->
45
   * 
49
   * <!-- end-user-doc -->
46
   * @generated
50
   * @generated
47
   */
51
   */
48
  private EClass valueEClass = null;
52
  private EClass mangoValueEClass = null;
49
53
50
  /**
54
  /**
51
   * <!-- begin-user-doc --> <!-- end-user-doc -->
55
   * <!-- begin-user-doc -->
52
   * 
56
   * <!-- end-user-doc -->
53
   * @generated
57
   * @generated
54
   */
58
   */
55
  private EClass parameterEClass = null;
59
  private EClass mangoParameterEClass = null;
56
60
57
  /**
61
  /**
58
   * <!-- begin-user-doc --> <!-- end-user-doc -->
62
   * <!-- begin-user-doc --> <!-- end-user-doc -->
59
   * 
60
   * @generated
63
   * @generated
61
   */
64
   */
62
  private EEnum parameterPassingEEnum = null;
65
  private EEnum parameterPassingEEnum = null;
Lines 81-98 Link Here
81
84
82
  /**
85
  /**
83
   * <!-- begin-user-doc --> <!-- end-user-doc -->
86
   * <!-- begin-user-doc --> <!-- end-user-doc -->
84
   * 
85
   * @generated
87
   * @generated
86
   */
88
   */
87
  private static boolean isInited = false;
89
  private static boolean isInited = false;
88
90
89
  /**
91
  /**
90
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
92
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
91
   * <p>
92
   * This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed. Clients should not
93
   * invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * 
93
   * 
94
   * <p>This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed.
95
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
96
   * <!-- begin-user-doc -->
97
   * <!-- end-user-doc -->
96
   * @see #eNS_URI
98
   * @see #eNS_URI
97
   * @see #createPackageContents()
99
   * @see #createPackageContents()
98
   * @see #initializePackageContents()
100
   * @see #initializePackageContents()
Lines 125-212 Link Here
125
  }
127
  }
126
128
127
  /**
129
  /**
128
   * <!-- begin-user-doc --> <!-- end-user-doc -->
130
   * <!-- begin-user-doc -->
129
   * 
131
   * <!-- end-user-doc -->
130
   * @generated
132
   * @generated
131
   */
133
   */
132
  public EClass getValueList()
134
  public EClass getMangoValueList()
133
  {
135
  {
134
    return valueListEClass;
136
    return mangoValueListEClass;
135
  }
137
  }
136
138
137
  /**
139
  /**
138
   * <!-- begin-user-doc --> <!-- end-user-doc -->
140
   * <!-- begin-user-doc -->
139
   * 
141
   * <!-- end-user-doc -->
140
   * @generated
142
   * @generated
141
   */
143
   */
142
  public EAttribute getValueList_Name()
144
  public EAttribute getMangoValueList_Name()
143
  {
145
  {
144
    return (EAttribute)valueListEClass.getEStructuralFeatures().get(0);
146
    return (EAttribute)mangoValueListEClass.getEStructuralFeatures().get(0);
145
  }
147
  }
146
148
147
  /**
149
  /**
148
   * <!-- begin-user-doc --> <!-- end-user-doc -->
150
   * <!-- begin-user-doc -->
149
   * 
151
   * <!-- end-user-doc -->
150
   * @generated
152
   * @generated
151
   */
153
   */
152
  public EReference getValueList_Values()
154
  public EReference getMangoValueList_Values()
153
  {
155
  {
154
    return (EReference)valueListEClass.getEStructuralFeatures().get(1);
156
    return (EReference)mangoValueListEClass.getEStructuralFeatures().get(1);
155
  }
157
  }
156
158
157
  /**
159
  /**
158
   * <!-- begin-user-doc --> <!-- end-user-doc -->
160
   * <!-- begin-user-doc -->
159
   * 
161
   * <!-- end-user-doc -->
160
   * @generated
162
   * @generated
161
   */
163
   */
162
  public EClass getValue()
164
  public EClass getMangoValue()
163
  {
165
  {
164
    return valueEClass;
166
    return mangoValueEClass;
165
  }
167
  }
166
168
167
  /**
169
  /**
168
   * <!-- begin-user-doc --> <!-- end-user-doc -->
170
   * <!-- begin-user-doc -->
169
   * 
171
   * <!-- end-user-doc -->
170
   * @generated
172
   * @generated
171
   */
173
   */
172
  public EAttribute getValue_Name()
174
  public EAttribute getMangoValue_Name()
173
  {
175
  {
174
    return (EAttribute)valueEClass.getEStructuralFeatures().get(0);
176
    return (EAttribute)mangoValueEClass.getEStructuralFeatures().get(0);
175
  }
177
  }
176
178
177
  /**
179
  /**
178
   * <!-- begin-user-doc --> <!-- end-user-doc -->
180
   * <!-- begin-user-doc -->
179
   * 
181
   * <!-- end-user-doc -->
180
   * @generated
182
   * @generated
181
   */
183
   */
182
  public EClass getParameter()
184
  public EClass getMangoParameter()
183
  {
185
  {
184
    return parameterEClass;
186
    return mangoParameterEClass;
185
  }
187
  }
186
188
187
  /**
189
  /**
188
   * <!-- begin-user-doc --> <!-- end-user-doc -->
190
   * <!-- begin-user-doc -->
189
   * 
191
   * <!-- end-user-doc -->
190
   * @generated
192
   * @generated
191
   */
193
   */
192
  public EAttribute getParameter_Name()
194
  public EAttribute getMangoParameter_Name()
193
  {
195
  {
194
    return (EAttribute)parameterEClass.getEStructuralFeatures().get(0);
196
    return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(0);
195
  }
197
  }
196
198
197
  /**
199
  /**
198
   * <!-- begin-user-doc --> <!-- end-user-doc -->
200
   * <!-- begin-user-doc -->
199
   * 
201
   * <!-- end-user-doc -->
200
   * @generated
202
   * @generated
201
   */
203
   */
202
  public EAttribute getParameter_Passing()
204
  public EAttribute getMangoParameter_Passing()
203
  {
205
  {
204
    return (EAttribute)parameterEClass.getEStructuralFeatures().get(1);
206
    return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(1);
205
  }
207
  }
206
208
207
  /**
209
  /**
208
   * <!-- begin-user-doc --> <!-- end-user-doc -->
210
   * <!-- begin-user-doc --> <!-- end-user-doc -->
209
   * 
210
   * @generated
211
   * @generated
211
   */
212
   */
212
  public EEnum getParameterPassing()
213
  public EEnum getParameterPassing()
Lines 216-222 Link Here
216
217
217
  /**
218
  /**
218
   * <!-- begin-user-doc --> <!-- end-user-doc -->
219
   * <!-- begin-user-doc --> <!-- end-user-doc -->
219
   * 
220
   * @generated
220
   * @generated
221
   */
221
   */
222
  public MangoFactory getMangoFactory()
222
  public MangoFactory getMangoFactory()
Lines 226-240 Link Here
226
226
227
  /**
227
  /**
228
   * <!-- begin-user-doc --> <!-- end-user-doc -->
228
   * <!-- begin-user-doc --> <!-- end-user-doc -->
229
   * 
230
   * @generated
229
   * @generated
231
   */
230
   */
232
  private boolean isCreated = false;
231
  private boolean isCreated = false;
233
232
234
  /**
233
  /**
235
   * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its
234
   * Creates the meta-model objects for the package.  This method is
236
   * first. <!-- begin-user-doc --> <!-- end-user-doc -->
235
   * guarded to have no affect on any invocation but its first.
237
   * 
236
   * <!-- begin-user-doc --> <!-- end-user-doc -->
238
   * @generated
237
   * @generated
239
   */
238
   */
240
  public void createPackageContents()
239
  public void createPackageContents()
Lines 244-259 Link Here
244
    isCreated = true;
243
    isCreated = true;
245
244
246
    // Create classes and their features
245
    // Create classes and their features
247
    valueListEClass = createEClass(VALUE_LIST);
246
    mangoValueListEClass = createEClass(MANGO_VALUE_LIST);
248
    createEAttribute(valueListEClass, VALUE_LIST__NAME);
247
    createEAttribute(mangoValueListEClass, MANGO_VALUE_LIST__NAME);
249
    createEReference(valueListEClass, VALUE_LIST__VALUES);
248
    createEReference(mangoValueListEClass, MANGO_VALUE_LIST__VALUES);
250
249
251
    valueEClass = createEClass(VALUE);
250
    mangoValueEClass = createEClass(MANGO_VALUE);
252
    createEAttribute(valueEClass, VALUE__NAME);
251
    createEAttribute(mangoValueEClass, MANGO_VALUE__NAME);
253
252
254
    parameterEClass = createEClass(PARAMETER);
253
    mangoParameterEClass = createEClass(MANGO_PARAMETER);
255
    createEAttribute(parameterEClass, PARAMETER__NAME);
254
    createEAttribute(mangoParameterEClass, MANGO_PARAMETER__NAME);
256
    createEAttribute(parameterEClass, PARAMETER__PASSING);
255
    createEAttribute(mangoParameterEClass, MANGO_PARAMETER__PASSING);
257
256
258
    // Create enums
257
    // Create enums
259
    parameterPassingEEnum = createEEnum(PARAMETER_PASSING);
258
    parameterPassingEEnum = createEEnum(PARAMETER_PASSING);
Lines 261-275 Link Here
261
260
262
  /**
261
  /**
263
   * <!-- begin-user-doc --> <!-- end-user-doc -->
262
   * <!-- begin-user-doc --> <!-- end-user-doc -->
264
   * 
265
   * @generated
263
   * @generated
266
   */
264
   */
267
  private boolean isInitialized = false;
265
  private boolean isInitialized = false;
268
266
269
  /**
267
  /**
270
   * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any
268
   * Complete the initialization of the package and its meta-model.  This
271
   * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
269
   * method is guarded to have no affect on any invocation but its first.
272
   * 
270
   * <!-- begin-user-doc --> <!-- end-user-doc -->
273
   * @generated
271
   * @generated
274
   */
272
   */
275
  public void initializePackageContents()
273
  public void initializePackageContents()
Lines 290-311 Link Here
290
    // Add supertypes to classes
288
    // Add supertypes to classes
291
289
292
    // Initialize classes and features; add operations and parameters
290
    // Initialize classes and features; add operations and parameters
293
    initEClass(valueListEClass, ValueList.class, "ValueList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
291
    initEClass(mangoValueListEClass, MangoValueList.class, "MangoValueList", !IS_ABSTRACT, !IS_INTERFACE,
294
    initEAttribute(getValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, ValueList.class, !IS_TRANSIENT,
292
        IS_GENERATED_INSTANCE_CLASS);
295
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
293
    initEAttribute(getMangoValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValueList.class,
296
    initEReference(getValueList_Values(), this.getValue(), null, "values", null, 0, -1, ValueList.class, !IS_TRANSIENT,
294
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
297
        !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
295
    initEReference(getMangoValueList_Values(), this.getMangoValue(), null, "values", null, 0, -1, MangoValueList.class,
298
        IS_ORDERED);
296
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
299
297
        !IS_DERIVED, IS_ORDERED);
300
    initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
298
301
    initEAttribute(getValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, Value.class, !IS_TRANSIENT,
299
    initEClass(mangoValueEClass, MangoValue.class, "MangoValue", !IS_ABSTRACT, !IS_INTERFACE,
302
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
300
        IS_GENERATED_INSTANCE_CLASS);
303
301
    initEAttribute(getMangoValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValue.class,
304
    initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
302
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
305
    initEAttribute(getParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Parameter.class, !IS_TRANSIENT,
303
306
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
304
    initEClass(mangoParameterEClass, MangoParameter.class, "MangoParameter", !IS_ABSTRACT, !IS_INTERFACE,
307
    initEAttribute(getParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1, Parameter.class,
305
        IS_GENERATED_INSTANCE_CLASS);
306
    initEAttribute(getMangoParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoParameter.class,
308
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
307
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
308
    initEAttribute(getMangoParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1,
309
        MangoParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
310
        !IS_DERIVED, IS_ORDERED);
309
311
310
    // Initialize enums and add enum literals
312
    // Initialize enums and add enum literals
311
    initEEnum(parameterPassingEEnum, ParameterPassing.class, "ParameterPassing");
313
    initEEnum(parameterPassingEEnum, ParameterPassing.class, "ParameterPassing");
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/impl/ParameterImpl.java (-240 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: ParameterImpl.java,v 1.5 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
14
15
import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.legacy.mango.Parameter;
17
import org.eclipse.emf.cdo.tests.legacy.mango.ParameterPassing;
18
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.impl.ENotificationImpl;
22
import org.eclipse.emf.ecore.impl.EObjectImpl;
23
24
/**
25
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Parameter</b></em>'. <!-- end-user-doc -->
26
 * <p>
27
 * The following features are implemented:
28
 * <ul>
29
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ParameterImpl#getName <em>Name</em>}</li>
30
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.ParameterImpl#getPassing <em>Passing</em>}</li>
31
 * </ul>
32
 * </p>
33
 * 
34
 * @generated
35
 */
36
public class ParameterImpl extends EObjectImpl implements Parameter
37
{
38
  /**
39
   * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
40
   * -->
41
   * 
42
   * @see #getName()
43
   * @generated
44
   * @ordered
45
   */
46
  protected static final String NAME_EDEFAULT = null;
47
48
  /**
49
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
50
   * 
51
   * @see #getName()
52
   * @generated
53
   * @ordered
54
   */
55
  protected String name = NAME_EDEFAULT;
56
57
  /**
58
   * The default value of the '{@link #getPassing() <em>Passing</em>}' attribute. <!-- begin-user-doc --> <!--
59
   * end-user-doc -->
60
   * 
61
   * @see #getPassing()
62
   * @generated
63
   * @ordered
64
   */
65
  protected static final ParameterPassing PASSING_EDEFAULT = ParameterPassing.BY_VALUE;
66
67
  /**
68
   * The cached value of the '{@link #getPassing() <em>Passing</em>}' attribute. <!-- begin-user-doc --> <!--
69
   * end-user-doc -->
70
   * 
71
   * @see #getPassing()
72
   * @generated
73
   * @ordered
74
   */
75
  protected ParameterPassing passing = PASSING_EDEFAULT;
76
77
  /**
78
   * <!-- begin-user-doc --> <!-- end-user-doc -->
79
   * 
80
   * @generated
81
   */
82
  protected ParameterImpl()
83
  {
84
    super();
85
  }
86
87
  /**
88
   * <!-- begin-user-doc --> <!-- end-user-doc -->
89
   * 
90
   * @generated
91
   */
92
  @Override
93
  protected EClass eStaticClass()
94
  {
95
    return MangoPackage.Literals.PARAMETER;
96
  }
97
98
  /**
99
   * <!-- begin-user-doc --> <!-- end-user-doc -->
100
   * 
101
   * @generated
102
   */
103
  public String getName()
104
  {
105
    return name;
106
  }
107
108
  /**
109
   * <!-- begin-user-doc --> <!-- end-user-doc -->
110
   * 
111
   * @generated
112
   */
113
  public void setName(String newName)
114
  {
115
    String oldName = name;
116
    name = newName;
117
    if (eNotificationRequired())
118
      eNotify(new ENotificationImpl(this, Notification.SET, MangoPackage.PARAMETER__NAME, oldName, name));
119
  }
120
121
  /**
122
   * <!-- begin-user-doc --> <!-- end-user-doc -->
123
   * 
124
   * @generated
125
   */
126
  public ParameterPassing getPassing()
127
  {
128
    return passing;
129
  }
130
131
  /**
132
   * <!-- begin-user-doc --> <!-- end-user-doc -->
133
   * 
134
   * @generated
135
   */
136
  public void setPassing(ParameterPassing newPassing)
137
  {
138
    ParameterPassing oldPassing = passing;
139
    passing = newPassing == null ? PASSING_EDEFAULT : newPassing;
140
    if (eNotificationRequired())
141
      eNotify(new ENotificationImpl(this, Notification.SET, MangoPackage.PARAMETER__PASSING, oldPassing, passing));
142
  }
143
144
  /**
145
   * <!-- begin-user-doc --> <!-- end-user-doc -->
146
   * 
147
   * @generated
148
   */
149
  @Override
150
  public Object eGet(int featureID, boolean resolve, boolean coreType)
151
  {
152
    switch (featureID)
153
    {
154
    case MangoPackage.PARAMETER__NAME:
155
      return getName();
156
    case MangoPackage.PARAMETER__PASSING:
157
      return getPassing();
158
    }
159
    return super.eGet(featureID, resolve, coreType);
160
  }
161
162
  /**
163
   * <!-- begin-user-doc --> <!-- end-user-doc -->
164
   * 
165
   * @generated
166
   */
167
  @Override
168
  public void eSet(int featureID, Object newValue)
169
  {
170
    switch (featureID)
171
    {
172
    case MangoPackage.PARAMETER__NAME:
173
      setName((String)newValue);
174
      return;
175
    case MangoPackage.PARAMETER__PASSING:
176
      setPassing((ParameterPassing)newValue);
177
      return;
178
    }
179
    super.eSet(featureID, newValue);
180
  }
181
182
  /**
183
   * <!-- begin-user-doc --> <!-- end-user-doc -->
184
   * 
185
   * @generated
186
   */
187
  @Override
188
  public void eUnset(int featureID)
189
  {
190
    switch (featureID)
191
    {
192
    case MangoPackage.PARAMETER__NAME:
193
      setName(NAME_EDEFAULT);
194
      return;
195
    case MangoPackage.PARAMETER__PASSING:
196
      setPassing(PASSING_EDEFAULT);
197
      return;
198
    }
199
    super.eUnset(featureID);
200
  }
201
202
  /**
203
   * <!-- begin-user-doc --> <!-- end-user-doc -->
204
   * 
205
   * @generated
206
   */
207
  @Override
208
  public boolean eIsSet(int featureID)
209
  {
210
    switch (featureID)
211
    {
212
    case MangoPackage.PARAMETER__NAME:
213
      return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
214
    case MangoPackage.PARAMETER__PASSING:
215
      return passing != PASSING_EDEFAULT;
216
    }
217
    return super.eIsSet(featureID);
218
  }
219
220
  /**
221
   * <!-- begin-user-doc --> <!-- end-user-doc -->
222
   * 
223
   * @generated
224
   */
225
  @Override
226
  public String toString()
227
  {
228
    if (eIsProxy())
229
      return super.toString();
230
231
    StringBuffer result = new StringBuffer(super.toString());
232
    result.append(" (name: ");
233
    result.append(name);
234
    result.append(", passing: ");
235
    result.append(passing);
236
    result.append(')');
237
    return result.toString();
238
  }
239
240
} // ParameterImpl
(-)META-INF/MANIFEST.MF (-1 / +2 lines)
Lines 10-16 Link Here
10
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
10
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
11
 org.eclipse.emf.ecore;bundle-version="[2.4.0,3.0.0)";visibility:=reexport,
11
 org.eclipse.emf.ecore;bundle-version="[2.4.0,3.0.0)";visibility:=reexport,
12
 org.eclipse.emf.cdo;bundle-version="[3.0.0,4.0.0)";visibility:=reexport
12
 org.eclipse.emf.cdo;bundle-version="[3.0.0,4.0.0)";visibility:=reexport
13
Export-Package: org.eclipse.emf.cdo.tests.mango;version="3.0.0",
13
Export-Package: org.eclipse.emf.cdo.tests.legacy.mango.impl;version="3.0.0",
14
 org.eclipse.emf.cdo.tests.mango;version="3.0.0",
14
 org.eclipse.emf.cdo.tests.mango.impl;version="3.0.0",
15
 org.eclipse.emf.cdo.tests.mango.impl;version="3.0.0",
15
 org.eclipse.emf.cdo.tests.mango.util;version="3.0.0"
16
 org.eclipse.emf.cdo.tests.mango.util;version="3.0.0"
16
17
(-)src/org/eclipse/emf/cdo/tests/mango/util/MangoSwitch.java (-42 / +40 lines)
Lines 11-19 Link Here
11
package org.eclipse.emf.cdo.tests.mango.util;
11
package org.eclipse.emf.cdo.tests.mango.util;
12
12
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.Parameter;
14
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
15
import org.eclipse.emf.cdo.tests.mango.Value;
15
import org.eclipse.emf.cdo.tests.mango.MangoValue;
16
import org.eclipse.emf.cdo.tests.mango.ValueList;
16
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
17
17
18
import org.eclipse.emf.ecore.EClass;
18
import org.eclipse.emf.ecore.EClass;
19
import org.eclipse.emf.ecore.EObject;
19
import org.eclipse.emf.ecore.EObject;
Lines 25-46 Link Here
25
 * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
25
 * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
26
 * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
26
 * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
27
 * returned, which is the result of the switch. <!-- end-user-doc -->
27
 * returned, which is the result of the switch. <!-- end-user-doc -->
28
 * 
29
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage
28
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage
30
 * @generated
29
 * @generated
31
 */
30
 */
32
public class MangoSwitch<T>
31
public class MangoSwitch<T>
33
{
32
{
34
  /**
33
  /**
35
   * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
34
   * The cached model package
36
   * 
35
   * <!-- begin-user-doc --> <!-- end-user-doc -->
37
   * @generated
36
   * @generated
38
   */
37
   */
39
  protected static MangoPackage modelPackage;
38
  protected static MangoPackage modelPackage;
40
39
41
  /**
40
  /**
42
   * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
41
   * Creates an instance of the switch.
43
   * 
42
   * <!-- begin-user-doc --> <!-- end-user-doc -->
44
   * @generated
43
   * @generated
45
   */
44
   */
46
  public MangoSwitch()
45
  public MangoSwitch()
Lines 54-60 Link Here
54
  /**
53
  /**
55
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
54
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
56
   * <!-- begin-user-doc --> <!-- end-user-doc -->
55
   * <!-- begin-user-doc --> <!-- end-user-doc -->
57
   * 
58
   * @return the first non-null result returned by a <code>caseXXX</code> call.
56
   * @return the first non-null result returned by a <code>caseXXX</code> call.
59
   * @generated
57
   * @generated
60
   */
58
   */
Lines 66-72 Link Here
66
  /**
64
  /**
67
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
65
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
68
   * <!-- begin-user-doc --> <!-- end-user-doc -->
66
   * <!-- begin-user-doc --> <!-- end-user-doc -->
69
   * 
70
   * @return the first non-null result returned by a <code>caseXXX</code> call.
67
   * @return the first non-null result returned by a <code>caseXXX</code> call.
71
   * @generated
68
   * @generated
72
   */
69
   */
Lines 86-92 Link Here
86
  /**
83
  /**
87
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
84
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
88
   * <!-- begin-user-doc --> <!-- end-user-doc -->
85
   * <!-- begin-user-doc --> <!-- end-user-doc -->
89
   * 
90
   * @return the first non-null result returned by a <code>caseXXX</code> call.
86
   * @return the first non-null result returned by a <code>caseXXX</code> call.
91
   * @generated
87
   * @generated
92
   */
88
   */
Lines 94-119 Link Here
94
  {
90
  {
95
    switch (classifierID)
91
    switch (classifierID)
96
    {
92
    {
97
    case MangoPackage.VALUE_LIST:
93
    case MangoPackage.MANGO_VALUE_LIST:
98
    {
94
    {
99
      ValueList valueList = (ValueList)theEObject;
95
      MangoValueList mangoValueList = (MangoValueList)theEObject;
100
      T result = caseValueList(valueList);
96
      T result = caseMangoValueList(mangoValueList);
101
      if (result == null)
97
      if (result == null)
102
        result = defaultCase(theEObject);
98
        result = defaultCase(theEObject);
103
      return result;
99
      return result;
104
    }
100
    }
105
    case MangoPackage.VALUE:
101
    case MangoPackage.MANGO_VALUE:
106
    {
102
    {
107
      Value value = (Value)theEObject;
103
      MangoValue mangoValue = (MangoValue)theEObject;
108
      T result = caseValue(value);
104
      T result = caseMangoValue(mangoValue);
109
      if (result == null)
105
      if (result == null)
110
        result = defaultCase(theEObject);
106
        result = defaultCase(theEObject);
111
      return result;
107
      return result;
112
    }
108
    }
113
    case MangoPackage.PARAMETER:
109
    case MangoPackage.MANGO_PARAMETER:
114
    {
110
    {
115
      Parameter parameter = (Parameter)theEObject;
111
      MangoParameter mangoParameter = (MangoParameter)theEObject;
116
      T result = caseParameter(parameter);
112
      T result = caseMangoParameter(mangoParameter);
117
      if (result == null)
113
      if (result == null)
118
        result = defaultCase(theEObject);
114
        result = defaultCase(theEObject);
119
      return result;
115
      return result;
Lines 124-180 Link Here
124
  }
120
  }
125
121
126
  /**
122
  /**
127
   * Returns the result of interpreting the object as an instance of '<em>Value List</em>'. <!-- begin-user-doc --> This
123
   * Returns the result of interpreting the object as an instance of '<em>Value List</em>'.
128
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
124
   * <!-- begin-user-doc -->
129
   * 
125
   * This implementation returns null;
130
   * @param object
126
   * returning a non-null result will terminate the switch.
131
   *          the target of the switch.
127
   * <!-- end-user-doc -->
128
   * @param object the target of the switch.
132
   * @return the result of interpreting the object as an instance of '<em>Value List</em>'.
129
   * @return the result of interpreting the object as an instance of '<em>Value List</em>'.
133
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
130
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
134
   * @generated
131
   * @generated
135
   */
132
   */
136
  public T caseValueList(ValueList object)
133
  public T caseMangoValueList(MangoValueList object)
137
  {
134
  {
138
    return null;
135
    return null;
139
  }
136
  }
140
137
141
  /**
138
  /**
142
   * Returns the result of interpreting the object as an instance of '<em>Value</em>'. <!-- begin-user-doc --> This
139
   * Returns the result of interpreting the object as an instance of '<em>Value</em>'.
143
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
140
   * <!-- begin-user-doc -->
144
   * 
141
   * This implementation returns null;
145
   * @param object
142
   * returning a non-null result will terminate the switch.
146
   *          the target of the switch.
143
   * <!-- end-user-doc -->
144
   * @param object the target of the switch.
147
   * @return the result of interpreting the object as an instance of '<em>Value</em>'.
145
   * @return the result of interpreting the object as an instance of '<em>Value</em>'.
148
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
146
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
149
   * @generated
147
   * @generated
150
   */
148
   */
151
  public T caseValue(Value object)
149
  public T caseMangoValue(MangoValue object)
152
  {
150
  {
153
    return null;
151
    return null;
154
  }
152
  }
155
153
156
  /**
154
  /**
157
   * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'. <!-- begin-user-doc --> This
155
   * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'.
158
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
156
   * <!-- begin-user-doc -->
159
   * 
157
   * This implementation returns null;
160
   * @param object
158
   * returning a non-null result will terminate the switch.
161
   *          the target of the switch.
159
   * <!-- end-user-doc -->
160
   * @param object the target of the switch.
162
   * @return the result of interpreting the object as an instance of '<em>Parameter</em>'.
161
   * @return the result of interpreting the object as an instance of '<em>Parameter</em>'.
163
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
162
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
164
   * @generated
163
   * @generated
165
   */
164
   */
166
  public T caseParameter(Parameter object)
165
  public T caseMangoParameter(MangoParameter object)
167
  {
166
  {
168
    return null;
167
    return null;
169
  }
168
  }
170
169
171
  /**
170
  /**
172
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This
171
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
172
   * <!-- begin-user-doc --> This
173
   * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
173
   * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
174
   * anyway. <!-- end-user-doc -->
174
   * anyway. <!-- end-user-doc -->
175
   * 
175
   * @param object the target of the switch.
176
   * @param object
177
   *          the target of the switch.
178
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
176
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
179
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
177
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
180
   * @generated
178
   * @generated
(-)src/org/eclipse/emf/cdo/tests/mango/util/MangoAdapterFactory.java (-42 / +43 lines)
Lines 11-19 Link Here
11
package org.eclipse.emf.cdo.tests.mango.util;
11
package org.eclipse.emf.cdo.tests.mango.util;
12
12
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.Parameter;
14
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
15
import org.eclipse.emf.cdo.tests.mango.Value;
15
import org.eclipse.emf.cdo.tests.mango.MangoValue;
16
import org.eclipse.emf.cdo.tests.mango.ValueList;
16
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
17
17
18
import org.eclipse.emf.common.notify.Adapter;
18
import org.eclipse.emf.common.notify.Adapter;
19
import org.eclipse.emf.common.notify.Notifier;
19
import org.eclipse.emf.common.notify.Notifier;
Lines 23-44 Link Here
23
/**
23
/**
24
 * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
24
 * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
25
 * method for each class of the model. <!-- end-user-doc -->
25
 * method for each class of the model. <!-- end-user-doc -->
26
 * 
27
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage
26
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage
28
 * @generated
27
 * @generated
29
 */
28
 */
30
public class MangoAdapterFactory extends AdapterFactoryImpl
29
public class MangoAdapterFactory extends AdapterFactoryImpl
31
{
30
{
32
  /**
31
  /**
33
   * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
32
   * The cached model package.
34
   * 
33
   * <!-- begin-user-doc --> <!-- end-user-doc -->
35
   * @generated
34
   * @generated
36
   */
35
   */
37
  protected static MangoPackage modelPackage;
36
  protected static MangoPackage modelPackage;
38
37
39
  /**
38
  /**
40
   * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
39
   * Creates an instance of the adapter factory.
41
   * 
40
   * <!-- begin-user-doc --> <!-- end-user-doc -->
42
   * @generated
41
   * @generated
43
   */
42
   */
44
  public MangoAdapterFactory()
43
  public MangoAdapterFactory()
Lines 50-59 Link Here
50
  }
49
  }
51
50
52
  /**
51
  /**
53
   * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> This implementation
52
   * Returns whether this factory is applicable for the type of the object.
53
   * <!-- begin-user-doc --> This implementation
54
   * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
54
   * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
55
   * end-user-doc -->
55
   * end-user-doc -->
56
   * 
57
   * @return whether this factory is applicable for the type of the object.
56
   * @return whether this factory is applicable for the type of the object.
58
   * @generated
57
   * @generated
59
   */
58
   */
Lines 72-99 Link Here
72
  }
71
  }
73
72
74
  /**
73
  /**
75
   * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- end-user-doc -->
74
   * The switch that delegates to the <code>createXXX</code> methods.
76
   * 
75
   * <!-- begin-user-doc --> <!-- end-user-doc -->
77
   * @generated
76
   * @generated
78
   */
77
   */
79
  protected MangoSwitch<Adapter> modelSwitch = new MangoSwitch<Adapter>()
78
  protected MangoSwitch<Adapter> modelSwitch = new MangoSwitch<Adapter>()
80
  {
79
  {
81
    @Override
80
    @Override
82
    public Adapter caseValueList(ValueList object)
81
    public Adapter caseMangoValueList(MangoValueList object)
83
    {
82
    {
84
      return createValueListAdapter();
83
      return createMangoValueListAdapter();
85
    }
84
    }
86
85
87
    @Override
86
    @Override
88
    public Adapter caseValue(Value object)
87
    public Adapter caseMangoValue(MangoValue object)
89
    {
88
    {
90
      return createValueAdapter();
89
      return createMangoValueAdapter();
91
    }
90
    }
92
91
93
    @Override
92
    @Override
94
    public Adapter caseParameter(Parameter object)
93
    public Adapter caseMangoParameter(MangoParameter object)
95
    {
94
    {
96
      return createParameterAdapter();
95
      return createMangoParameterAdapter();
97
    }
96
    }
98
97
99
    @Override
98
    @Override
Lines 104-113 Link Here
104
  };
103
  };
105
104
106
  /**
105
  /**
107
   * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc -->
106
   * Creates an adapter for the <code>target</code>.
108
   * 
107
   * <!-- begin-user-doc --> <!-- end-user-doc -->
109
   * @param target
108
   * @param target the object to adapt.
110
   *          the object to adapt.
111
   * @return the adapter for the <code>target</code>.
109
   * @return the adapter for the <code>target</code>.
112
   * @generated
110
   * @generated
113
   */
111
   */
Lines 118-168 Link Here
118
  }
116
  }
119
117
120
  /**
118
  /**
121
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.ValueList <em>Value List</em>}
119
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList <em>Value List</em>}'.
122
   * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
120
   * <!-- begin-user-doc -->
123
   * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
121
   * This default implementation returns null so that we can easily ignore cases;
124
   * 
122
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
123
   * <!-- end-user-doc -->
125
   * @return the new adapter.
124
   * @return the new adapter.
126
   * @see org.eclipse.emf.cdo.tests.mango.ValueList
125
   * @see org.eclipse.emf.cdo.tests.mango.MangoValueList
127
   * @generated
126
   * @generated
128
   */
127
   */
129
  public Adapter createValueListAdapter()
128
  public Adapter createMangoValueListAdapter()
130
  {
129
  {
131
    return null;
130
    return null;
132
  }
131
  }
133
132
134
  /**
133
  /**
135
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.Value <em>Value</em>}'. <!--
134
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoValue <em>Value</em>}'.
136
   * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
135
   * <!-- begin-user-doc -->
137
   * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
136
   * This default implementation returns null so that we can easily ignore cases;
138
   * 
137
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
138
   * <!-- end-user-doc -->
139
   * @return the new adapter.
139
   * @return the new adapter.
140
   * @see org.eclipse.emf.cdo.tests.mango.Value
140
   * @see org.eclipse.emf.cdo.tests.mango.MangoValue
141
   * @generated
141
   * @generated
142
   */
142
   */
143
  public Adapter createValueAdapter()
143
  public Adapter createMangoValueAdapter()
144
  {
144
  {
145
    return null;
145
    return null;
146
  }
146
  }
147
147
148
  /**
148
  /**
149
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.Parameter <em>Parameter</em>}
149
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter <em>Parameter</em>}'.
150
   * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
150
   * <!-- begin-user-doc -->
151
   * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
151
   * This default implementation returns null so that we can easily ignore cases;
152
   * 
152
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
153
   * <!-- end-user-doc -->
153
   * @return the new adapter.
154
   * @return the new adapter.
154
   * @see org.eclipse.emf.cdo.tests.mango.Parameter
155
   * @see org.eclipse.emf.cdo.tests.mango.MangoParameter
155
   * @generated
156
   * @generated
156
   */
157
   */
157
  public Adapter createParameterAdapter()
158
  public Adapter createMangoParameterAdapter()
158
  {
159
  {
159
    return null;
160
    return null;
160
  }
161
  }
161
162
162
  /**
163
  /**
163
   * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!--
164
   * Creates a new adapter for the default case.
165
   * <!-- begin-user-doc --> This default implementation returns null. <!--
164
   * end-user-doc -->
166
   * end-user-doc -->
165
   * 
166
   * @return the new adapter.
167
   * @return the new adapter.
167
   * @generated
168
   * @generated
168
   */
169
   */
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoValueImpl.java (+174 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: ValueImpl.java,v 1.5 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
14
15
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.mango.MangoValue;
17
18
import org.eclipse.emf.common.notify.Notification;
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.impl.ENotificationImpl;
21
import org.eclipse.emf.ecore.impl.EObjectImpl;
22
23
/**
24
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Value</b></em>'. <!-- end-user-doc -->
25
 * <p>
26
 * The following features are implemented:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoValueImpl#getName <em>Name</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @generated
33
 */
34
public class MangoValueImpl extends EObjectImpl implements MangoValue
35
{
36
  /**
37
   * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
38
   * -->
39
   * 
40
   * @see #getName()
41
   * @generated
42
   * @ordered
43
   */
44
  protected static final String NAME_EDEFAULT = null;
45
46
  /**
47
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
48
   * <!-- begin-user-doc --> <!-- end-user-doc -->
49
   * @see #getName()
50
   * @generated
51
   * @ordered
52
   */
53
  protected String name = NAME_EDEFAULT;
54
55
  /**
56
   * <!-- begin-user-doc --> <!-- end-user-doc -->
57
   * @generated
58
   */
59
  protected MangoValueImpl()
60
  {
61
    super();
62
  }
63
64
  /**
65
   * <!-- begin-user-doc --> <!-- end-user-doc -->
66
   * @generated
67
   */
68
  @Override
69
  protected EClass eStaticClass()
70
  {
71
    return MangoPackage.Literals.MANGO_VALUE;
72
  }
73
74
  /**
75
   * <!-- begin-user-doc --> <!-- end-user-doc -->
76
   * @generated
77
   */
78
  public String getName()
79
  {
80
    return name;
81
  }
82
83
  /**
84
   * <!-- begin-user-doc --> <!-- end-user-doc -->
85
   * @generated
86
   */
87
  public void setName(String newName)
88
  {
89
    String oldName = name;
90
    name = newName;
91
    if (eNotificationRequired())
92
      eNotify(new ENotificationImpl(this, Notification.SET, MangoPackage.MANGO_VALUE__NAME, oldName, name));
93
  }
94
95
  /**
96
   * <!-- begin-user-doc --> <!-- end-user-doc -->
97
   * @generated
98
   */
99
  @Override
100
  public Object eGet(int featureID, boolean resolve, boolean coreType)
101
  {
102
    switch (featureID)
103
    {
104
    case MangoPackage.MANGO_VALUE__NAME:
105
      return getName();
106
    }
107
    return super.eGet(featureID, resolve, coreType);
108
  }
109
110
  /**
111
   * <!-- begin-user-doc --> <!-- end-user-doc -->
112
   * @generated
113
   */
114
  @Override
115
  public void eSet(int featureID, Object newValue)
116
  {
117
    switch (featureID)
118
    {
119
    case MangoPackage.MANGO_VALUE__NAME:
120
      setName((String)newValue);
121
      return;
122
    }
123
    super.eSet(featureID, newValue);
124
  }
125
126
  /**
127
   * <!-- begin-user-doc --> <!-- end-user-doc -->
128
   * @generated
129
   */
130
  @Override
131
  public void eUnset(int featureID)
132
  {
133
    switch (featureID)
134
    {
135
    case MangoPackage.MANGO_VALUE__NAME:
136
      setName(NAME_EDEFAULT);
137
      return;
138
    }
139
    super.eUnset(featureID);
140
  }
141
142
  /**
143
   * <!-- begin-user-doc --> <!-- end-user-doc -->
144
   * @generated
145
   */
146
  @Override
147
  public boolean eIsSet(int featureID)
148
  {
149
    switch (featureID)
150
    {
151
    case MangoPackage.MANGO_VALUE__NAME:
152
      return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
153
    }
154
    return super.eIsSet(featureID);
155
  }
156
157
  /**
158
   * <!-- begin-user-doc --> <!-- end-user-doc -->
159
   * @generated
160
   */
161
  @Override
162
  public String toString()
163
  {
164
    if (eIsProxy())
165
      return super.toString();
166
167
    StringBuffer result = new StringBuffer(super.toString());
168
    result.append(" (name: ");
169
    result.append(name);
170
    result.append(')');
171
    return result.toString();
172
  }
173
174
} // ValueImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoParameterImpl.java (+229 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: ParameterImpl.java,v 1.5 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
14
15
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
17
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
18
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.impl.ENotificationImpl;
22
import org.eclipse.emf.ecore.impl.EObjectImpl;
23
24
/**
25
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Parameter</b></em>'. <!-- end-user-doc -->
26
 * <p>
27
 * The following features are implemented:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoParameterImpl#getName <em>Name</em>}</li>
30
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoParameterImpl#getPassing <em>Passing</em>}</li>
31
 * </ul>
32
 * </p>
33
 *
34
 * @generated
35
 */
36
public class MangoParameterImpl extends EObjectImpl implements MangoParameter
37
{
38
  /**
39
   * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
40
   * -->
41
   * 
42
   * @see #getName()
43
   * @generated
44
   * @ordered
45
   */
46
  protected static final String NAME_EDEFAULT = null;
47
48
  /**
49
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
50
   * <!-- begin-user-doc --> <!-- end-user-doc -->
51
   * @see #getName()
52
   * @generated
53
   * @ordered
54
   */
55
  protected String name = NAME_EDEFAULT;
56
57
  /**
58
   * The default value of the '{@link #getPassing() <em>Passing</em>}' attribute.
59
   * <!-- begin-user-doc --> <!--
60
   * end-user-doc -->
61
   * @see #getPassing()
62
   * @generated
63
   * @ordered
64
   */
65
  protected static final ParameterPassing PASSING_EDEFAULT = ParameterPassing.BY_VALUE;
66
67
  /**
68
   * The cached value of the '{@link #getPassing() <em>Passing</em>}' attribute.
69
   * <!-- begin-user-doc --> <!--
70
   * end-user-doc -->
71
   * @see #getPassing()
72
   * @generated
73
   * @ordered
74
   */
75
  protected ParameterPassing passing = PASSING_EDEFAULT;
76
77
  /**
78
   * <!-- begin-user-doc --> <!-- end-user-doc -->
79
   * @generated
80
   */
81
  protected MangoParameterImpl()
82
  {
83
    super();
84
  }
85
86
  /**
87
   * <!-- begin-user-doc --> <!-- end-user-doc -->
88
   * @generated
89
   */
90
  @Override
91
  protected EClass eStaticClass()
92
  {
93
    return MangoPackage.Literals.MANGO_PARAMETER;
94
  }
95
96
  /**
97
   * <!-- begin-user-doc --> <!-- end-user-doc -->
98
   * @generated
99
   */
100
  public String getName()
101
  {
102
    return name;
103
  }
104
105
  /**
106
   * <!-- begin-user-doc --> <!-- end-user-doc -->
107
   * @generated
108
   */
109
  public void setName(String newName)
110
  {
111
    String oldName = name;
112
    name = newName;
113
    if (eNotificationRequired())
114
      eNotify(new ENotificationImpl(this, Notification.SET, MangoPackage.MANGO_PARAMETER__NAME, oldName, name));
115
  }
116
117
  /**
118
   * <!-- begin-user-doc --> <!-- end-user-doc -->
119
   * @generated
120
   */
121
  public ParameterPassing getPassing()
122
  {
123
    return passing;
124
  }
125
126
  /**
127
   * <!-- begin-user-doc --> <!-- end-user-doc -->
128
   * @generated
129
   */
130
  public void setPassing(ParameterPassing newPassing)
131
  {
132
    ParameterPassing oldPassing = passing;
133
    passing = newPassing == null ? PASSING_EDEFAULT : newPassing;
134
    if (eNotificationRequired())
135
      eNotify(new ENotificationImpl(this, Notification.SET, MangoPackage.MANGO_PARAMETER__PASSING, oldPassing, passing));
136
  }
137
138
  /**
139
   * <!-- begin-user-doc --> <!-- end-user-doc -->
140
   * @generated
141
   */
142
  @Override
143
  public Object eGet(int featureID, boolean resolve, boolean coreType)
144
  {
145
    switch (featureID)
146
    {
147
    case MangoPackage.MANGO_PARAMETER__NAME:
148
      return getName();
149
    case MangoPackage.MANGO_PARAMETER__PASSING:
150
      return getPassing();
151
    }
152
    return super.eGet(featureID, resolve, coreType);
153
  }
154
155
  /**
156
   * <!-- begin-user-doc --> <!-- end-user-doc -->
157
   * @generated
158
   */
159
  @Override
160
  public void eSet(int featureID, Object newValue)
161
  {
162
    switch (featureID)
163
    {
164
    case MangoPackage.MANGO_PARAMETER__NAME:
165
      setName((String)newValue);
166
      return;
167
    case MangoPackage.MANGO_PARAMETER__PASSING:
168
      setPassing((ParameterPassing)newValue);
169
      return;
170
    }
171
    super.eSet(featureID, newValue);
172
  }
173
174
  /**
175
   * <!-- begin-user-doc --> <!-- end-user-doc -->
176
   * @generated
177
   */
178
  @Override
179
  public void eUnset(int featureID)
180
  {
181
    switch (featureID)
182
    {
183
    case MangoPackage.MANGO_PARAMETER__NAME:
184
      setName(NAME_EDEFAULT);
185
      return;
186
    case MangoPackage.MANGO_PARAMETER__PASSING:
187
      setPassing(PASSING_EDEFAULT);
188
      return;
189
    }
190
    super.eUnset(featureID);
191
  }
192
193
  /**
194
   * <!-- begin-user-doc --> <!-- end-user-doc -->
195
   * @generated
196
   */
197
  @Override
198
  public boolean eIsSet(int featureID)
199
  {
200
    switch (featureID)
201
    {
202
    case MangoPackage.MANGO_PARAMETER__NAME:
203
      return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
204
    case MangoPackage.MANGO_PARAMETER__PASSING:
205
      return passing != PASSING_EDEFAULT;
206
    }
207
    return super.eIsSet(featureID);
208
  }
209
210
  /**
211
   * <!-- begin-user-doc --> <!-- end-user-doc -->
212
   * @generated
213
   */
214
  @Override
215
  public String toString()
216
  {
217
    if (eIsProxy())
218
      return super.toString();
219
220
    StringBuffer result = new StringBuffer(super.toString());
221
    result.append(" (name: ");
222
    result.append(name);
223
    result.append(", passing: ");
224
    result.append(passing);
225
    result.append(')');
226
    return result.toString();
227
  }
228
229
} // ParameterImpl
(-)src/org/eclipse/emf/cdo/tests/mango/impl/MangoValueListImpl.java (+93 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango.impl;
12
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.MangoValue;
15
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
16
17
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
18
19
import org.eclipse.emf.common.util.EList;
20
import org.eclipse.emf.ecore.EClass;
21
22
/**
23
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Value List</b></em>'. <!-- end-user-doc -->
24
 * <p>
25
 * The following features are implemented:
26
 * <ul>
27
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.impl.MangoValueListImpl#getName <em>Name</em>}</li>
28
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.impl.MangoValueListImpl#getValues <em>Values</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @generated
33
 */
34
public class MangoValueListImpl extends CDOObjectImpl implements MangoValueList
35
{
36
  /**
37
   * <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * @generated
39
   */
40
  protected MangoValueListImpl()
41
  {
42
    super();
43
  }
44
45
  /**
46
   * <!-- begin-user-doc --> <!-- end-user-doc -->
47
   * @generated
48
   */
49
  @Override
50
  protected EClass eStaticClass()
51
  {
52
    return MangoPackage.Literals.MANGO_VALUE_LIST;
53
  }
54
55
  /**
56
   * <!-- begin-user-doc --> <!-- end-user-doc -->
57
   * @generated
58
   */
59
  @Override
60
  protected int eStaticFeatureCount()
61
  {
62
    return 0;
63
  }
64
65
  /**
66
   * <!-- begin-user-doc --> <!-- end-user-doc -->
67
   * @generated
68
   */
69
  public String getName()
70
  {
71
    return (String)eGet(MangoPackage.Literals.MANGO_VALUE_LIST__NAME, true);
72
  }
73
74
  /**
75
   * <!-- begin-user-doc --> <!-- end-user-doc -->
76
   * @generated
77
   */
78
  public void setName(String newName)
79
  {
80
    eSet(MangoPackage.Literals.MANGO_VALUE_LIST__NAME, newName);
81
  }
82
83
  /**
84
   * <!-- begin-user-doc --> <!-- end-user-doc -->
85
   * @generated
86
   */
87
  @SuppressWarnings("unchecked")
88
  public EList<MangoValue> getValues()
89
  {
90
    return (EList<MangoValue>)eGet(MangoPackage.Literals.MANGO_VALUE_LIST__VALUES, true);
91
  }
92
93
} // ValueListImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoValueListImpl.java (+215 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: ValueListImpl.java,v 1.5 2009/08/22 09:34:41 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.mango.impl;
14
15
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
16
import org.eclipse.emf.cdo.tests.mango.MangoValue;
17
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
18
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.util.EList;
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.impl.ENotificationImpl;
23
import org.eclipse.emf.ecore.impl.EObjectImpl;
24
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
25
26
import java.util.Collection;
27
28
/**
29
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Value List</b></em>'. <!-- end-user-doc -->
30
 * <p>
31
 * The following features are implemented:
32
 * <ul>
33
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoValueListImpl#getName <em>Name</em>}</li>
34
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoValueListImpl#getValues <em>Values</em>}</li>
35
 * </ul>
36
 * </p>
37
 *
38
 * @generated
39
 */
40
public class MangoValueListImpl extends EObjectImpl implements MangoValueList
41
{
42
  /**
43
   * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
44
   * -->
45
   * 
46
   * @see #getName()
47
   * @generated
48
   * @ordered
49
   */
50
  protected static final String NAME_EDEFAULT = null;
51
52
  /**
53
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
54
   * <!-- begin-user-doc --> <!-- end-user-doc -->
55
   * @see #getName()
56
   * @generated
57
   * @ordered
58
   */
59
  protected String name = NAME_EDEFAULT;
60
61
  /**
62
   * The cached value of the '{@link #getValues() <em>Values</em>}' reference list.
63
   * <!-- begin-user-doc --> <!--
64
   * end-user-doc -->
65
   * @see #getValues()
66
   * @generated
67
   * @ordered
68
   */
69
  protected EList<MangoValue> values;
70
71
  /**
72
   * <!-- begin-user-doc --> <!-- end-user-doc -->
73
   * @generated
74
   */
75
  protected MangoValueListImpl()
76
  {
77
    super();
78
  }
79
80
  /**
81
   * <!-- begin-user-doc --> <!-- end-user-doc -->
82
   * @generated
83
   */
84
  @Override
85
  protected EClass eStaticClass()
86
  {
87
    return MangoPackage.Literals.MANGO_VALUE_LIST;
88
  }
89
90
  /**
91
   * <!-- begin-user-doc --> <!-- end-user-doc -->
92
   * @generated
93
   */
94
  public String getName()
95
  {
96
    return name;
97
  }
98
99
  /**
100
   * <!-- begin-user-doc --> <!-- end-user-doc -->
101
   * @generated
102
   */
103
  public void setName(String newName)
104
  {
105
    String oldName = name;
106
    name = newName;
107
    if (eNotificationRequired())
108
      eNotify(new ENotificationImpl(this, Notification.SET, MangoPackage.MANGO_VALUE_LIST__NAME, oldName, name));
109
  }
110
111
  /**
112
   * <!-- begin-user-doc --> <!-- end-user-doc -->
113
   * @generated
114
   */
115
  public EList<MangoValue> getValues()
116
  {
117
    if (values == null)
118
    {
119
      values = new EObjectResolvingEList<MangoValue>(MangoValue.class, this, MangoPackage.MANGO_VALUE_LIST__VALUES);
120
    }
121
    return values;
122
  }
123
124
  /**
125
   * <!-- begin-user-doc --> <!-- end-user-doc -->
126
   * @generated
127
   */
128
  @Override
129
  public Object eGet(int featureID, boolean resolve, boolean coreType)
130
  {
131
    switch (featureID)
132
    {
133
    case MangoPackage.MANGO_VALUE_LIST__NAME:
134
      return getName();
135
    case MangoPackage.MANGO_VALUE_LIST__VALUES:
136
      return getValues();
137
    }
138
    return super.eGet(featureID, resolve, coreType);
139
  }
140
141
  /**
142
   * <!-- begin-user-doc --> <!-- end-user-doc -->
143
   * @generated
144
   */
145
  @SuppressWarnings("unchecked")
146
  @Override
147
  public void eSet(int featureID, Object newValue)
148
  {
149
    switch (featureID)
150
    {
151
    case MangoPackage.MANGO_VALUE_LIST__NAME:
152
      setName((String)newValue);
153
      return;
154
    case MangoPackage.MANGO_VALUE_LIST__VALUES:
155
      getValues().clear();
156
      getValues().addAll((Collection<? extends MangoValue>)newValue);
157
      return;
158
    }
159
    super.eSet(featureID, newValue);
160
  }
161
162
  /**
163
   * <!-- begin-user-doc --> <!-- end-user-doc -->
164
   * @generated
165
   */
166
  @Override
167
  public void eUnset(int featureID)
168
  {
169
    switch (featureID)
170
    {
171
    case MangoPackage.MANGO_VALUE_LIST__NAME:
172
      setName(NAME_EDEFAULT);
173
      return;
174
    case MangoPackage.MANGO_VALUE_LIST__VALUES:
175
      getValues().clear();
176
      return;
177
    }
178
    super.eUnset(featureID);
179
  }
180
181
  /**
182
   * <!-- begin-user-doc --> <!-- end-user-doc -->
183
   * @generated
184
   */
185
  @Override
186
  public boolean eIsSet(int featureID)
187
  {
188
    switch (featureID)
189
    {
190
    case MangoPackage.MANGO_VALUE_LIST__NAME:
191
      return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
192
    case MangoPackage.MANGO_VALUE_LIST__VALUES:
193
      return values != null && !values.isEmpty();
194
    }
195
    return super.eIsSet(featureID);
196
  }
197
198
  /**
199
   * <!-- begin-user-doc --> <!-- end-user-doc -->
200
   * @generated
201
   */
202
  @Override
203
  public String toString()
204
  {
205
    if (eIsProxy())
206
      return super.toString();
207
208
    StringBuffer result = new StringBuffer(super.toString());
209
    result.append(" (name: ");
210
    result.append(name);
211
    result.append(')');
212
    return result.toString();
213
  }
214
215
} // ValueListImpl
(-)src/org/eclipse/emf/cdo/tests/mango/MangoValueList.java (+75 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango;
12
13
import org.eclipse.emf.common.util.EList;
14
import org.eclipse.emf.ecore.EObject;
15
16
/**
17
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Value List</b></em>'. <!-- end-user-doc -->
18
 *
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.MangoValueList#getName <em>Name</em>}</li>
23
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.MangoValueList#getValues <em>Values</em>}</li>
24
 * </ul>
25
 * </p>
26
 *
27
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoValueList()
28
 * @model
29
 * @generated
30
 */
31
public interface MangoValueList extends EObject
32
{
33
  /**
34
   * Returns the value of the '<em><b>Name</b></em>' attribute.
35
   * <!-- begin-user-doc -->
36
   * <p>
37
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
38
   * </p>
39
   * <!-- end-user-doc -->
40
   * @return the value of the '<em>Name</em>' attribute.
41
   * @see #setName(String)
42
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoValueList_Name()
43
   * @model
44
   * @generated
45
   */
46
  String getName();
47
48
  /**
49
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList#getName <em>Name</em>}' attribute. <!--
50
   * begin-user-doc --> <!-- end-user-doc -->
51
   * 
52
   * @param value
53
   *          the new value of the '<em>Name</em>' attribute.
54
   * @see #getName()
55
   * @generated
56
   */
57
  void setName(String value);
58
59
  /**
60
   * Returns the value of the '<em><b>Values</b></em>' reference list.
61
   * The list contents are of type {@link org.eclipse.emf.cdo.tests.mango.MangoValue}.
62
   * <!-- begin-user-doc -->
63
   * <p>
64
   * If the meaning of the '<em>Values</em>' reference list isn't clear, there really should be more of a description
65
   * here...
66
   * </p>
67
   * <!-- end-user-doc -->
68
   * @return the value of the '<em>Values</em>' reference list.
69
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoValueList_Values()
70
   * @model
71
   * @generated
72
   */
73
  EList<MangoValue> getValues();
74
75
} // ValueList
(-)src/org/eclipse/emf/cdo/tests/mango/MangoValue.java (+57 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango;
12
13
import org.eclipse.emf.ecore.EObject;
14
15
/**
16
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Value</b></em>'. <!-- end-user-doc -->
17
 *
18
 * <p>
19
 * The following features are supported:
20
 * <ul>
21
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.MangoValue#getName <em>Name</em>}</li>
22
 * </ul>
23
 * </p>
24
 *
25
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoValue()
26
 * @model
27
 * @generated
28
 */
29
public interface MangoValue extends EObject
30
{
31
  /**
32
   * Returns the value of the '<em><b>Name</b></em>' attribute.
33
   * <!-- begin-user-doc -->
34
   * <p>
35
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
36
   * </p>
37
   * <!-- end-user-doc -->
38
   * @return the value of the '<em>Name</em>' attribute.
39
   * @see #setName(String)
40
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoValue_Name()
41
   * @model
42
   * @generated
43
   */
44
  String getName();
45
46
  /**
47
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.MangoValue#getName <em>Name</em>}' attribute. <!--
48
   * begin-user-doc --> <!-- end-user-doc -->
49
   * 
50
   * @param value
51
   *          the new value of the '<em>Name</em>' attribute.
52
   * @see #getName()
53
   * @generated
54
   */
55
  void setName(String value);
56
57
} // Value
(-)src/org/eclipse/emf/cdo/tests/mango/impl/MangoValueImpl.java (+80 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango.impl;
12
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.MangoValue;
15
16
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
17
18
import org.eclipse.emf.ecore.EClass;
19
20
/**
21
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Value</b></em>'. <!-- end-user-doc -->
22
 * <p>
23
 * The following features are implemented:
24
 * <ul>
25
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.impl.MangoValueImpl#getName <em>Name</em>}</li>
26
 * </ul>
27
 * </p>
28
 *
29
 * @generated
30
 */
31
public class MangoValueImpl extends CDOObjectImpl implements MangoValue
32
{
33
  /**
34
   * <!-- begin-user-doc --> <!-- end-user-doc -->
35
   * @generated
36
   */
37
  protected MangoValueImpl()
38
  {
39
    super();
40
  }
41
42
  /**
43
   * <!-- begin-user-doc --> <!-- end-user-doc -->
44
   * @generated
45
   */
46
  @Override
47
  protected EClass eStaticClass()
48
  {
49
    return MangoPackage.Literals.MANGO_VALUE;
50
  }
51
52
  /**
53
   * <!-- begin-user-doc --> <!-- end-user-doc -->
54
   * @generated
55
   */
56
  @Override
57
  protected int eStaticFeatureCount()
58
  {
59
    return 0;
60
  }
61
62
  /**
63
   * <!-- begin-user-doc --> <!-- end-user-doc -->
64
   * @generated
65
   */
66
  public String getName()
67
  {
68
    return (String)eGet(MangoPackage.Literals.MANGO_VALUE__NAME, true);
69
  }
70
71
  /**
72
   * <!-- begin-user-doc --> <!-- end-user-doc -->
73
   * @generated
74
   */
75
  public void setName(String newName)
76
  {
77
    eSet(MangoPackage.Literals.MANGO_VALUE__NAME, newName);
78
  }
79
80
} // ValueImpl
(-)src/org/eclipse/emf/cdo/tests/mango/impl/MangoParameterImpl.java (+100 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango.impl;
12
13
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
14
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
15
import org.eclipse.emf.cdo.tests.mango.ParameterPassing;
16
17
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
18
19
import org.eclipse.emf.ecore.EClass;
20
21
/**
22
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Parameter</b></em>'. <!-- end-user-doc -->
23
 * <p>
24
 * The following features are implemented:
25
 * <ul>
26
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.impl.MangoParameterImpl#getName <em>Name</em>}</li>
27
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.impl.MangoParameterImpl#getPassing <em>Passing</em>}</li>
28
 * </ul>
29
 * </p>
30
 *
31
 * @generated
32
 */
33
public class MangoParameterImpl extends CDOObjectImpl implements MangoParameter
34
{
35
  /**
36
   * <!-- begin-user-doc --> <!-- end-user-doc -->
37
   * @generated
38
   */
39
  protected MangoParameterImpl()
40
  {
41
    super();
42
  }
43
44
  /**
45
   * <!-- begin-user-doc --> <!-- end-user-doc -->
46
   * @generated
47
   */
48
  @Override
49
  protected EClass eStaticClass()
50
  {
51
    return MangoPackage.Literals.MANGO_PARAMETER;
52
  }
53
54
  /**
55
   * <!-- begin-user-doc --> <!-- end-user-doc -->
56
   * @generated
57
   */
58
  @Override
59
  protected int eStaticFeatureCount()
60
  {
61
    return 0;
62
  }
63
64
  /**
65
   * <!-- begin-user-doc --> <!-- end-user-doc -->
66
   * @generated
67
   */
68
  public String getName()
69
  {
70
    return (String)eGet(MangoPackage.Literals.MANGO_PARAMETER__NAME, true);
71
  }
72
73
  /**
74
   * <!-- begin-user-doc --> <!-- end-user-doc -->
75
   * @generated
76
   */
77
  public void setName(String newName)
78
  {
79
    eSet(MangoPackage.Literals.MANGO_PARAMETER__NAME, newName);
80
  }
81
82
  /**
83
   * <!-- begin-user-doc --> <!-- end-user-doc -->
84
   * @generated
85
   */
86
  public ParameterPassing getPassing()
87
  {
88
    return (ParameterPassing)eGet(MangoPackage.Literals.MANGO_PARAMETER__PASSING, true);
89
  }
90
91
  /**
92
   * <!-- begin-user-doc --> <!-- end-user-doc -->
93
   * @generated
94
   */
95
  public void setPassing(ParameterPassing newPassing)
96
  {
97
    eSet(MangoPackage.Literals.MANGO_PARAMETER__PASSING, newPassing);
98
  }
99
100
} // ParameterImpl
(-)src/org/eclipse/emf/cdo/tests/mango/MangoParameter.java (+86 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests.mango;
12
13
import org.eclipse.emf.ecore.EObject;
14
15
/**
16
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Parameter</b></em>'. <!-- end-user-doc -->
17
 *
18
 * <p>
19
 * The following features are supported:
20
 * <ul>
21
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getName <em>Name</em>}</li>
22
 *   <li>{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getPassing <em>Passing</em>}</li>
23
 * </ul>
24
 * </p>
25
 *
26
 * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoParameter()
27
 * @model
28
 * @generated
29
 */
30
public interface MangoParameter extends EObject
31
{
32
  /**
33
   * Returns the value of the '<em><b>Name</b></em>' attribute.
34
   * <!-- begin-user-doc -->
35
   * <p>
36
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
37
   * </p>
38
   * <!-- end-user-doc -->
39
   * @return the value of the '<em>Name</em>' attribute.
40
   * @see #setName(String)
41
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoParameter_Name()
42
   * @model
43
   * @generated
44
   */
45
  String getName();
46
47
  /**
48
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getName <em>Name</em>}' attribute. <!--
49
   * begin-user-doc --> <!-- end-user-doc -->
50
   * 
51
   * @param value
52
   *          the new value of the '<em>Name</em>' attribute.
53
   * @see #getName()
54
   * @generated
55
   */
56
  void setName(String value);
57
58
  /**
59
   * Returns the value of the '<em><b>Passing</b></em>' attribute.
60
   * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.mango.ParameterPassing}.
61
   * <!-- begin-user-doc -->
62
   * <p>
63
   * If the meaning of the '<em>Passing</em>' attribute isn't clear, there really should be more of a description
64
   * here...
65
   * </p>
66
   * <!-- end-user-doc -->
67
   * @return the value of the '<em>Passing</em>' attribute.
68
   * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
69
   * @see #setPassing(ParameterPassing)
70
   * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoParameter_Passing()
71
   * @model
72
   * @generated
73
   */
74
  ParameterPassing getPassing();
75
76
  /**
77
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getPassing <em>Passing</em>}' attribute.
78
   * <!-- begin-user-doc --> <!-- end-user-doc -->
79
   * @param value the new value of the '<em>Passing</em>' attribute.
80
   * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
81
   * @see #getPassing()
82
   * @generated
83
   */
84
  void setPassing(ParameterPassing value);
85
86
} // Parameter
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/OrderDetailImpl.java (-59 / +61 lines)
Lines 8-21 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: OrderDetailImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Order;
16
import org.eclipse.emf.cdo.tests.model1.Order;
17
import org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail;
17
import org.eclipse.emf.cdo.tests.model1.OrderDetail;
18
import org.eclipse.emf.cdo.tests.legacy.model1.Product1;
18
import org.eclipse.emf.cdo.tests.model1.Product1;
19
19
20
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.notify.Notification;
21
import org.eclipse.emf.common.notify.NotificationChain;
21
import org.eclipse.emf.common.notify.NotificationChain;
Lines 26-56 Link Here
26
import org.eclipse.emf.ecore.util.EcoreUtil;
26
import org.eclipse.emf.ecore.util.EcoreUtil;
27
27
28
/**
28
/**
29
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Order Detail</b></em>'. <!-- end-user-doc -->
29
 * <!-- begin-user-doc -->
30
 * An implementation of the model object '<em><b>Order Detail</b></em>'.
31
 * <!-- end-user-doc -->
30
 * <p>
32
 * <p>
31
 * The following features are implemented:
33
 * The following features are implemented:
32
 * <ul>
34
 * <ul>
33
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderDetailImpl#getOrder <em>Order</em>}</li>
35
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderDetailImpl#getOrder <em>Order</em>}</li>
34
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderDetailImpl#getProduct <em>Product</em>}</li>
36
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderDetailImpl#getProduct <em>Product</em>}</li>
35
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderDetailImpl#getPrice <em>Price</em>}</li>
37
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderDetailImpl#getPrice <em>Price</em>}</li>
36
 * </ul>
38
 * </ul>
37
 * </p>
39
 * </p>
38
 * 
40
 *
39
 * @generated
41
 * @generated
40
 */
42
 */
41
public class OrderDetailImpl extends EObjectImpl implements OrderDetail
43
public class OrderDetailImpl extends EObjectImpl implements OrderDetail
42
{
44
{
43
  /**
45
  /**
44
   * <!-- begin-user-doc --> <!-- end-user-doc -->
46
   * <!-- begin-user-doc -->
45
   * 
47
   * <!-- end-user-doc -->
46
   * @generated
48
   * @generated
47
   */
49
   */
48
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
50
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
49
51
50
  /**
52
  /**
51
   * The cached value of the '{@link #getProduct() <em>Product</em>}' reference. <!-- begin-user-doc --> <!--
53
   * The cached value of the '{@link #getProduct() <em>Product</em>}' reference.
52
   * end-user-doc -->
54
   * <!-- begin-user-doc -->
53
   * 
55
   * <!-- end-user-doc -->
54
   * @see #getProduct()
56
   * @see #getProduct()
55
   * @generated
57
   * @generated
56
   * @ordered
58
   * @ordered
Lines 58-66 Link Here
58
  protected Product1 product;
60
  protected Product1 product;
59
61
60
  /**
62
  /**
61
   * The default value of the '{@link #getPrice() <em>Price</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
63
   * The default value of the '{@link #getPrice() <em>Price</em>}' attribute.
62
   * -->
64
   * <!-- begin-user-doc -->
63
   * 
65
   * <!-- end-user-doc -->
64
   * @see #getPrice()
66
   * @see #getPrice()
65
   * @generated
67
   * @generated
66
   * @ordered
68
   * @ordered
Lines 68-76 Link Here
68
  protected static final float PRICE_EDEFAULT = 0.0F;
70
  protected static final float PRICE_EDEFAULT = 0.0F;
69
71
70
  /**
72
  /**
71
   * The cached value of the '{@link #getPrice() <em>Price</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
73
   * The cached value of the '{@link #getPrice() <em>Price</em>}' attribute.
72
   * -->
74
   * <!-- begin-user-doc -->
73
   * 
75
   * <!-- end-user-doc -->
74
   * @see #getPrice()
76
   * @see #getPrice()
75
   * @generated
77
   * @generated
76
   * @ordered
78
   * @ordered
Lines 78-85 Link Here
78
  protected float price = PRICE_EDEFAULT;
80
  protected float price = PRICE_EDEFAULT;
79
81
80
  /**
82
  /**
81
   * <!-- begin-user-doc --> <!-- end-user-doc -->
83
   * <!-- begin-user-doc -->
82
   * 
84
   * <!-- end-user-doc -->
83
   * @generated
85
   * @generated
84
   */
86
   */
85
  protected OrderDetailImpl()
87
  protected OrderDetailImpl()
Lines 88-95 Link Here
88
  }
90
  }
89
91
90
  /**
92
  /**
91
   * <!-- begin-user-doc --> <!-- end-user-doc -->
93
   * <!-- begin-user-doc -->
92
   * 
94
   * <!-- end-user-doc -->
93
   * @generated
95
   * @generated
94
   */
96
   */
95
  @Override
97
  @Override
Lines 99-106 Link Here
99
  }
101
  }
100
102
101
  /**
103
  /**
102
   * <!-- begin-user-doc --> <!-- end-user-doc -->
104
   * <!-- begin-user-doc -->
103
   * 
105
   * <!-- end-user-doc -->
104
   * @generated
106
   * @generated
105
   */
107
   */
106
  public Order getOrder()
108
  public Order getOrder()
Lines 111-118 Link Here
111
  }
113
  }
112
114
113
  /**
115
  /**
114
   * <!-- begin-user-doc --> <!-- end-user-doc -->
116
   * <!-- begin-user-doc -->
115
   * 
117
   * <!-- end-user-doc -->
116
   * @generated
118
   * @generated
117
   */
119
   */
118
  public NotificationChain basicSetOrder(Order newOrder, NotificationChain msgs)
120
  public NotificationChain basicSetOrder(Order newOrder, NotificationChain msgs)
Lines 122-129 Link Here
122
  }
124
  }
123
125
124
  /**
126
  /**
125
   * <!-- begin-user-doc --> <!-- end-user-doc -->
127
   * <!-- begin-user-doc -->
126
   * 
128
   * <!-- end-user-doc -->
127
   * @generated
129
   * @generated
128
   */
130
   */
129
  public void setOrder(Order newOrder)
131
  public void setOrder(Order newOrder)
Lines 147-154 Link Here
147
  }
149
  }
148
150
149
  /**
151
  /**
150
   * <!-- begin-user-doc --> <!-- end-user-doc -->
152
   * <!-- begin-user-doc -->
151
   * 
153
   * <!-- end-user-doc -->
152
   * @generated
154
   * @generated
153
   */
155
   */
154
  public Product1 getProduct()
156
  public Product1 getProduct()
Lines 168-175 Link Here
168
  }
170
  }
169
171
170
  /**
172
  /**
171
   * <!-- begin-user-doc --> <!-- end-user-doc -->
173
   * <!-- begin-user-doc -->
172
   * 
174
   * <!-- end-user-doc -->
173
   * @generated
175
   * @generated
174
   */
176
   */
175
  public Product1 basicGetProduct()
177
  public Product1 basicGetProduct()
Lines 178-185 Link Here
178
  }
180
  }
179
181
180
  /**
182
  /**
181
   * <!-- begin-user-doc --> <!-- end-user-doc -->
183
   * <!-- begin-user-doc -->
182
   * 
184
   * <!-- end-user-doc -->
183
   * @generated
185
   * @generated
184
   */
186
   */
185
  public NotificationChain basicSetProduct(Product1 newProduct, NotificationChain msgs)
187
  public NotificationChain basicSetProduct(Product1 newProduct, NotificationChain msgs)
Lines 199-206 Link Here
199
  }
201
  }
200
202
201
  /**
203
  /**
202
   * <!-- begin-user-doc --> <!-- end-user-doc -->
204
   * <!-- begin-user-doc -->
203
   * 
205
   * <!-- end-user-doc -->
204
   * @generated
206
   * @generated
205
   */
207
   */
206
  public void setProduct(Product1 newProduct)
208
  public void setProduct(Product1 newProduct)
Lines 223-230 Link Here
223
  }
225
  }
224
226
225
  /**
227
  /**
226
   * <!-- begin-user-doc --> <!-- end-user-doc -->
228
   * <!-- begin-user-doc -->
227
   * 
229
   * <!-- end-user-doc -->
228
   * @generated
230
   * @generated
229
   */
231
   */
230
  public float getPrice()
232
  public float getPrice()
Lines 233-240 Link Here
233
  }
235
  }
234
236
235
  /**
237
  /**
236
   * <!-- begin-user-doc --> <!-- end-user-doc -->
238
   * <!-- begin-user-doc -->
237
   * 
239
   * <!-- end-user-doc -->
238
   * @generated
240
   * @generated
239
   */
241
   */
240
  public void setPrice(float newPrice)
242
  public void setPrice(float newPrice)
Lines 246-253 Link Here
246
  }
248
  }
247
249
248
  /**
250
  /**
249
   * <!-- begin-user-doc --> <!-- end-user-doc -->
251
   * <!-- begin-user-doc -->
250
   * 
252
   * <!-- end-user-doc -->
251
   * @generated
253
   * @generated
252
   */
254
   */
253
  @Override
255
  @Override
Lines 269-276 Link Here
269
  }
271
  }
270
272
271
  /**
273
  /**
272
   * <!-- begin-user-doc --> <!-- end-user-doc -->
274
   * <!-- begin-user-doc -->
273
   * 
275
   * <!-- end-user-doc -->
274
   * @generated
276
   * @generated
275
   */
277
   */
276
  @Override
278
  @Override
Lines 287-294 Link Here
287
  }
289
  }
288
290
289
  /**
291
  /**
290
   * <!-- begin-user-doc --> <!-- end-user-doc -->
292
   * <!-- begin-user-doc -->
291
   * 
293
   * <!-- end-user-doc -->
292
   * @generated
294
   * @generated
293
   */
295
   */
294
  @Override
296
  @Override
Lines 303-310 Link Here
303
  }
305
  }
304
306
305
  /**
307
  /**
306
   * <!-- begin-user-doc --> <!-- end-user-doc -->
308
   * <!-- begin-user-doc -->
307
   * 
309
   * <!-- end-user-doc -->
308
   * @generated
310
   * @generated
309
   */
311
   */
310
  @Override
312
  @Override
Lines 325-332 Link Here
325
  }
327
  }
326
328
327
  /**
329
  /**
328
   * <!-- begin-user-doc --> <!-- end-user-doc -->
330
   * <!-- begin-user-doc -->
329
   * 
331
   * <!-- end-user-doc -->
330
   * @generated
332
   * @generated
331
   */
333
   */
332
  @Override
334
  @Override
Lines 348-355 Link Here
348
  }
350
  }
349
351
350
  /**
352
  /**
351
   * <!-- begin-user-doc --> <!-- end-user-doc -->
353
   * <!-- begin-user-doc -->
352
   * 
354
   * <!-- end-user-doc -->
353
   * @generated
355
   * @generated
354
   */
356
   */
355
  @Override
357
  @Override
Lines 371-378 Link Here
371
  }
373
  }
372
374
373
  /**
375
  /**
374
   * <!-- begin-user-doc --> <!-- end-user-doc -->
376
   * <!-- begin-user-doc -->
375
   * 
377
   * <!-- end-user-doc -->
376
   * @generated
378
   * @generated
377
   */
379
   */
378
  @Override
380
  @Override
Lines 391-398 Link Here
391
  }
393
  }
392
394
393
  /**
395
  /**
394
   * <!-- begin-user-doc --> <!-- end-user-doc -->
396
   * <!-- begin-user-doc -->
395
   * 
397
   * <!-- end-user-doc -->
396
   * @generated
398
   * @generated
397
   */
399
   */
398
  @Override
400
  @Override
Lines 408-411 Link Here
408
    return result.toString();
410
    return result.toString();
409
  }
411
  }
410
412
411
} // OrderDetailImpl
413
} //OrderDetailImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/OrderImpl.java (-30 / +32 lines)
Lines 8-20 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: OrderImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Order;
16
import org.eclipse.emf.cdo.tests.model1.Order;
17
import org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail;
17
import org.eclipse.emf.cdo.tests.model1.OrderDetail;
18
18
19
import org.eclipse.emf.common.notify.NotificationChain;
19
import org.eclipse.emf.common.notify.NotificationChain;
20
import org.eclipse.emf.common.util.EList;
20
import org.eclipse.emf.common.util.EList;
Lines 27-55 Link Here
27
import java.util.Collection;
27
import java.util.Collection;
28
28
29
/**
29
/**
30
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Order</b></em>'. <!-- end-user-doc -->
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Order</b></em>'.
32
 * <!-- end-user-doc -->
31
 * <p>
33
 * <p>
32
 * The following features are implemented:
34
 * The following features are implemented:
33
 * <ul>
35
 * <ul>
34
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderImpl#getOrderDetails <em>Order Details</em>}</li>
36
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderImpl#getOrderDetails <em>Order Details</em>}</li>
35
 * </ul>
37
 * </ul>
36
 * </p>
38
 * </p>
37
 * 
39
 *
38
 * @generated
40
 * @generated
39
 */
41
 */
40
public class OrderImpl extends EObjectImpl implements Order
42
public class OrderImpl extends EObjectImpl implements Order
41
{
43
{
42
  /**
44
  /**
43
   * <!-- begin-user-doc --> <!-- end-user-doc -->
45
   * <!-- begin-user-doc -->
44
   * 
46
   * <!-- end-user-doc -->
45
   * @generated
47
   * @generated
46
   */
48
   */
47
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
49
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
48
50
49
  /**
51
  /**
50
   * The cached value of the '{@link #getOrderDetails() <em>Order Details</em>}' containment reference list. <!--
52
   * The cached value of the '{@link #getOrderDetails() <em>Order Details</em>}' containment reference list.
51
   * begin-user-doc --> <!-- end-user-doc -->
53
   * <!-- begin-user-doc -->
52
   * 
54
   * <!-- end-user-doc -->
53
   * @see #getOrderDetails()
55
   * @see #getOrderDetails()
54
   * @generated
56
   * @generated
55
   * @ordered
57
   * @ordered
Lines 57-64 Link Here
57
  protected EList<OrderDetail> orderDetails;
59
  protected EList<OrderDetail> orderDetails;
58
60
59
  /**
61
  /**
60
   * <!-- begin-user-doc --> <!-- end-user-doc -->
62
   * <!-- begin-user-doc -->
61
   * 
63
   * <!-- end-user-doc -->
62
   * @generated
64
   * @generated
63
   */
65
   */
64
  protected OrderImpl()
66
  protected OrderImpl()
Lines 67-74 Link Here
67
  }
69
  }
68
70
69
  /**
71
  /**
70
   * <!-- begin-user-doc --> <!-- end-user-doc -->
72
   * <!-- begin-user-doc -->
71
   * 
73
   * <!-- end-user-doc -->
72
   * @generated
74
   * @generated
73
   */
75
   */
74
  @Override
76
  @Override
Lines 78-85 Link Here
78
  }
80
  }
79
81
80
  /**
82
  /**
81
   * <!-- begin-user-doc --> <!-- end-user-doc -->
83
   * <!-- begin-user-doc -->
82
   * 
84
   * <!-- end-user-doc -->
83
   * @generated
85
   * @generated
84
   */
86
   */
85
  public EList<OrderDetail> getOrderDetails()
87
  public EList<OrderDetail> getOrderDetails()
Lines 93-100 Link Here
93
  }
95
  }
94
96
95
  /**
97
  /**
96
   * <!-- begin-user-doc --> <!-- end-user-doc -->
98
   * <!-- begin-user-doc -->
97
   * 
99
   * <!-- end-user-doc -->
98
   * @generated
100
   * @generated
99
   */
101
   */
100
  @SuppressWarnings("unchecked")
102
  @SuppressWarnings("unchecked")
Lines 110-117 Link Here
110
  }
112
  }
111
113
112
  /**
114
  /**
113
   * <!-- begin-user-doc --> <!-- end-user-doc -->
115
   * <!-- begin-user-doc -->
114
   * 
116
   * <!-- end-user-doc -->
115
   * @generated
117
   * @generated
116
   */
118
   */
117
  @Override
119
  @Override
Lines 126-133 Link Here
126
  }
128
  }
127
129
128
  /**
130
  /**
129
   * <!-- begin-user-doc --> <!-- end-user-doc -->
131
   * <!-- begin-user-doc -->
130
   * 
132
   * <!-- end-user-doc -->
131
   * @generated
133
   * @generated
132
   */
134
   */
133
  @Override
135
  @Override
Lines 142-149 Link Here
142
  }
144
  }
143
145
144
  /**
146
  /**
145
   * <!-- begin-user-doc --> <!-- end-user-doc -->
147
   * <!-- begin-user-doc -->
146
   * 
148
   * <!-- end-user-doc -->
147
   * @generated
149
   * @generated
148
   */
150
   */
149
  @SuppressWarnings("unchecked")
151
  @SuppressWarnings("unchecked")
Lines 161-168 Link Here
161
  }
163
  }
162
164
163
  /**
165
  /**
164
   * <!-- begin-user-doc --> <!-- end-user-doc -->
166
   * <!-- begin-user-doc -->
165
   * 
167
   * <!-- end-user-doc -->
166
   * @generated
168
   * @generated
167
   */
169
   */
168
  @Override
170
  @Override
Lines 178-185 Link Here
178
  }
180
  }
179
181
180
  /**
182
  /**
181
   * <!-- begin-user-doc --> <!-- end-user-doc -->
183
   * <!-- begin-user-doc -->
182
   * 
184
   * <!-- end-user-doc -->
183
   * @generated
185
   * @generated
184
   */
186
   */
185
  @Override
187
  @Override
Lines 193-196 Link Here
193
    return super.eIsSet(featureID);
195
    return super.eIsSet(featureID);
194
  }
196
  }
195
197
196
} // OrderImpl
198
} //OrderImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/CompanyImpl.java (-56 / +58 lines)
Lines 8-24 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: CompanyImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Category;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Company;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Customer;
18
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
19
import org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder;
16
import org.eclipse.emf.cdo.tests.model1.Category;
20
import org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder;
17
import org.eclipse.emf.cdo.tests.model1.Company;
21
import org.eclipse.emf.cdo.tests.legacy.model1.Supplier;
18
import org.eclipse.emf.cdo.tests.model1.Customer;
19
import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
20
import org.eclipse.emf.cdo.tests.model1.SalesOrder;
21
import org.eclipse.emf.cdo.tests.model1.Supplier;
22
22
23
import org.eclipse.emf.common.notify.NotificationChain;
23
import org.eclipse.emf.common.notify.NotificationChain;
24
import org.eclipse.emf.common.util.EList;
24
import org.eclipse.emf.common.util.EList;
Lines 30-62 Link Here
30
import java.util.Collection;
30
import java.util.Collection;
31
31
32
/**
32
/**
33
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Company</b></em>'. <!-- end-user-doc -->
33
 * <!-- begin-user-doc -->
34
 * An implementation of the model object '<em><b>Company</b></em>'.
35
 * <!-- end-user-doc -->
34
 * <p>
36
 * <p>
35
 * The following features are implemented:
37
 * The following features are implemented:
36
 * <ul>
38
 * <ul>
37
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getCategories <em>Categories</em>}</li>
39
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getCategories <em>Categories</em>}</li>
38
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getSuppliers <em>Suppliers</em>}</li>
40
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getSuppliers <em>Suppliers</em>}</li>
39
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getCustomers <em>Customers</em>}</li>
41
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getCustomers <em>Customers</em>}</li>
40
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getPurchaseOrders <em>Purchase Orders</em>}</li>
42
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getPurchaseOrders <em>Purchase Orders</em>}</li>
41
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getSalesOrders <em>Sales Orders</em>}</li>
43
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CompanyImpl#getSalesOrders <em>Sales Orders</em>}</li>
42
 * </ul>
44
 * </ul>
43
 * </p>
45
 * </p>
44
 * 
46
 *
45
 * @generated
47
 * @generated
46
 */
48
 */
47
public class CompanyImpl extends AddressImpl implements Company
49
public class CompanyImpl extends AddressImpl implements Company
48
{
50
{
49
  /**
51
  /**
50
   * <!-- begin-user-doc --> <!-- end-user-doc -->
52
   * <!-- begin-user-doc -->
51
   * 
53
   * <!-- end-user-doc -->
52
   * @generated
54
   * @generated
53
   */
55
   */
54
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
56
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
55
57
56
  /**
58
  /**
57
   * The cached value of the '{@link #getCategories() <em>Categories</em>}' containment reference list. <!--
59
   * The cached value of the '{@link #getCategories() <em>Categories</em>}' containment reference list.
58
   * begin-user-doc --> <!-- end-user-doc -->
60
   * <!-- begin-user-doc -->
59
   * 
61
   * <!-- end-user-doc -->
60
   * @see #getCategories()
62
   * @see #getCategories()
61
   * @generated
63
   * @generated
62
   * @ordered
64
   * @ordered
Lines 64-72 Link Here
64
  protected EList<Category> categories;
66
  protected EList<Category> categories;
65
67
66
  /**
68
  /**
67
   * The cached value of the '{@link #getSuppliers() <em>Suppliers</em>}' containment reference list. <!--
69
   * The cached value of the '{@link #getSuppliers() <em>Suppliers</em>}' containment reference list.
68
   * begin-user-doc --> <!-- end-user-doc -->
70
   * <!-- begin-user-doc -->
69
   * 
71
   * <!-- end-user-doc -->
70
   * @see #getSuppliers()
72
   * @see #getSuppliers()
71
   * @generated
73
   * @generated
72
   * @ordered
74
   * @ordered
Lines 74-82 Link Here
74
  protected EList<Supplier> suppliers;
76
  protected EList<Supplier> suppliers;
75
77
76
  /**
78
  /**
77
   * The cached value of the '{@link #getCustomers() <em>Customers</em>}' containment reference list. <!--
79
   * The cached value of the '{@link #getCustomers() <em>Customers</em>}' containment reference list.
78
   * begin-user-doc --> <!-- end-user-doc -->
80
   * <!-- begin-user-doc -->
79
   * 
81
   * <!-- end-user-doc -->
80
   * @see #getCustomers()
82
   * @see #getCustomers()
81
   * @generated
83
   * @generated
82
   * @ordered
84
   * @ordered
Lines 84-92 Link Here
84
  protected EList<Customer> customers;
86
  protected EList<Customer> customers;
85
87
86
  /**
88
  /**
87
   * The cached value of the '{@link #getPurchaseOrders() <em>Purchase Orders</em>}' containment reference list. <!--
89
   * The cached value of the '{@link #getPurchaseOrders() <em>Purchase Orders</em>}' containment reference list.
88
   * begin-user-doc --> <!-- end-user-doc -->
90
   * <!-- begin-user-doc -->
89
   * 
91
   * <!-- end-user-doc -->
90
   * @see #getPurchaseOrders()
92
   * @see #getPurchaseOrders()
91
   * @generated
93
   * @generated
92
   * @ordered
94
   * @ordered
Lines 94-102 Link Here
94
  protected EList<PurchaseOrder> purchaseOrders;
96
  protected EList<PurchaseOrder> purchaseOrders;
95
97
96
  /**
98
  /**
97
   * The cached value of the '{@link #getSalesOrders() <em>Sales Orders</em>}' containment reference list. <!--
99
   * The cached value of the '{@link #getSalesOrders() <em>Sales Orders</em>}' containment reference list.
98
   * begin-user-doc --> <!-- end-user-doc -->
100
   * <!-- begin-user-doc -->
99
   * 
101
   * <!-- end-user-doc -->
100
   * @see #getSalesOrders()
102
   * @see #getSalesOrders()
101
   * @generated
103
   * @generated
102
   * @ordered
104
   * @ordered
Lines 104-111 Link Here
104
  protected EList<SalesOrder> salesOrders;
106
  protected EList<SalesOrder> salesOrders;
105
107
106
  /**
108
  /**
107
   * <!-- begin-user-doc --> <!-- end-user-doc -->
109
   * <!-- begin-user-doc -->
108
   * 
110
   * <!-- end-user-doc -->
109
   * @generated
111
   * @generated
110
   */
112
   */
111
  protected CompanyImpl()
113
  protected CompanyImpl()
Lines 114-121 Link Here
114
  }
116
  }
115
117
116
  /**
118
  /**
117
   * <!-- begin-user-doc --> <!-- end-user-doc -->
119
   * <!-- begin-user-doc -->
118
   * 
120
   * <!-- end-user-doc -->
119
   * @generated
121
   * @generated
120
   */
122
   */
121
  @Override
123
  @Override
Lines 125-132 Link Here
125
  }
127
  }
126
128
127
  /**
129
  /**
128
   * <!-- begin-user-doc --> <!-- end-user-doc -->
130
   * <!-- begin-user-doc -->
129
   * 
131
   * <!-- end-user-doc -->
130
   * @generated
132
   * @generated
131
   */
133
   */
132
  public EList<Category> getCategories()
134
  public EList<Category> getCategories()
Lines 139-146 Link Here
139
  }
141
  }
140
142
141
  /**
143
  /**
142
   * <!-- begin-user-doc --> <!-- end-user-doc -->
144
   * <!-- begin-user-doc -->
143
   * 
145
   * <!-- end-user-doc -->
144
   * @generated
146
   * @generated
145
   */
147
   */
146
  public EList<Supplier> getSuppliers()
148
  public EList<Supplier> getSuppliers()
Lines 153-160 Link Here
153
  }
155
  }
154
156
155
  /**
157
  /**
156
   * <!-- begin-user-doc --> <!-- end-user-doc -->
158
   * <!-- begin-user-doc -->
157
   * 
159
   * <!-- end-user-doc -->
158
   * @generated
160
   * @generated
159
   */
161
   */
160
  public EList<Customer> getCustomers()
162
  public EList<Customer> getCustomers()
Lines 167-174 Link Here
167
  }
169
  }
168
170
169
  /**
171
  /**
170
   * <!-- begin-user-doc --> <!-- end-user-doc -->
172
   * <!-- begin-user-doc -->
171
   * 
173
   * <!-- end-user-doc -->
172
   * @generated
174
   * @generated
173
   */
175
   */
174
  public EList<PurchaseOrder> getPurchaseOrders()
176
  public EList<PurchaseOrder> getPurchaseOrders()
Lines 182-189 Link Here
182
  }
184
  }
183
185
184
  /**
186
  /**
185
   * <!-- begin-user-doc --> <!-- end-user-doc -->
187
   * <!-- begin-user-doc -->
186
   * 
188
   * <!-- end-user-doc -->
187
   * @generated
189
   * @generated
188
   */
190
   */
189
  public EList<SalesOrder> getSalesOrders()
191
  public EList<SalesOrder> getSalesOrders()
Lines 196-203 Link Here
196
  }
198
  }
197
199
198
  /**
200
  /**
199
   * <!-- begin-user-doc --> <!-- end-user-doc -->
201
   * <!-- begin-user-doc -->
200
   * 
202
   * <!-- end-user-doc -->
201
   * @generated
203
   * @generated
202
   */
204
   */
203
  @Override
205
  @Override
Lines 220-227 Link Here
220
  }
222
  }
221
223
222
  /**
224
  /**
223
   * <!-- begin-user-doc --> <!-- end-user-doc -->
225
   * <!-- begin-user-doc -->
224
   * 
226
   * <!-- end-user-doc -->
225
   * @generated
227
   * @generated
226
   */
228
   */
227
  @Override
229
  @Override
Lines 244-251 Link Here
244
  }
246
  }
245
247
246
  /**
248
  /**
247
   * <!-- begin-user-doc --> <!-- end-user-doc -->
249
   * <!-- begin-user-doc -->
248
   * 
250
   * <!-- end-user-doc -->
249
   * @generated
251
   * @generated
250
   */
252
   */
251
  @SuppressWarnings("unchecked")
253
  @SuppressWarnings("unchecked")
Lines 279-286 Link Here
279
  }
281
  }
280
282
281
  /**
283
  /**
282
   * <!-- begin-user-doc --> <!-- end-user-doc -->
284
   * <!-- begin-user-doc -->
283
   * 
285
   * <!-- end-user-doc -->
284
   * @generated
286
   * @generated
285
   */
287
   */
286
  @Override
288
  @Override
Lines 308-315 Link Here
308
  }
310
  }
309
311
310
  /**
312
  /**
311
   * <!-- begin-user-doc --> <!-- end-user-doc -->
313
   * <!-- begin-user-doc -->
312
   * 
314
   * <!-- end-user-doc -->
313
   * @generated
315
   * @generated
314
   */
316
   */
315
  @Override
317
  @Override
Lines 331-334 Link Here
331
    return super.eIsSet(featureID);
333
    return super.eIsSet(featureID);
332
  }
334
  }
333
335
334
} // CompanyImpl
336
} //CompanyImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/SupplierImpl.java (-43 / +45 lines)
Lines 8-20 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: SupplierImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder;
16
import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Supplier;
17
import org.eclipse.emf.cdo.tests.model1.Supplier;
18
18
19
import org.eclipse.emf.common.notify.Notification;
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.notify.NotificationChain;
20
import org.eclipse.emf.common.notify.NotificationChain;
Lines 28-57 Link Here
28
import java.util.Collection;
28
import java.util.Collection;
29
29
30
/**
30
/**
31
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Supplier</b></em>'. <!-- end-user-doc -->
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model object '<em><b>Supplier</b></em>'.
33
 * <!-- end-user-doc -->
32
 * <p>
34
 * <p>
33
 * The following features are implemented:
35
 * The following features are implemented:
34
 * <ul>
36
 * <ul>
35
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.SupplierImpl#getPurchaseOrders <em>Purchase Orders</em>}</li>
37
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.SupplierImpl#getPurchaseOrders <em>Purchase Orders</em>}</li>
36
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.SupplierImpl#isPreferred <em>Preferred</em>}</li>
38
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.SupplierImpl#isPreferred <em>Preferred</em>}</li>
37
 * </ul>
39
 * </ul>
38
 * </p>
40
 * </p>
39
 * 
41
 *
40
 * @generated
42
 * @generated
41
 */
43
 */
42
public class SupplierImpl extends AddressImpl implements Supplier
44
public class SupplierImpl extends AddressImpl implements Supplier
43
{
45
{
44
  /**
46
  /**
45
   * <!-- begin-user-doc --> <!-- end-user-doc -->
47
   * <!-- begin-user-doc -->
46
   * 
48
   * <!-- end-user-doc -->
47
   * @generated
49
   * @generated
48
   */
50
   */
49
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
51
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
50
52
51
  /**
53
  /**
52
   * The cached value of the '{@link #getPurchaseOrders() <em>Purchase Orders</em>}' reference list. <!-- begin-user-doc
54
   * The cached value of the '{@link #getPurchaseOrders() <em>Purchase Orders</em>}' reference list.
53
   * --> <!-- end-user-doc -->
55
   * <!-- begin-user-doc -->
54
   * 
56
   * <!-- end-user-doc -->
55
   * @see #getPurchaseOrders()
57
   * @see #getPurchaseOrders()
56
   * @generated
58
   * @generated
57
   * @ordered
59
   * @ordered
Lines 59-67 Link Here
59
  protected EList<PurchaseOrder> purchaseOrders;
61
  protected EList<PurchaseOrder> purchaseOrders;
60
62
61
  /**
63
  /**
62
   * The default value of the '{@link #isPreferred() <em>Preferred</em>}' attribute. <!-- begin-user-doc --> <!--
64
   * The default value of the '{@link #isPreferred() <em>Preferred</em>}' attribute.
63
   * end-user-doc -->
65
   * <!-- begin-user-doc -->
64
   * 
66
   * <!-- end-user-doc -->
65
   * @see #isPreferred()
67
   * @see #isPreferred()
66
   * @generated
68
   * @generated
67
   * @ordered
69
   * @ordered
Lines 69-77 Link Here
69
  protected static final boolean PREFERRED_EDEFAULT = true;
71
  protected static final boolean PREFERRED_EDEFAULT = true;
70
72
71
  /**
73
  /**
72
   * The cached value of the '{@link #isPreferred() <em>Preferred</em>}' attribute. <!-- begin-user-doc --> <!--
74
   * The cached value of the '{@link #isPreferred() <em>Preferred</em>}' attribute.
73
   * end-user-doc -->
75
   * <!-- begin-user-doc -->
74
   * 
76
   * <!-- end-user-doc -->
75
   * @see #isPreferred()
77
   * @see #isPreferred()
76
   * @generated
78
   * @generated
77
   * @ordered
79
   * @ordered
Lines 79-86 Link Here
79
  protected boolean preferred = PREFERRED_EDEFAULT;
81
  protected boolean preferred = PREFERRED_EDEFAULT;
80
82
81
  /**
83
  /**
82
   * <!-- begin-user-doc --> <!-- end-user-doc -->
84
   * <!-- begin-user-doc -->
83
   * 
85
   * <!-- end-user-doc -->
84
   * @generated
86
   * @generated
85
   */
87
   */
86
  protected SupplierImpl()
88
  protected SupplierImpl()
Lines 89-96 Link Here
89
  }
91
  }
90
92
91
  /**
93
  /**
92
   * <!-- begin-user-doc --> <!-- end-user-doc -->
94
   * <!-- begin-user-doc -->
93
   * 
95
   * <!-- end-user-doc -->
94
   * @generated
96
   * @generated
95
   */
97
   */
96
  @Override
98
  @Override
Lines 100-107 Link Here
100
  }
102
  }
101
103
102
  /**
104
  /**
103
   * <!-- begin-user-doc --> <!-- end-user-doc -->
105
   * <!-- begin-user-doc -->
104
   * 
106
   * <!-- end-user-doc -->
105
   * @generated
107
   * @generated
106
   */
108
   */
107
  public EList<PurchaseOrder> getPurchaseOrders()
109
  public EList<PurchaseOrder> getPurchaseOrders()
Lines 115-122 Link Here
115
  }
117
  }
116
118
117
  /**
119
  /**
118
   * <!-- begin-user-doc --> <!-- end-user-doc -->
120
   * <!-- begin-user-doc -->
119
   * 
121
   * <!-- end-user-doc -->
120
   * @generated
122
   * @generated
121
   */
123
   */
122
  public boolean isPreferred()
124
  public boolean isPreferred()
Lines 125-132 Link Here
125
  }
127
  }
126
128
127
  /**
129
  /**
128
   * <!-- begin-user-doc --> <!-- end-user-doc -->
130
   * <!-- begin-user-doc -->
129
   * 
131
   * <!-- end-user-doc -->
130
   * @generated
132
   * @generated
131
   */
133
   */
132
  public void setPreferred(boolean newPreferred)
134
  public void setPreferred(boolean newPreferred)
Lines 138-145 Link Here
138
  }
140
  }
139
141
140
  /**
142
  /**
141
   * <!-- begin-user-doc --> <!-- end-user-doc -->
143
   * <!-- begin-user-doc -->
142
   * 
144
   * <!-- end-user-doc -->
143
   * @generated
145
   * @generated
144
   */
146
   */
145
  @SuppressWarnings("unchecked")
147
  @SuppressWarnings("unchecked")
Lines 155-162 Link Here
155
  }
157
  }
156
158
157
  /**
159
  /**
158
   * <!-- begin-user-doc --> <!-- end-user-doc -->
160
   * <!-- begin-user-doc -->
159
   * 
161
   * <!-- end-user-doc -->
160
   * @generated
162
   * @generated
161
   */
163
   */
162
  @Override
164
  @Override
Lines 171-178 Link Here
171
  }
173
  }
172
174
173
  /**
175
  /**
174
   * <!-- begin-user-doc --> <!-- end-user-doc -->
176
   * <!-- begin-user-doc -->
175
   * 
177
   * <!-- end-user-doc -->
176
   * @generated
178
   * @generated
177
   */
179
   */
178
  @Override
180
  @Override
Lines 189-196 Link Here
189
  }
191
  }
190
192
191
  /**
193
  /**
192
   * <!-- begin-user-doc --> <!-- end-user-doc -->
194
   * <!-- begin-user-doc -->
193
   * 
195
   * <!-- end-user-doc -->
194
   * @generated
196
   * @generated
195
   */
197
   */
196
  @SuppressWarnings("unchecked")
198
  @SuppressWarnings("unchecked")
Lines 211-218 Link Here
211
  }
213
  }
212
214
213
  /**
215
  /**
214
   * <!-- begin-user-doc --> <!-- end-user-doc -->
216
   * <!-- begin-user-doc -->
215
   * 
217
   * <!-- end-user-doc -->
216
   * @generated
218
   * @generated
217
   */
219
   */
218
  @Override
220
  @Override
Lines 231-238 Link Here
231
  }
233
  }
232
234
233
  /**
235
  /**
234
   * <!-- begin-user-doc --> <!-- end-user-doc -->
236
   * <!-- begin-user-doc -->
235
   * 
237
   * <!-- end-user-doc -->
236
   * @generated
238
   * @generated
237
   */
239
   */
238
  @Override
240
  @Override
Lines 249-256 Link Here
249
  }
251
  }
250
252
251
  /**
253
  /**
252
   * <!-- begin-user-doc --> <!-- end-user-doc -->
254
   * <!-- begin-user-doc -->
253
   * 
255
   * <!-- end-user-doc -->
254
   * @generated
256
   * @generated
255
   */
257
   */
256
  @Override
258
  @Override
Lines 266-269 Link Here
266
    return result.toString();
268
    return result.toString();
267
  }
269
  }
268
270
269
} // SupplierImpl
271
} //SupplierImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/SalesOrderImpl.java (-47 / +51 lines)
Lines 8-20 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: SalesOrderImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Customer;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
17
import org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder;
16
import org.eclipse.emf.cdo.tests.model1.Customer;
17
import org.eclipse.emf.cdo.tests.model1.SalesOrder;
18
18
19
import org.eclipse.emf.common.notify.Notification;
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.notify.NotificationChain;
20
import org.eclipse.emf.common.notify.NotificationChain;
Lines 23-51 Link Here
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
24
25
/**
25
/**
26
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Sales Order</b></em>'. <!-- end-user-doc -->
26
 * <!-- begin-user-doc -->
27
 * An implementation of the model object '<em><b>Sales Order</b></em>'.
28
 * <!-- end-user-doc -->
27
 * <p>
29
 * <p>
28
 * The following features are implemented:
30
 * The following features are implemented:
29
 * <ul>
31
 * <ul>
30
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.SalesOrderImpl#getId <em>Id</em>}</li>
32
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.SalesOrderImpl#getId <em>Id</em>}</li>
31
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.SalesOrderImpl#getCustomer <em>Customer</em>}</li>
33
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.SalesOrderImpl#getCustomer <em>Customer</em>}</li>
32
 * </ul>
34
 * </ul>
33
 * </p>
35
 * </p>
34
 * 
36
 *
35
 * @generated
37
 * @generated
36
 */
38
 */
37
public class SalesOrderImpl extends OrderImpl implements SalesOrder
39
public class SalesOrderImpl extends OrderImpl implements SalesOrder
38
{
40
{
39
  /**
41
  /**
40
   * <!-- begin-user-doc --> <!-- end-user-doc -->
42
   * <!-- begin-user-doc -->
41
   * 
43
   * <!-- end-user-doc -->
42
   * @generated
44
   * @generated
43
   */
45
   */
44
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
46
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
45
47
46
  /**
48
  /**
47
   * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
49
   * The default value of the '{@link #getId() <em>Id</em>}' attribute.
48
   * 
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
49
   * @see #getId()
52
   * @see #getId()
50
   * @generated
53
   * @generated
51
   * @ordered
54
   * @ordered
Lines 53-60 Link Here
53
  protected static final int ID_EDEFAULT = 0;
56
  protected static final int ID_EDEFAULT = 0;
54
57
55
  /**
58
  /**
56
   * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
59
   * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
57
   * 
60
   * <!-- begin-user-doc -->
61
   * <!-- end-user-doc -->
58
   * @see #getId()
62
   * @see #getId()
59
   * @generated
63
   * @generated
60
   * @ordered
64
   * @ordered
Lines 62-70 Link Here
62
  protected int id = ID_EDEFAULT;
66
  protected int id = ID_EDEFAULT;
63
67
64
  /**
68
  /**
65
   * The cached value of the '{@link #getCustomer() <em>Customer</em>}' reference. <!-- begin-user-doc --> <!--
69
   * The cached value of the '{@link #getCustomer() <em>Customer</em>}' reference.
66
   * end-user-doc -->
70
   * <!-- begin-user-doc -->
67
   * 
71
   * <!-- end-user-doc -->
68
   * @see #getCustomer()
72
   * @see #getCustomer()
69
   * @generated
73
   * @generated
70
   * @ordered
74
   * @ordered
Lines 72-79 Link Here
72
  protected Customer customer;
76
  protected Customer customer;
73
77
74
  /**
78
  /**
75
   * <!-- begin-user-doc --> <!-- end-user-doc -->
79
   * <!-- begin-user-doc -->
76
   * 
80
   * <!-- end-user-doc -->
77
   * @generated
81
   * @generated
78
   */
82
   */
79
  protected SalesOrderImpl()
83
  protected SalesOrderImpl()
Lines 82-89 Link Here
82
  }
86
  }
83
87
84
  /**
88
  /**
85
   * <!-- begin-user-doc --> <!-- end-user-doc -->
89
   * <!-- begin-user-doc -->
86
   * 
90
   * <!-- end-user-doc -->
87
   * @generated
91
   * @generated
88
   */
92
   */
89
  @Override
93
  @Override
Lines 93-100 Link Here
93
  }
97
  }
94
98
95
  /**
99
  /**
96
   * <!-- begin-user-doc --> <!-- end-user-doc -->
100
   * <!-- begin-user-doc -->
97
   * 
101
   * <!-- end-user-doc -->
98
   * @generated
102
   * @generated
99
   */
103
   */
100
  public int getId()
104
  public int getId()
Lines 103-110 Link Here
103
  }
107
  }
104
108
105
  /**
109
  /**
106
   * <!-- begin-user-doc --> <!-- end-user-doc -->
110
   * <!-- begin-user-doc -->
107
   * 
111
   * <!-- end-user-doc -->
108
   * @generated
112
   * @generated
109
   */
113
   */
110
  public void setId(int newId)
114
  public void setId(int newId)
Lines 116-123 Link Here
116
  }
120
  }
117
121
118
  /**
122
  /**
119
   * <!-- begin-user-doc --> <!-- end-user-doc -->
123
   * <!-- begin-user-doc -->
120
   * 
124
   * <!-- end-user-doc -->
121
   * @generated
125
   * @generated
122
   */
126
   */
123
  public Customer getCustomer()
127
  public Customer getCustomer()
Lines 137-144 Link Here
137
  }
141
  }
138
142
139
  /**
143
  /**
140
   * <!-- begin-user-doc --> <!-- end-user-doc -->
144
   * <!-- begin-user-doc -->
141
   * 
145
   * <!-- end-user-doc -->
142
   * @generated
146
   * @generated
143
   */
147
   */
144
  public Customer basicGetCustomer()
148
  public Customer basicGetCustomer()
Lines 147-154 Link Here
147
  }
151
  }
148
152
149
  /**
153
  /**
150
   * <!-- begin-user-doc --> <!-- end-user-doc -->
154
   * <!-- begin-user-doc -->
151
   * 
155
   * <!-- end-user-doc -->
152
   * @generated
156
   * @generated
153
   */
157
   */
154
  public NotificationChain basicSetCustomer(Customer newCustomer, NotificationChain msgs)
158
  public NotificationChain basicSetCustomer(Customer newCustomer, NotificationChain msgs)
Lines 168-175 Link Here
168
  }
172
  }
169
173
170
  /**
174
  /**
171
   * <!-- begin-user-doc --> <!-- end-user-doc -->
175
   * <!-- begin-user-doc -->
172
   * 
176
   * <!-- end-user-doc -->
173
   * @generated
177
   * @generated
174
   */
178
   */
175
  public void setCustomer(Customer newCustomer)
179
  public void setCustomer(Customer newCustomer)
Lines 193-200 Link Here
193
  }
197
  }
194
198
195
  /**
199
  /**
196
   * <!-- begin-user-doc --> <!-- end-user-doc -->
200
   * <!-- begin-user-doc -->
197
   * 
201
   * <!-- end-user-doc -->
198
   * @generated
202
   * @generated
199
   */
203
   */
200
  @Override
204
  @Override
Lines 212-219 Link Here
212
  }
216
  }
213
217
214
  /**
218
  /**
215
   * <!-- begin-user-doc --> <!-- end-user-doc -->
219
   * <!-- begin-user-doc -->
216
   * 
220
   * <!-- end-user-doc -->
217
   * @generated
221
   * @generated
218
   */
222
   */
219
  @Override
223
  @Override
Lines 228-235 Link Here
228
  }
232
  }
229
233
230
  /**
234
  /**
231
   * <!-- begin-user-doc --> <!-- end-user-doc -->
235
   * <!-- begin-user-doc -->
232
   * 
236
   * <!-- end-user-doc -->
233
   * @generated
237
   * @generated
234
   */
238
   */
235
  @Override
239
  @Override
Lines 248-255 Link Here
248
  }
252
  }
249
253
250
  /**
254
  /**
251
   * <!-- begin-user-doc --> <!-- end-user-doc -->
255
   * <!-- begin-user-doc -->
252
   * 
256
   * <!-- end-user-doc -->
253
   * @generated
257
   * @generated
254
   */
258
   */
255
  @Override
259
  @Override
Lines 268-275 Link Here
268
  }
272
  }
269
273
270
  /**
274
  /**
271
   * <!-- begin-user-doc --> <!-- end-user-doc -->
275
   * <!-- begin-user-doc -->
272
   * 
276
   * <!-- end-user-doc -->
273
   * @generated
277
   * @generated
274
   */
278
   */
275
  @Override
279
  @Override
Lines 288-295 Link Here
288
  }
292
  }
289
293
290
  /**
294
  /**
291
   * <!-- begin-user-doc --> <!-- end-user-doc -->
295
   * <!-- begin-user-doc -->
292
   * 
296
   * <!-- end-user-doc -->
293
   * @generated
297
   * @generated
294
   */
298
   */
295
  @Override
299
  @Override
Lines 306-313 Link Here
306
  }
310
  }
307
311
308
  /**
312
  /**
309
   * <!-- begin-user-doc --> <!-- end-user-doc -->
313
   * <!-- begin-user-doc -->
310
   * 
314
   * <!-- end-user-doc -->
311
   * @generated
315
   * @generated
312
   */
316
   */
313
  @Override
317
  @Override
Lines 323-326 Link Here
323
    return result.toString();
327
    return result.toString();
324
  }
328
  }
325
329
326
} // SalesOrderImpl
330
} //SalesOrderImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/OrderAddressImpl.java (-79 / +81 lines)
Lines 8-22 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: OrderAddressImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Order;
16
import org.eclipse.emf.cdo.tests.model1.Order;
17
import org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress;
17
import org.eclipse.emf.cdo.tests.model1.OrderAddress;
18
import org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail;
18
import org.eclipse.emf.cdo.tests.model1.OrderDetail;
19
import org.eclipse.emf.cdo.tests.legacy.model1.Product1;
19
import org.eclipse.emf.cdo.tests.model1.Product1;
20
20
21
import org.eclipse.emf.common.notify.Notification;
21
import org.eclipse.emf.common.notify.Notification;
22
import org.eclipse.emf.common.notify.NotificationChain;
22
import org.eclipse.emf.common.notify.NotificationChain;
Lines 31-63 Link Here
31
import java.util.Collection;
31
import java.util.Collection;
32
32
33
/**
33
/**
34
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Order Address</b></em>'. <!-- end-user-doc -->
34
 * <!-- begin-user-doc -->
35
 * An implementation of the model object '<em><b>Order Address</b></em>'.
36
 * <!-- end-user-doc -->
35
 * <p>
37
 * <p>
36
 * The following features are implemented:
38
 * The following features are implemented:
37
 * <ul>
39
 * <ul>
38
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#getOrderDetails <em>Order Details</em>}</li>
40
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#getOrderDetails <em>Order Details</em>}</li>
39
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#getOrder <em>Order</em>}</li>
41
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#getOrder <em>Order</em>}</li>
40
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#getProduct <em>Product</em>}</li>
42
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#getProduct <em>Product</em>}</li>
41
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#getPrice <em>Price</em>}</li>
43
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#getPrice <em>Price</em>}</li>
42
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#isTestAttribute <em>Test Attribute</em>}</li>
44
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderAddressImpl#isTestAttribute <em>Test Attribute</em>}</li>
43
 * </ul>
45
 * </ul>
44
 * </p>
46
 * </p>
45
 * 
47
 *
46
 * @generated
48
 * @generated
47
 */
49
 */
48
public class OrderAddressImpl extends AddressImpl implements OrderAddress
50
public class OrderAddressImpl extends AddressImpl implements OrderAddress
49
{
51
{
50
  /**
52
  /**
51
   * <!-- begin-user-doc --> <!-- end-user-doc -->
53
   * <!-- begin-user-doc -->
52
   * 
54
   * <!-- end-user-doc -->
53
   * @generated
55
   * @generated
54
   */
56
   */
55
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
57
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
56
58
57
  /**
59
  /**
58
   * The cached value of the '{@link #getOrderDetails() <em>Order Details</em>}' containment reference list. <!--
60
   * The cached value of the '{@link #getOrderDetails() <em>Order Details</em>}' containment reference list.
59
   * begin-user-doc --> <!-- end-user-doc -->
61
   * <!-- begin-user-doc -->
60
   * 
62
   * <!-- end-user-doc -->
61
   * @see #getOrderDetails()
63
   * @see #getOrderDetails()
62
   * @generated
64
   * @generated
63
   * @ordered
65
   * @ordered
Lines 65-73 Link Here
65
  protected EList<OrderDetail> orderDetails;
67
  protected EList<OrderDetail> orderDetails;
66
68
67
  /**
69
  /**
68
   * The cached value of the '{@link #getProduct() <em>Product</em>}' reference. <!-- begin-user-doc --> <!--
70
   * The cached value of the '{@link #getProduct() <em>Product</em>}' reference.
69
   * end-user-doc -->
71
   * <!-- begin-user-doc -->
70
   * 
72
   * <!-- end-user-doc -->
71
   * @see #getProduct()
73
   * @see #getProduct()
72
   * @generated
74
   * @generated
73
   * @ordered
75
   * @ordered
Lines 75-83 Link Here
75
  protected Product1 product;
77
  protected Product1 product;
76
78
77
  /**
79
  /**
78
   * The default value of the '{@link #getPrice() <em>Price</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
80
   * The default value of the '{@link #getPrice() <em>Price</em>}' attribute.
79
   * -->
81
   * <!-- begin-user-doc -->
80
   * 
82
   * <!-- end-user-doc -->
81
   * @see #getPrice()
83
   * @see #getPrice()
82
   * @generated
84
   * @generated
83
   * @ordered
85
   * @ordered
Lines 85-93 Link Here
85
  protected static final float PRICE_EDEFAULT = 0.0F;
87
  protected static final float PRICE_EDEFAULT = 0.0F;
86
88
87
  /**
89
  /**
88
   * The cached value of the '{@link #getPrice() <em>Price</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
90
   * The cached value of the '{@link #getPrice() <em>Price</em>}' attribute.
89
   * -->
91
   * <!-- begin-user-doc -->
90
   * 
92
   * <!-- end-user-doc -->
91
   * @see #getPrice()
93
   * @see #getPrice()
92
   * @generated
94
   * @generated
93
   * @ordered
95
   * @ordered
Lines 95-103 Link Here
95
  protected float price = PRICE_EDEFAULT;
97
  protected float price = PRICE_EDEFAULT;
96
98
97
  /**
99
  /**
98
   * The default value of the '{@link #isTestAttribute() <em>Test Attribute</em>}' attribute. <!-- begin-user-doc -->
100
   * The default value of the '{@link #isTestAttribute() <em>Test Attribute</em>}' attribute.
101
   * <!-- begin-user-doc -->
99
   * <!-- end-user-doc -->
102
   * <!-- end-user-doc -->
100
   * 
101
   * @see #isTestAttribute()
103
   * @see #isTestAttribute()
102
   * @generated
104
   * @generated
103
   * @ordered
105
   * @ordered
Lines 105-113 Link Here
105
  protected static final boolean TEST_ATTRIBUTE_EDEFAULT = false;
107
  protected static final boolean TEST_ATTRIBUTE_EDEFAULT = false;
106
108
107
  /**
109
  /**
108
   * The cached value of the '{@link #isTestAttribute() <em>Test Attribute</em>}' attribute. <!-- begin-user-doc -->
110
   * The cached value of the '{@link #isTestAttribute() <em>Test Attribute</em>}' attribute.
111
   * <!-- begin-user-doc -->
109
   * <!-- end-user-doc -->
112
   * <!-- end-user-doc -->
110
   * 
111
   * @see #isTestAttribute()
113
   * @see #isTestAttribute()
112
   * @generated
114
   * @generated
113
   * @ordered
115
   * @ordered
Lines 115-122 Link Here
115
  protected boolean testAttribute = TEST_ATTRIBUTE_EDEFAULT;
117
  protected boolean testAttribute = TEST_ATTRIBUTE_EDEFAULT;
116
118
117
  /**
119
  /**
118
   * <!-- begin-user-doc --> <!-- end-user-doc -->
120
   * <!-- begin-user-doc -->
119
   * 
121
   * <!-- end-user-doc -->
120
   * @generated
122
   * @generated
121
   */
123
   */
122
  protected OrderAddressImpl()
124
  protected OrderAddressImpl()
Lines 125-132 Link Here
125
  }
127
  }
126
128
127
  /**
129
  /**
128
   * <!-- begin-user-doc --> <!-- end-user-doc -->
130
   * <!-- begin-user-doc -->
129
   * 
131
   * <!-- end-user-doc -->
130
   * @generated
132
   * @generated
131
   */
133
   */
132
  @Override
134
  @Override
Lines 136-143 Link Here
136
  }
138
  }
137
139
138
  /**
140
  /**
139
   * <!-- begin-user-doc --> <!-- end-user-doc -->
141
   * <!-- begin-user-doc -->
140
   * 
142
   * <!-- end-user-doc -->
141
   * @generated
143
   * @generated
142
   */
144
   */
143
  public EList<OrderDetail> getOrderDetails()
145
  public EList<OrderDetail> getOrderDetails()
Lines 151-158 Link Here
151
  }
153
  }
152
154
153
  /**
155
  /**
154
   * <!-- begin-user-doc --> <!-- end-user-doc -->
156
   * <!-- begin-user-doc -->
155
   * 
157
   * <!-- end-user-doc -->
156
   * @generated
158
   * @generated
157
   */
159
   */
158
  public Order getOrder()
160
  public Order getOrder()
Lines 163-170 Link Here
163
  }
165
  }
164
166
165
  /**
167
  /**
166
   * <!-- begin-user-doc --> <!-- end-user-doc -->
168
   * <!-- begin-user-doc -->
167
   * 
169
   * <!-- end-user-doc -->
168
   * @generated
170
   * @generated
169
   */
171
   */
170
  public NotificationChain basicSetOrder(Order newOrder, NotificationChain msgs)
172
  public NotificationChain basicSetOrder(Order newOrder, NotificationChain msgs)
Lines 174-181 Link Here
174
  }
176
  }
175
177
176
  /**
178
  /**
177
   * <!-- begin-user-doc --> <!-- end-user-doc -->
179
   * <!-- begin-user-doc -->
178
   * 
180
   * <!-- end-user-doc -->
179
   * @generated
181
   * @generated
180
   */
182
   */
181
  public void setOrder(Order newOrder)
183
  public void setOrder(Order newOrder)
Lines 199-206 Link Here
199
  }
201
  }
200
202
201
  /**
203
  /**
202
   * <!-- begin-user-doc --> <!-- end-user-doc -->
204
   * <!-- begin-user-doc -->
203
   * 
205
   * <!-- end-user-doc -->
204
   * @generated
206
   * @generated
205
   */
207
   */
206
  public Product1 getProduct()
208
  public Product1 getProduct()
Lines 220-227 Link Here
220
  }
222
  }
221
223
222
  /**
224
  /**
223
   * <!-- begin-user-doc --> <!-- end-user-doc -->
225
   * <!-- begin-user-doc -->
224
   * 
226
   * <!-- end-user-doc -->
225
   * @generated
227
   * @generated
226
   */
228
   */
227
  public Product1 basicGetProduct()
229
  public Product1 basicGetProduct()
Lines 230-237 Link Here
230
  }
232
  }
231
233
232
  /**
234
  /**
233
   * <!-- begin-user-doc --> <!-- end-user-doc -->
235
   * <!-- begin-user-doc -->
234
   * 
236
   * <!-- end-user-doc -->
235
   * @generated
237
   * @generated
236
   */
238
   */
237
  public NotificationChain basicSetProduct(Product1 newProduct, NotificationChain msgs)
239
  public NotificationChain basicSetProduct(Product1 newProduct, NotificationChain msgs)
Lines 251-258 Link Here
251
  }
253
  }
252
254
253
  /**
255
  /**
254
   * <!-- begin-user-doc --> <!-- end-user-doc -->
256
   * <!-- begin-user-doc -->
255
   * 
257
   * <!-- end-user-doc -->
256
   * @generated
258
   * @generated
257
   */
259
   */
258
  public void setProduct(Product1 newProduct)
260
  public void setProduct(Product1 newProduct)
Lines 276-283 Link Here
276
  }
278
  }
277
279
278
  /**
280
  /**
279
   * <!-- begin-user-doc --> <!-- end-user-doc -->
281
   * <!-- begin-user-doc -->
280
   * 
282
   * <!-- end-user-doc -->
281
   * @generated
283
   * @generated
282
   */
284
   */
283
  public float getPrice()
285
  public float getPrice()
Lines 286-293 Link Here
286
  }
288
  }
287
289
288
  /**
290
  /**
289
   * <!-- begin-user-doc --> <!-- end-user-doc -->
291
   * <!-- begin-user-doc -->
290
   * 
292
   * <!-- end-user-doc -->
291
   * @generated
293
   * @generated
292
   */
294
   */
293
  public void setPrice(float newPrice)
295
  public void setPrice(float newPrice)
Lines 299-306 Link Here
299
  }
301
  }
300
302
301
  /**
303
  /**
302
   * <!-- begin-user-doc --> <!-- end-user-doc -->
304
   * <!-- begin-user-doc -->
303
   * 
305
   * <!-- end-user-doc -->
304
   * @generated
306
   * @generated
305
   */
307
   */
306
  public boolean isTestAttribute()
308
  public boolean isTestAttribute()
Lines 309-316 Link Here
309
  }
311
  }
310
312
311
  /**
313
  /**
312
   * <!-- begin-user-doc --> <!-- end-user-doc -->
314
   * <!-- begin-user-doc -->
313
   * 
315
   * <!-- end-user-doc -->
314
   * @generated
316
   * @generated
315
   */
317
   */
316
  public void setTestAttribute(boolean newTestAttribute)
318
  public void setTestAttribute(boolean newTestAttribute)
Lines 323-330 Link Here
323
  }
325
  }
324
326
325
  /**
327
  /**
326
   * <!-- begin-user-doc --> <!-- end-user-doc -->
328
   * <!-- begin-user-doc -->
327
   * 
329
   * <!-- end-user-doc -->
328
   * @generated
330
   * @generated
329
   */
331
   */
330
  @SuppressWarnings("unchecked")
332
  @SuppressWarnings("unchecked")
Lines 349-356 Link Here
349
  }
351
  }
350
352
351
  /**
353
  /**
352
   * <!-- begin-user-doc --> <!-- end-user-doc -->
354
   * <!-- begin-user-doc -->
353
   * 
355
   * <!-- end-user-doc -->
354
   * @generated
356
   * @generated
355
   */
357
   */
356
  @Override
358
  @Override
Lines 369-376 Link Here
369
  }
371
  }
370
372
371
  /**
373
  /**
372
   * <!-- begin-user-doc --> <!-- end-user-doc -->
374
   * <!-- begin-user-doc -->
373
   * 
375
   * <!-- end-user-doc -->
374
   * @generated
376
   * @generated
375
   */
377
   */
376
  @Override
378
  @Override
Lines 385-392 Link Here
385
  }
387
  }
386
388
387
  /**
389
  /**
388
   * <!-- begin-user-doc --> <!-- end-user-doc -->
390
   * <!-- begin-user-doc -->
389
   * 
391
   * <!-- end-user-doc -->
390
   * @generated
392
   * @generated
391
   */
393
   */
392
  @Override
394
  @Override
Lines 411-418 Link Here
411
  }
413
  }
412
414
413
  /**
415
  /**
414
   * <!-- begin-user-doc --> <!-- end-user-doc -->
416
   * <!-- begin-user-doc -->
415
   * 
417
   * <!-- end-user-doc -->
416
   * @generated
418
   * @generated
417
   */
419
   */
418
  @SuppressWarnings("unchecked")
420
  @SuppressWarnings("unchecked")
Lines 442-449 Link Here
442
  }
444
  }
443
445
444
  /**
446
  /**
445
   * <!-- begin-user-doc --> <!-- end-user-doc -->
447
   * <!-- begin-user-doc -->
446
   * 
448
   * <!-- end-user-doc -->
447
   * @generated
449
   * @generated
448
   */
450
   */
449
  @Override
451
  @Override
Lines 471-478 Link Here
471
  }
473
  }
472
474
473
  /**
475
  /**
474
   * <!-- begin-user-doc --> <!-- end-user-doc -->
476
   * <!-- begin-user-doc -->
475
   * 
477
   * <!-- end-user-doc -->
476
   * @generated
478
   * @generated
477
   */
479
   */
478
  @Override
480
  @Override
Lines 495-502 Link Here
495
  }
497
  }
496
498
497
  /**
499
  /**
498
   * <!-- begin-user-doc --> <!-- end-user-doc -->
500
   * <!-- begin-user-doc -->
499
   * 
501
   * <!-- end-user-doc -->
500
   * @generated
502
   * @generated
501
   */
503
   */
502
  @Override
504
  @Override
Lines 530-537 Link Here
530
  }
532
  }
531
533
532
  /**
534
  /**
533
   * <!-- begin-user-doc --> <!-- end-user-doc -->
535
   * <!-- begin-user-doc -->
534
   * 
536
   * <!-- end-user-doc -->
535
   * @generated
537
   * @generated
536
   */
538
   */
537
  @Override
539
  @Override
Lines 565-572 Link Here
565
  }
567
  }
566
568
567
  /**
569
  /**
568
   * <!-- begin-user-doc --> <!-- end-user-doc -->
570
   * <!-- begin-user-doc -->
569
   * 
571
   * <!-- end-user-doc -->
570
   * @generated
572
   * @generated
571
   */
573
   */
572
  @Override
574
  @Override
Lines 584-587 Link Here
584
    return result.toString();
586
    return result.toString();
585
  }
587
  }
586
588
587
} // OrderAddressImpl
589
} //OrderAddressImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Product1Impl.java (-62 / +67 lines)
Lines 8-21 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: Product1Impl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail;
16
import org.eclipse.emf.cdo.tests.model1.OrderDetail;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Product1;
17
import org.eclipse.emf.cdo.tests.model1.Product1;
18
import org.eclipse.emf.cdo.tests.legacy.model1.VAT;
18
import org.eclipse.emf.cdo.tests.model1.VAT;
19
19
20
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.notify.Notification;
21
import org.eclipse.emf.common.notify.NotificationChain;
21
import org.eclipse.emf.common.notify.NotificationChain;
Lines 30-61 Link Here
30
import java.util.Collection;
30
import java.util.Collection;
31
31
32
/**
32
/**
33
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Product1</b></em>'. <!-- end-user-doc -->
33
 * <!-- begin-user-doc -->
34
 * An implementation of the model object '<em><b>Product1</b></em>'.
35
 * <!-- end-user-doc -->
34
 * <p>
36
 * <p>
35
 * The following features are implemented:
37
 * The following features are implemented:
36
 * <ul>
38
 * <ul>
37
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.Product1Impl#getName <em>Name</em>}</li>
39
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.Product1Impl#getName <em>Name</em>}</li>
38
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.Product1Impl#getOrderDetails <em>Order Details</em>}</li>
40
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.Product1Impl#getOrderDetails <em>Order Details</em>}</li>
39
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.Product1Impl#getVat <em>Vat</em>}</li>
41
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.Product1Impl#getVat <em>Vat</em>}</li>
40
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.Product1Impl#getDescription <em>Description</em>}</li>
42
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.Product1Impl#getDescription <em>Description</em>}</li>
41
 * </ul>
43
 * </ul>
42
 * </p>
44
 * </p>
43
 * 
45
 *
44
 * @generated
46
 * @generated
45
 */
47
 */
46
public class Product1Impl extends EObjectImpl implements Product1
48
public class Product1Impl extends EObjectImpl implements Product1
47
{
49
{
48
  /**
50
  /**
49
   * <!-- begin-user-doc --> <!-- end-user-doc -->
51
   * <!-- begin-user-doc -->
50
   * 
52
   * <!-- end-user-doc -->
51
   * @generated
53
   * @generated
52
   */
54
   */
53
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
55
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
54
56
55
  /**
57
  /**
56
   * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
58
   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
57
   * -->
59
   * <!-- begin-user-doc -->
58
   * 
60
   * <!-- end-user-doc -->
59
   * @see #getName()
61
   * @see #getName()
60
   * @generated
62
   * @generated
61
   * @ordered
63
   * @ordered
Lines 63-70 Link Here
63
  protected static final String NAME_EDEFAULT = null;
65
  protected static final String NAME_EDEFAULT = null;
64
66
65
  /**
67
  /**
66
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
68
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
67
   * 
69
   * <!-- begin-user-doc -->
70
   * <!-- end-user-doc -->
68
   * @see #getName()
71
   * @see #getName()
69
   * @generated
72
   * @generated
70
   * @ordered
73
   * @ordered
Lines 72-80 Link Here
72
  protected String name = NAME_EDEFAULT;
75
  protected String name = NAME_EDEFAULT;
73
76
74
  /**
77
  /**
75
   * The cached value of the '{@link #getOrderDetails() <em>Order Details</em>}' reference list. <!-- begin-user-doc -->
78
   * The cached value of the '{@link #getOrderDetails() <em>Order Details</em>}' reference list.
79
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
80
   * <!-- end-user-doc -->
77
   * 
78
   * @see #getOrderDetails()
81
   * @see #getOrderDetails()
79
   * @generated
82
   * @generated
80
   * @ordered
83
   * @ordered
Lines 82-89 Link Here
82
  protected EList<OrderDetail> orderDetails;
85
  protected EList<OrderDetail> orderDetails;
83
86
84
  /**
87
  /**
85
   * The default value of the '{@link #getVat() <em>Vat</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
88
   * The default value of the '{@link #getVat() <em>Vat</em>}' attribute.
86
   * 
89
   * <!-- begin-user-doc -->
90
   * <!-- end-user-doc -->
87
   * @see #getVat()
91
   * @see #getVat()
88
   * @generated
92
   * @generated
89
   * @ordered
93
   * @ordered
Lines 91-98 Link Here
91
  protected static final VAT VAT_EDEFAULT = VAT.VAT15;
95
  protected static final VAT VAT_EDEFAULT = VAT.VAT15;
92
96
93
  /**
97
  /**
94
   * The cached value of the '{@link #getVat() <em>Vat</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
98
   * The cached value of the '{@link #getVat() <em>Vat</em>}' attribute.
95
   * 
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
96
   * @see #getVat()
101
   * @see #getVat()
97
   * @generated
102
   * @generated
98
   * @ordered
103
   * @ordered
Lines 100-108 Link Here
100
  protected VAT vat = VAT_EDEFAULT;
105
  protected VAT vat = VAT_EDEFAULT;
101
106
102
  /**
107
  /**
103
   * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. <!-- begin-user-doc --> <!--
108
   * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
104
   * end-user-doc -->
109
   * <!-- begin-user-doc -->
105
   * 
110
   * <!-- end-user-doc -->
106
   * @see #getDescription()
111
   * @see #getDescription()
107
   * @generated
112
   * @generated
108
   * @ordered
113
   * @ordered
Lines 110-118 Link Here
110
  protected static final String DESCRIPTION_EDEFAULT = null;
115
  protected static final String DESCRIPTION_EDEFAULT = null;
111
116
112
  /**
117
  /**
113
   * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. <!-- begin-user-doc --> <!--
118
   * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
114
   * end-user-doc -->
119
   * <!-- begin-user-doc -->
115
   * 
120
   * <!-- end-user-doc -->
116
   * @see #getDescription()
121
   * @see #getDescription()
117
   * @generated
122
   * @generated
118
   * @ordered
123
   * @ordered
Lines 120-127 Link Here
120
  protected String description = DESCRIPTION_EDEFAULT;
125
  protected String description = DESCRIPTION_EDEFAULT;
121
126
122
  /**
127
  /**
123
   * <!-- begin-user-doc --> <!-- end-user-doc -->
128
   * <!-- begin-user-doc -->
124
   * 
129
   * <!-- end-user-doc -->
125
   * @generated
130
   * @generated
126
   */
131
   */
127
  protected Product1Impl()
132
  protected Product1Impl()
Lines 130-137 Link Here
130
  }
135
  }
131
136
132
  /**
137
  /**
133
   * <!-- begin-user-doc --> <!-- end-user-doc -->
138
   * <!-- begin-user-doc -->
134
   * 
139
   * <!-- end-user-doc -->
135
   * @generated
140
   * @generated
136
   */
141
   */
137
  @Override
142
  @Override
Lines 141-148 Link Here
141
  }
146
  }
142
147
143
  /**
148
  /**
144
   * <!-- begin-user-doc --> <!-- end-user-doc -->
149
   * <!-- begin-user-doc -->
145
   * 
150
   * <!-- end-user-doc -->
146
   * @generated
151
   * @generated
147
   */
152
   */
148
  public String getName()
153
  public String getName()
Lines 151-158 Link Here
151
  }
156
  }
152
157
153
  /**
158
  /**
154
   * <!-- begin-user-doc --> <!-- end-user-doc -->
159
   * <!-- begin-user-doc -->
155
   * 
160
   * <!-- end-user-doc -->
156
   * @generated
161
   * @generated
157
   */
162
   */
158
  public void setName(String newName)
163
  public void setName(String newName)
Lines 164-171 Link Here
164
  }
169
  }
165
170
166
  /**
171
  /**
167
   * <!-- begin-user-doc --> <!-- end-user-doc -->
172
   * <!-- begin-user-doc -->
168
   * 
173
   * <!-- end-user-doc -->
169
   * @generated
174
   * @generated
170
   */
175
   */
171
  public EList<OrderDetail> getOrderDetails()
176
  public EList<OrderDetail> getOrderDetails()
Lines 179-186 Link Here
179
  }
184
  }
180
185
181
  /**
186
  /**
182
   * <!-- begin-user-doc --> <!-- end-user-doc -->
187
   * <!-- begin-user-doc -->
183
   * 
188
   * <!-- end-user-doc -->
184
   * @generated
189
   * @generated
185
   */
190
   */
186
  public VAT getVat()
191
  public VAT getVat()
Lines 189-196 Link Here
189
  }
194
  }
190
195
191
  /**
196
  /**
192
   * <!-- begin-user-doc --> <!-- end-user-doc -->
197
   * <!-- begin-user-doc -->
193
   * 
198
   * <!-- end-user-doc -->
194
   * @generated
199
   * @generated
195
   */
200
   */
196
  public void setVat(VAT newVat)
201
  public void setVat(VAT newVat)
Lines 202-209 Link Here
202
  }
207
  }
203
208
204
  /**
209
  /**
205
   * <!-- begin-user-doc --> <!-- end-user-doc -->
210
   * <!-- begin-user-doc -->
206
   * 
211
   * <!-- end-user-doc -->
207
   * @generated
212
   * @generated
208
   */
213
   */
209
  public String getDescription()
214
  public String getDescription()
Lines 212-219 Link Here
212
  }
217
  }
213
218
214
  /**
219
  /**
215
   * <!-- begin-user-doc --> <!-- end-user-doc -->
220
   * <!-- begin-user-doc -->
216
   * 
221
   * <!-- end-user-doc -->
217
   * @generated
222
   * @generated
218
   */
223
   */
219
  public void setDescription(String newDescription)
224
  public void setDescription(String newDescription)
Lines 226-233 Link Here
226
  }
231
  }
227
232
228
  /**
233
  /**
229
   * <!-- begin-user-doc --> <!-- end-user-doc -->
234
   * <!-- begin-user-doc -->
230
   * 
235
   * <!-- end-user-doc -->
231
   * @generated
236
   * @generated
232
   */
237
   */
233
  @SuppressWarnings("unchecked")
238
  @SuppressWarnings("unchecked")
Lines 243-250 Link Here
243
  }
248
  }
244
249
245
  /**
250
  /**
246
   * <!-- begin-user-doc --> <!-- end-user-doc -->
251
   * <!-- begin-user-doc -->
247
   * 
252
   * <!-- end-user-doc -->
248
   * @generated
253
   * @generated
249
   */
254
   */
250
  @Override
255
  @Override
Lines 259-266 Link Here
259
  }
264
  }
260
265
261
  /**
266
  /**
262
   * <!-- begin-user-doc --> <!-- end-user-doc -->
267
   * <!-- begin-user-doc -->
263
   * 
268
   * <!-- end-user-doc -->
264
   * @generated
269
   * @generated
265
   */
270
   */
266
  @Override
271
  @Override
Lines 281-288 Link Here
281
  }
286
  }
282
287
283
  /**
288
  /**
284
   * <!-- begin-user-doc --> <!-- end-user-doc -->
289
   * <!-- begin-user-doc -->
285
   * 
290
   * <!-- end-user-doc -->
286
   * @generated
291
   * @generated
287
   */
292
   */
288
  @SuppressWarnings("unchecked")
293
  @SuppressWarnings("unchecked")
Lines 309-316 Link Here
309
  }
314
  }
310
315
311
  /**
316
  /**
312
   * <!-- begin-user-doc --> <!-- end-user-doc -->
317
   * <!-- begin-user-doc -->
313
   * 
318
   * <!-- end-user-doc -->
314
   * @generated
319
   * @generated
315
   */
320
   */
316
  @Override
321
  @Override
Lines 335-342 Link Here
335
  }
340
  }
336
341
337
  /**
342
  /**
338
   * <!-- begin-user-doc --> <!-- end-user-doc -->
343
   * <!-- begin-user-doc -->
339
   * 
344
   * <!-- end-user-doc -->
340
   * @generated
345
   * @generated
341
   */
346
   */
342
  @Override
347
  @Override
Lines 357-364 Link Here
357
  }
362
  }
358
363
359
  /**
364
  /**
360
   * <!-- begin-user-doc --> <!-- end-user-doc -->
365
   * <!-- begin-user-doc -->
361
   * 
366
   * <!-- end-user-doc -->
362
   * @generated
367
   * @generated
363
   */
368
   */
364
  @Override
369
  @Override
Lines 378-381 Link Here
378
    return result.toString();
383
    return result.toString();
379
  }
384
  }
380
385
381
} // Product1Impl
386
} //Product1Impl
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/AddressImpl.java (-2 / +10 lines)
Lines 8-19 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: AddressImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Address;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.model1.Address;
17
17
18
import org.eclipse.emf.common.notify.Notification;
18
import org.eclipse.emf.common.notify.Notification;
19
import org.eclipse.emf.ecore.EClass;
19
import org.eclipse.emf.ecore.EClass;
Lines 141-147 Link Here
141
    String oldName = name;
141
    String oldName = name;
142
    name = newName;
142
    name = newName;
143
    if (eNotificationRequired())
143
    if (eNotificationRequired())
144
    {
144
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.ADDRESS__NAME, oldName, name));
145
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.ADDRESS__NAME, oldName, name));
146
    }
145
  }
147
  }
146
148
147
  /**
149
  /**
Lines 164-170 Link Here
164
    String oldStreet = street;
166
    String oldStreet = street;
165
    street = newStreet;
167
    street = newStreet;
166
    if (eNotificationRequired())
168
    if (eNotificationRequired())
169
    {
167
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.ADDRESS__STREET, oldStreet, street));
170
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.ADDRESS__STREET, oldStreet, street));
171
    }
168
  }
172
  }
169
173
170
  /**
174
  /**
Lines 187-193 Link Here
187
    String oldCity = city;
191
    String oldCity = city;
188
    city = newCity;
192
    city = newCity;
189
    if (eNotificationRequired())
193
    if (eNotificationRequired())
194
    {
190
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.ADDRESS__CITY, oldCity, city));
195
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.ADDRESS__CITY, oldCity, city));
196
    }
191
  }
197
  }
192
198
193
  /**
199
  /**
Lines 285-291 Link Here
285
  public String toString()
291
  public String toString()
286
  {
292
  {
287
    if (eIsProxy())
293
    if (eIsProxy())
294
    {
288
      return super.toString();
295
      return super.toString();
296
    }
289
297
290
    StringBuffer result = new StringBuffer(super.toString());
298
    StringBuffer result = new StringBuffer(super.toString());
291
    result.append(" (name: ");
299
    result.append(" (name: ");
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/CustomerImpl.java (-3 / +52 lines)
Lines 8-26 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: CustomerImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Customer;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
17
import org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder;
16
import org.eclipse.emf.cdo.tests.model1.Customer;
17
import org.eclipse.emf.cdo.tests.model1.Product1;
18
import org.eclipse.emf.cdo.tests.model1.SalesOrder;
18
19
19
import org.eclipse.emf.common.notify.NotificationChain;
20
import org.eclipse.emf.common.notify.NotificationChain;
20
import org.eclipse.emf.common.util.EList;
21
import org.eclipse.emf.common.util.EList;
22
import org.eclipse.emf.common.util.EMap;
21
import org.eclipse.emf.ecore.EClass;
23
import org.eclipse.emf.ecore.EClass;
24
import org.eclipse.emf.ecore.EStructuralFeature;
22
import org.eclipse.emf.ecore.InternalEObject;
25
import org.eclipse.emf.ecore.InternalEObject;
23
import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
26
import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
27
import org.eclipse.emf.ecore.util.EcoreEMap;
24
import org.eclipse.emf.ecore.util.InternalEList;
28
import org.eclipse.emf.ecore.util.InternalEList;
25
29
26
import java.util.Collection;
30
import java.util.Collection;
Lines 31-36 Link Here
31
 * The following features are implemented:
35
 * The following features are implemented:
32
 * <ul>
36
 * <ul>
33
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CustomerImpl#getSalesOrders <em>Sales Orders</em>}</li>
37
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CustomerImpl#getSalesOrders <em>Sales Orders</em>}</li>
38
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CustomerImpl#getOrderByProduct <em>Order By Product</em>}</li>
34
 * </ul>
39
 * </ul>
35
 * </p>
40
 * </p>
36
 * 
41
 * 
Lines 56-61 Link Here
56
  protected EList<SalesOrder> salesOrders;
61
  protected EList<SalesOrder> salesOrders;
57
62
58
  /**
63
  /**
64
   * The cached value of the '{@link #getOrderByProduct() <em>Order By Product</em>}' map. <!-- begin-user-doc --> <!--
65
   * end-user-doc -->
66
   * 
67
   * @see #getOrderByProduct()
68
   * @generated
69
   * @ordered
70
   */
71
  protected EMap<Product1, SalesOrder> orderByProduct;
72
73
  /**
59
   * <!-- begin-user-doc --> <!-- end-user-doc -->
74
   * <!-- begin-user-doc --> <!-- end-user-doc -->
60
   * 
75
   * 
61
   * @generated
76
   * @generated
Lines 96-101 Link Here
96
   * 
111
   * 
97
   * @generated
112
   * @generated
98
   */
113
   */
114
  public EMap<Product1, SalesOrder> getOrderByProduct()
115
  {
116
    if (orderByProduct == null)
117
    {
118
      orderByProduct = new EcoreEMap<Product1, SalesOrder>(Model1Package.Literals.PRODUCT_TO_ORDER,
119
          ProductToOrderImpl.class, this, Model1Package.CUSTOMER__ORDER_BY_PRODUCT);
120
    }
121
    return orderByProduct;
122
  }
123
124
  /**
125
   * <!-- begin-user-doc --> <!-- end-user-doc -->
126
   * 
127
   * @generated
128
   */
99
  @SuppressWarnings("unchecked")
129
  @SuppressWarnings("unchecked")
100
  @Override
130
  @Override
101
  public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
131
  public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
Lines 120-125 Link Here
120
    {
150
    {
121
    case Model1Package.CUSTOMER__SALES_ORDERS:
151
    case Model1Package.CUSTOMER__SALES_ORDERS:
122
      return ((InternalEList<?>)getSalesOrders()).basicRemove(otherEnd, msgs);
152
      return ((InternalEList<?>)getSalesOrders()).basicRemove(otherEnd, msgs);
153
    case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
154
      return ((InternalEList<?>)getOrderByProduct()).basicRemove(otherEnd, msgs);
123
    }
155
    }
124
    return super.eInverseRemove(otherEnd, featureID, msgs);
156
    return super.eInverseRemove(otherEnd, featureID, msgs);
125
  }
157
  }
Lines 136-141 Link Here
136
    {
168
    {
137
    case Model1Package.CUSTOMER__SALES_ORDERS:
169
    case Model1Package.CUSTOMER__SALES_ORDERS:
138
      return getSalesOrders();
170
      return getSalesOrders();
171
    case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
172
      if (coreType)
173
      {
174
        return getOrderByProduct();
175
      }
176
      else
177
      {
178
        return getOrderByProduct().map();
179
      }
139
    }
180
    }
140
    return super.eGet(featureID, resolve, coreType);
181
    return super.eGet(featureID, resolve, coreType);
141
  }
182
  }
Lines 155-160 Link Here
155
      getSalesOrders().clear();
196
      getSalesOrders().clear();
156
      getSalesOrders().addAll((Collection<? extends SalesOrder>)newValue);
197
      getSalesOrders().addAll((Collection<? extends SalesOrder>)newValue);
157
      return;
198
      return;
199
    case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
200
      ((EStructuralFeature.Setting)getOrderByProduct()).set(newValue);
201
      return;
158
    }
202
    }
159
    super.eSet(featureID, newValue);
203
    super.eSet(featureID, newValue);
160
  }
204
  }
Lines 172-177 Link Here
172
    case Model1Package.CUSTOMER__SALES_ORDERS:
216
    case Model1Package.CUSTOMER__SALES_ORDERS:
173
      getSalesOrders().clear();
217
      getSalesOrders().clear();
174
      return;
218
      return;
219
    case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
220
      getOrderByProduct().clear();
221
      return;
175
    }
222
    }
176
    super.eUnset(featureID);
223
    super.eUnset(featureID);
177
  }
224
  }
Lines 188-193 Link Here
188
    {
235
    {
189
    case Model1Package.CUSTOMER__SALES_ORDERS:
236
    case Model1Package.CUSTOMER__SALES_ORDERS:
190
      return salesOrders != null && !salesOrders.isEmpty();
237
      return salesOrders != null && !salesOrders.isEmpty();
238
    case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
239
      return orderByProduct != null && !orderByProduct.isEmpty();
191
    }
240
    }
192
    return super.eIsSet(featureID);
241
    return super.eIsSet(featureID);
193
  }
242
  }
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1PackageImpl.java (-59 / +131 lines)
Lines 8-30 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: Model1PackageImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Address;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Category;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Company;
18
import org.eclipse.emf.cdo.tests.legacy.model1.Customer;
19
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory;
20
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
21
import org.eclipse.emf.cdo.tests.legacy.model1.Order;
17
import org.eclipse.emf.cdo.tests.model1.Address;
22
import org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress;
18
import org.eclipse.emf.cdo.tests.model1.Category;
23
import org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail;
19
import org.eclipse.emf.cdo.tests.model1.Company;
24
import org.eclipse.emf.cdo.tests.legacy.model1.Product1;
20
import org.eclipse.emf.cdo.tests.model1.Customer;
25
import org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder;
21
import org.eclipse.emf.cdo.tests.model1.Order;
26
import org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder;
22
import org.eclipse.emf.cdo.tests.model1.OrderAddress;
27
import org.eclipse.emf.cdo.tests.legacy.model1.Supplier;
23
import org.eclipse.emf.cdo.tests.model1.OrderDetail;
24
import org.eclipse.emf.cdo.tests.model1.Product1;
25
import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
26
import org.eclipse.emf.cdo.tests.model1.SalesOrder;
27
import org.eclipse.emf.cdo.tests.model1.Supplier;
28
28
29
import org.eclipse.emf.ecore.EAttribute;
29
import org.eclipse.emf.ecore.EAttribute;
30
import org.eclipse.emf.ecore.EClass;
30
import org.eclipse.emf.ecore.EClass;
Lines 33-38 Link Here
33
import org.eclipse.emf.ecore.EReference;
33
import org.eclipse.emf.ecore.EReference;
34
import org.eclipse.emf.ecore.impl.EPackageImpl;
34
import org.eclipse.emf.ecore.impl.EPackageImpl;
35
35
36
import java.util.Map;
37
36
/**
38
/**
37
 * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
39
 * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
38
 * 
40
 * 
Lines 129-134 Link Here
129
   * 
131
   * 
130
   * @generated
132
   * @generated
131
   */
133
   */
134
  private EClass productToOrderEClass = null;
135
136
  /**
137
   * <!-- begin-user-doc --> <!-- end-user-doc -->
138
   * 
139
   * @generated
140
   */
132
  private EEnum vatEEnum = null;
141
  private EEnum vatEEnum = null;
133
142
134
  /**
143
  /**
Lines 171-177 Link Here
171
  public static Model1Package init()
180
  public static Model1Package init()
172
  {
181
  {
173
    if (isInited)
182
    if (isInited)
183
    {
174
      return (Model1Package)EPackage.Registry.INSTANCE.getEPackage(Model1Package.eNS_URI);
184
      return (Model1Package)EPackage.Registry.INSTANCE.getEPackage(Model1Package.eNS_URI);
185
    }
175
186
176
    // Obtain or create and register package
187
    // Obtain or create and register package
177
    Model1PackageImpl theModel1Package = (Model1PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model1PackageImpl ? EPackage.Registry.INSTANCE
188
    Model1PackageImpl theModel1Package = (Model1PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model1PackageImpl ? EPackage.Registry.INSTANCE
Lines 349-354 Link Here
349
   * 
360
   * 
350
   * @generated
361
   * @generated
351
   */
362
   */
363
  public EReference getCustomer_OrderByProduct()
364
  {
365
    return (EReference)customerEClass.getEStructuralFeatures().get(1);
366
  }
367
368
  /**
369
   * <!-- begin-user-doc --> <!-- end-user-doc -->
370
   * 
371
   * @generated
372
   */
352
  public EClass getOrder()
373
  public EClass getOrder()
353
  {
374
  {
354
    return orderEClass;
375
    return orderEClass;
Lines 579-584 Link Here
579
   * 
600
   * 
580
   * @generated
601
   * @generated
581
   */
602
   */
603
  public EClass getProductToOrder()
604
  {
605
    return productToOrderEClass;
606
  }
607
608
  /**
609
   * <!-- begin-user-doc --> <!-- end-user-doc -->
610
   * 
611
   * @generated
612
   */
613
  public EReference getProductToOrder_Key()
614
  {
615
    return (EReference)productToOrderEClass.getEStructuralFeatures().get(0);
616
  }
617
618
  /**
619
   * <!-- begin-user-doc --> <!-- end-user-doc -->
620
   * 
621
   * @generated
622
   */
623
  public EReference getProductToOrder_Value()
624
  {
625
    return (EReference)productToOrderEClass.getEStructuralFeatures().get(1);
626
  }
627
628
  /**
629
   * <!-- begin-user-doc --> <!-- end-user-doc -->
630
   * 
631
   * @generated
632
   */
582
  public EEnum getVAT()
633
  public EEnum getVAT()
583
  {
634
  {
584
    return vatEEnum;
635
    return vatEEnum;
Lines 610-616 Link Here
610
  public void createPackageContents()
661
  public void createPackageContents()
611
  {
662
  {
612
    if (isCreated)
663
    if (isCreated)
664
    {
613
      return;
665
      return;
666
    }
614
    isCreated = true;
667
    isCreated = true;
615
668
616
    // Create classes and their features
669
    // Create classes and their features
Lines 632-637 Link Here
632
685
633
    customerEClass = createEClass(CUSTOMER);
686
    customerEClass = createEClass(CUSTOMER);
634
    createEReference(customerEClass, CUSTOMER__SALES_ORDERS);
687
    createEReference(customerEClass, CUSTOMER__SALES_ORDERS);
688
    createEReference(customerEClass, CUSTOMER__ORDER_BY_PRODUCT);
635
689
636
    orderEClass = createEClass(ORDER);
690
    orderEClass = createEClass(ORDER);
637
    createEReference(orderEClass, ORDER__ORDER_DETAILS);
691
    createEReference(orderEClass, ORDER__ORDER_DETAILS);
Lines 663-668 Link Here
663
    orderAddressEClass = createEClass(ORDER_ADDRESS);
717
    orderAddressEClass = createEClass(ORDER_ADDRESS);
664
    createEAttribute(orderAddressEClass, ORDER_ADDRESS__TEST_ATTRIBUTE);
718
    createEAttribute(orderAddressEClass, ORDER_ADDRESS__TEST_ATTRIBUTE);
665
719
720
    productToOrderEClass = createEClass(PRODUCT_TO_ORDER);
721
    createEReference(productToOrderEClass, PRODUCT_TO_ORDER__KEY);
722
    createEReference(productToOrderEClass, PRODUCT_TO_ORDER__VALUE);
723
666
    // Create enums
724
    // Create enums
667
    vatEEnum = createEEnum(VAT);
725
    vatEEnum = createEEnum(VAT);
668
  }
726
  }
Lines 683-689 Link Here
683
  public void initializePackageContents()
741
  public void initializePackageContents()
684
  {
742
  {
685
    if (isInitialized)
743
    if (isInitialized)
744
    {
686
      return;
745
      return;
746
    }
687
    isInitialized = true;
747
    isInitialized = true;
688
748
689
    // Initialize package
749
    // Initialize package
Lines 696-709 Link Here
696
    // Set bounds for type parameters
756
    // Set bounds for type parameters
697
757
698
    // Add supertypes to classes
758
    // Add supertypes to classes
699
    companyEClass.getESuperTypes().add(this.getAddress());
759
    companyEClass.getESuperTypes().add(getAddress());
700
    supplierEClass.getESuperTypes().add(this.getAddress());
760
    supplierEClass.getESuperTypes().add(getAddress());
701
    customerEClass.getESuperTypes().add(this.getAddress());
761
    customerEClass.getESuperTypes().add(getAddress());
702
    purchaseOrderEClass.getESuperTypes().add(this.getOrder());
762
    purchaseOrderEClass.getESuperTypes().add(getOrder());
703
    salesOrderEClass.getESuperTypes().add(this.getOrder());
763
    salesOrderEClass.getESuperTypes().add(getOrder());
704
    orderAddressEClass.getESuperTypes().add(this.getAddress());
764
    orderAddressEClass.getESuperTypes().add(getAddress());
705
    orderAddressEClass.getESuperTypes().add(this.getOrder());
765
    orderAddressEClass.getESuperTypes().add(getOrder());
706
    orderAddressEClass.getESuperTypes().add(this.getOrderDetail());
766
    orderAddressEClass.getESuperTypes().add(getOrderDetail());
707
767
708
    // Initialize classes and features; add operations and parameters
768
    // Initialize classes and features; add operations and parameters
709
    initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
769
    initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
Lines 715-760 Link Here
715
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
775
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
716
776
717
    initEClass(companyEClass, Company.class, "Company", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
777
    initEClass(companyEClass, Company.class, "Company", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
718
    initEReference(getCompany_Categories(), this.getCategory(), null, "categories", null, 0, -1, Company.class,
778
    initEReference(getCompany_Categories(), getCategory(), null, "categories", null, 0, -1, Company.class,
719
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
720
        !IS_DERIVED, IS_ORDERED);
721
    initEReference(getCompany_Suppliers(), this.getSupplier(), null, "suppliers", null, 0, -1, Company.class,
722
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
779
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
723
        !IS_DERIVED, IS_ORDERED);
780
        !IS_DERIVED, IS_ORDERED);
724
    initEReference(getCompany_Customers(), this.getCustomer(), null, "customers", null, 0, -1, Company.class,
781
    initEReference(getCompany_Suppliers(), getSupplier(), null, "suppliers", null, 0, -1, Company.class, !IS_TRANSIENT,
782
        !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
783
        IS_ORDERED);
784
    initEReference(getCompany_Customers(), getCustomer(), null, "customers", null, 0, -1, Company.class, !IS_TRANSIENT,
785
        !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
786
        IS_ORDERED);
787
    initEReference(getCompany_PurchaseOrders(), getPurchaseOrder(), null, "purchaseOrders", null, 0, -1, Company.class,
725
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
788
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
726
        !IS_DERIVED, IS_ORDERED);
789
        !IS_DERIVED, IS_ORDERED);
727
    initEReference(getCompany_PurchaseOrders(), this.getPurchaseOrder(), null, "purchaseOrders", null, 0, -1,
790
    initEReference(getCompany_SalesOrders(), getSalesOrder(), null, "salesOrders", null, 0, -1, Company.class,
728
        Company.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
729
        IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
730
    initEReference(getCompany_SalesOrders(), this.getSalesOrder(), null, "salesOrders", null, 0, -1, Company.class,
731
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
791
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
732
        !IS_DERIVED, IS_ORDERED);
792
        !IS_DERIVED, IS_ORDERED);
733
793
734
    initEClass(supplierEClass, Supplier.class, "Supplier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
794
    initEClass(supplierEClass, Supplier.class, "Supplier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
735
    initEReference(getSupplier_PurchaseOrders(), this.getPurchaseOrder(), this.getPurchaseOrder_Supplier(),
795
    initEReference(getSupplier_PurchaseOrders(), getPurchaseOrder(), getPurchaseOrder_Supplier(), "purchaseOrders",
736
        "purchaseOrders", null, 0, -1, Supplier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
796
        null, 0, -1, Supplier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
737
        IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
797
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
738
    initEAttribute(getSupplier_Preferred(), ecorePackage.getEBoolean(), "preferred", "true", 0, 1, Supplier.class,
798
    initEAttribute(getSupplier_Preferred(), ecorePackage.getEBoolean(), "preferred", "true", 0, 1, Supplier.class,
739
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
799
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
740
800
741
    initEClass(customerEClass, Customer.class, "Customer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
801
    initEClass(customerEClass, Customer.class, "Customer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
742
    initEReference(getCustomer_SalesOrders(), this.getSalesOrder(), this.getSalesOrder_Customer(), "salesOrders", null,
802
    initEReference(getCustomer_SalesOrders(), getSalesOrder(), getSalesOrder_Customer(), "salesOrders", null, 0, -1,
743
        0, -1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
803
        Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
744
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
804
        IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
805
    initEReference(getCustomer_OrderByProduct(), getProductToOrder(), null, "orderByProduct", null, 0, -1,
806
        Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
807
        IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
745
808
746
    initEClass(orderEClass, Order.class, "Order", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
809
    initEClass(orderEClass, Order.class, "Order", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
747
    initEReference(getOrder_OrderDetails(), this.getOrderDetail(), this.getOrderDetail_Order(), "orderDetails", null,
810
    initEReference(getOrder_OrderDetails(), getOrderDetail(), getOrderDetail_Order(), "orderDetails", null, 0, -1,
748
        0, -1, Order.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
811
        Order.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
749
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
812
        IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
750
813
751
    initEClass(orderDetailEClass, OrderDetail.class, "OrderDetail", !IS_ABSTRACT, !IS_INTERFACE,
814
    initEClass(orderDetailEClass, OrderDetail.class, "OrderDetail", !IS_ABSTRACT, !IS_INTERFACE,
752
        IS_GENERATED_INSTANCE_CLASS);
815
        IS_GENERATED_INSTANCE_CLASS);
753
    initEReference(getOrderDetail_Order(), this.getOrder(), this.getOrder_OrderDetails(), "order", null, 1, 1,
816
    initEReference(getOrderDetail_Order(), getOrder(), getOrder_OrderDetails(), "order", null, 1, 1, OrderDetail.class,
754
        OrderDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES,
817
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
755
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
818
        !IS_DERIVED, IS_ORDERED);
756
    initEReference(getOrderDetail_Product(), this.getProduct1(), this.getProduct1_OrderDetails(), "product", null, 0,
819
    initEReference(getOrderDetail_Product(), getProduct1(), getProduct1_OrderDetails(), "product", null, 0, 1,
757
        1, OrderDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
820
        OrderDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
758
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
821
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
759
    initEAttribute(getOrderDetail_Price(), ecorePackage.getEFloat(), "price", null, 0, 1, OrderDetail.class,
822
    initEAttribute(getOrderDetail_Price(), ecorePackage.getEFloat(), "price", null, 0, 1, OrderDetail.class,
760
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
823
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
Lines 763-797 Link Here
763
        IS_GENERATED_INSTANCE_CLASS);
826
        IS_GENERATED_INSTANCE_CLASS);
764
    initEAttribute(getPurchaseOrder_Date(), ecorePackage.getEDate(), "date", null, 0, 1, PurchaseOrder.class,
827
    initEAttribute(getPurchaseOrder_Date(), ecorePackage.getEDate(), "date", null, 0, 1, PurchaseOrder.class,
765
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
828
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
766
    initEReference(getPurchaseOrder_Supplier(), this.getSupplier(), this.getSupplier_PurchaseOrders(), "supplier",
829
    initEReference(getPurchaseOrder_Supplier(), getSupplier(), getSupplier_PurchaseOrders(), "supplier", null, 1, 1,
767
        null, 1, 1, PurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
830
        PurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
768
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
831
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
769
832
770
    initEClass(salesOrderEClass, SalesOrder.class, "SalesOrder", !IS_ABSTRACT, !IS_INTERFACE,
833
    initEClass(salesOrderEClass, SalesOrder.class, "SalesOrder", !IS_ABSTRACT, !IS_INTERFACE,
771
        IS_GENERATED_INSTANCE_CLASS);
834
        IS_GENERATED_INSTANCE_CLASS);
772
    initEAttribute(getSalesOrder_Id(), ecorePackage.getEInt(), "id", null, 0, 1, SalesOrder.class, !IS_TRANSIENT,
835
    initEAttribute(getSalesOrder_Id(), ecorePackage.getEInt(), "id", null, 0, 1, SalesOrder.class, !IS_TRANSIENT,
773
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
836
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
774
    initEReference(getSalesOrder_Customer(), this.getCustomer(), this.getCustomer_SalesOrders(), "customer", null, 1,
837
    initEReference(getSalesOrder_Customer(), getCustomer(), getCustomer_SalesOrders(), "customer", null, 1, 1,
775
        1, SalesOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
838
        SalesOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
776
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
839
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
777
840
778
    initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
841
    initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
779
    initEAttribute(getCategory_Name(), ecorePackage.getEString(), "name", null, 0, 1, Category.class, !IS_TRANSIENT,
842
    initEAttribute(getCategory_Name(), ecorePackage.getEString(), "name", null, 0, 1, Category.class, !IS_TRANSIENT,
780
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
843
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
781
    initEReference(getCategory_Categories(), this.getCategory(), null, "categories", null, 0, -1, Category.class,
844
    initEReference(getCategory_Categories(), getCategory(), null, "categories", null, 0, -1, Category.class,
782
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
783
        !IS_DERIVED, IS_ORDERED);
784
    initEReference(getCategory_Products(), this.getProduct1(), null, "products", null, 0, -1, Category.class,
785
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
845
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
786
        !IS_DERIVED, IS_ORDERED);
846
        !IS_DERIVED, IS_ORDERED);
847
    initEReference(getCategory_Products(), getProduct1(), null, "products", null, 0, -1, Category.class, !IS_TRANSIENT,
848
        !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
849
        IS_ORDERED);
787
850
788
    initEClass(product1EClass, Product1.class, "Product1", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
851
    initEClass(product1EClass, Product1.class, "Product1", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
789
    initEAttribute(getProduct1_Name(), ecorePackage.getEString(), "name", null, 0, 1, Product1.class, !IS_TRANSIENT,
852
    initEAttribute(getProduct1_Name(), ecorePackage.getEString(), "name", null, 0, 1, Product1.class, !IS_TRANSIENT,
790
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
853
        !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
791
    initEReference(getProduct1_OrderDetails(), this.getOrderDetail(), this.getOrderDetail_Product(), "orderDetails",
854
    initEReference(getProduct1_OrderDetails(), getOrderDetail(), getOrderDetail_Product(), "orderDetails", null, 0, -1,
792
        null, 0, -1, Product1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
855
        Product1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
793
        !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
856
        IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
794
    initEAttribute(getProduct1_Vat(), this.getVAT(), "vat", "vat15", 0, 1, Product1.class, !IS_TRANSIENT, !IS_VOLATILE,
857
    initEAttribute(getProduct1_Vat(), getVAT(), "vat", "vat15", 0, 1, Product1.class, !IS_TRANSIENT, !IS_VOLATILE,
795
        IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
858
        IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
796
    initEAttribute(getProduct1_Description(), ecorePackage.getEString(), "description", null, 0, 1, Product1.class,
859
    initEAttribute(getProduct1_Description(), ecorePackage.getEString(), "description", null, 0, 1, Product1.class,
797
        IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
860
        IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
Lines 802-812 Link Here
802
        OrderAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
865
        OrderAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
803
        IS_ORDERED);
866
        IS_ORDERED);
804
867
868
    initEClass(productToOrderEClass, Map.Entry.class, "ProductToOrder", !IS_ABSTRACT, !IS_INTERFACE,
869
        !IS_GENERATED_INSTANCE_CLASS);
870
    initEReference(getProductToOrder_Key(), getProduct1(), null, "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT,
871
        !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
872
        IS_ORDERED);
873
    initEReference(getProductToOrder_Value(), getSalesOrder(), null, "value", null, 0, 1, Map.Entry.class,
874
        !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
875
        !IS_DERIVED, IS_ORDERED);
876
805
    // Initialize enums and add enum literals
877
    // Initialize enums and add enum literals
806
    initEEnum(vatEEnum, org.eclipse.emf.cdo.tests.legacy.model1.VAT.class, "VAT");
878
    initEEnum(vatEEnum, org.eclipse.emf.cdo.tests.model1.VAT.class, "VAT");
807
    addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.tests.legacy.model1.VAT.VAT0);
879
    addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.tests.model1.VAT.VAT0);
808
    addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.tests.legacy.model1.VAT.VAT7);
880
    addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.tests.model1.VAT.VAT7);
809
    addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.tests.legacy.model1.VAT.VAT15);
881
    addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.tests.model1.VAT.VAT15);
810
882
811
    // Create resource
883
    // Create resource
812
    createResource(eNS_URI);
884
    createResource(eNS_URI);
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1FactoryImpl.java (-13 / +30 lines)
Lines 8-31 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: Model1FactoryImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Address;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Category;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Company;
18
import org.eclipse.emf.cdo.tests.legacy.model1.Customer;
19
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory;
20
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
21
import org.eclipse.emf.cdo.tests.legacy.model1.Order;
17
import org.eclipse.emf.cdo.tests.model1.Address;
22
import org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress;
18
import org.eclipse.emf.cdo.tests.model1.Category;
23
import org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail;
19
import org.eclipse.emf.cdo.tests.model1.Company;
24
import org.eclipse.emf.cdo.tests.legacy.model1.Product1;
20
import org.eclipse.emf.cdo.tests.model1.Customer;
25
import org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder;
21
import org.eclipse.emf.cdo.tests.model1.Order;
26
import org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder;
22
import org.eclipse.emf.cdo.tests.model1.OrderAddress;
27
import org.eclipse.emf.cdo.tests.legacy.model1.Supplier;
23
import org.eclipse.emf.cdo.tests.model1.OrderDetail;
28
import org.eclipse.emf.cdo.tests.legacy.model1.VAT;
24
import org.eclipse.emf.cdo.tests.model1.Product1;
25
import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
26
import org.eclipse.emf.cdo.tests.model1.SalesOrder;
27
import org.eclipse.emf.cdo.tests.model1.Supplier;
28
import org.eclipse.emf.cdo.tests.model1.VAT;
29
29
30
import org.eclipse.emf.ecore.EClass;
30
import org.eclipse.emf.ecore.EClass;
31
import org.eclipse.emf.ecore.EDataType;
31
import org.eclipse.emf.ecore.EDataType;
Lines 34-39 Link Here
34
import org.eclipse.emf.ecore.impl.EFactoryImpl;
34
import org.eclipse.emf.ecore.impl.EFactoryImpl;
35
import org.eclipse.emf.ecore.plugin.EcorePlugin;
35
import org.eclipse.emf.ecore.plugin.EcorePlugin;
36
36
37
import java.util.Map;
38
37
/**
39
/**
38
 * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
40
 * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
39
 * 
41
 * 
Lines 113-118 Link Here
113
      return createProduct1();
115
      return createProduct1();
114
    case Model1Package.ORDER_ADDRESS:
116
    case Model1Package.ORDER_ADDRESS:
115
      return createOrderAddress();
117
      return createOrderAddress();
118
    case Model1Package.PRODUCT_TO_ORDER:
119
      return (EObject)createProductToOrder();
116
    default:
120
    default:
117
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
121
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
118
    }
122
    }
Lines 278-289 Link Here
278
   * 
282
   * 
279
   * @generated
283
   * @generated
280
   */
284
   */
285
  public Map.Entry<Product1, SalesOrder> createProductToOrder()
286
  {
287
    ProductToOrderImpl productToOrder = new ProductToOrderImpl();
288
    return productToOrder;
289
  }
290
291
  /**
292
   * <!-- begin-user-doc --> <!-- end-user-doc -->
293
   * 
294
   * @generated
295
   */
281
  public VAT createVATFromString(EDataType eDataType, String initialValue)
296
  public VAT createVATFromString(EDataType eDataType, String initialValue)
282
  {
297
  {
283
    VAT result = VAT.get(initialValue);
298
    VAT result = VAT.get(initialValue);
284
    if (result == null)
299
    if (result == null)
300
    {
285
      throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '"
301
      throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '"
286
          + eDataType.getName() + "'");
302
          + eDataType.getName() + "'");
303
    }
287
    return result;
304
    return result;
288
  }
305
  }
289
306
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/CategoryImpl.java (-46 / +49 lines)
Lines 8-20 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: CategoryImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Category;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Product1;
16
import org.eclipse.emf.cdo.tests.model1.Category;
17
import org.eclipse.emf.cdo.tests.model1.Product1;
18
18
19
import org.eclipse.emf.common.notify.Notification;
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.notify.NotificationChain;
20
import org.eclipse.emf.common.notify.NotificationChain;
Lines 29-59 Link Here
29
import java.util.Collection;
29
import java.util.Collection;
30
30
31
/**
31
/**
32
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Category</b></em>'. <!-- end-user-doc -->
32
 * <!-- begin-user-doc -->
33
 * An implementation of the model object '<em><b>Category</b></em>'.
34
 * <!-- end-user-doc -->
33
 * <p>
35
 * <p>
34
 * The following features are implemented:
36
 * The following features are implemented:
35
 * <ul>
37
 * <ul>
36
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CategoryImpl#getName <em>Name</em>}</li>
38
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CategoryImpl#getName <em>Name</em>}</li>
37
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CategoryImpl#getCategories <em>Categories</em>}</li>
39
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CategoryImpl#getCategories <em>Categories</em>}</li>
38
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CategoryImpl#getProducts <em>Products</em>}</li>
40
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CategoryImpl#getProducts <em>Products</em>}</li>
39
 * </ul>
41
 * </ul>
40
 * </p>
42
 * </p>
41
 * 
43
 *
42
 * @generated
44
 * @generated
43
 */
45
 */
44
public class CategoryImpl extends EObjectImpl implements Category
46
public class CategoryImpl extends EObjectImpl implements Category
45
{
47
{
46
  /**
48
  /**
47
   * <!-- begin-user-doc --> <!-- end-user-doc -->
49
   * <!-- begin-user-doc -->
48
   * 
50
   * <!-- end-user-doc -->
49
   * @generated
51
   * @generated
50
   */
52
   */
51
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
53
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
52
54
53
  /**
55
  /**
54
   * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
56
   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
55
   * -->
57
   * <!-- begin-user-doc -->
56
   * 
58
   * <!-- end-user-doc -->
57
   * @see #getName()
59
   * @see #getName()
58
   * @generated
60
   * @generated
59
   * @ordered
61
   * @ordered
Lines 61-68 Link Here
61
  protected static final String NAME_EDEFAULT = null;
63
  protected static final String NAME_EDEFAULT = null;
62
64
63
  /**
65
  /**
64
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
66
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
65
   * 
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
66
   * @see #getName()
69
   * @see #getName()
67
   * @generated
70
   * @generated
68
   * @ordered
71
   * @ordered
Lines 70-78 Link Here
70
  protected String name = NAME_EDEFAULT;
73
  protected String name = NAME_EDEFAULT;
71
74
72
  /**
75
  /**
73
   * The cached value of the '{@link #getCategories() <em>Categories</em>}' containment reference list. <!--
76
   * The cached value of the '{@link #getCategories() <em>Categories</em>}' containment reference list.
74
   * begin-user-doc --> <!-- end-user-doc -->
77
   * <!-- begin-user-doc -->
75
   * 
78
   * <!-- end-user-doc -->
76
   * @see #getCategories()
79
   * @see #getCategories()
77
   * @generated
80
   * @generated
78
   * @ordered
81
   * @ordered
Lines 80-88 Link Here
80
  protected EList<Category> categories;
83
  protected EList<Category> categories;
81
84
82
  /**
85
  /**
83
   * The cached value of the '{@link #getProducts() <em>Products</em>}' containment reference list. <!-- begin-user-doc
86
   * The cached value of the '{@link #getProducts() <em>Products</em>}' containment reference list.
84
   * --> <!-- end-user-doc -->
87
   * <!-- begin-user-doc -->
85
   * 
88
   * <!-- end-user-doc -->
86
   * @see #getProducts()
89
   * @see #getProducts()
87
   * @generated
90
   * @generated
88
   * @ordered
91
   * @ordered
Lines 90-97 Link Here
90
  protected EList<Product1> products;
93
  protected EList<Product1> products;
91
94
92
  /**
95
  /**
93
   * <!-- begin-user-doc --> <!-- end-user-doc -->
96
   * <!-- begin-user-doc -->
94
   * 
97
   * <!-- end-user-doc -->
95
   * @generated
98
   * @generated
96
   */
99
   */
97
  protected CategoryImpl()
100
  protected CategoryImpl()
Lines 100-107 Link Here
100
  }
103
  }
101
104
102
  /**
105
  /**
103
   * <!-- begin-user-doc --> <!-- end-user-doc -->
106
   * <!-- begin-user-doc -->
104
   * 
107
   * <!-- end-user-doc -->
105
   * @generated
108
   * @generated
106
   */
109
   */
107
  @Override
110
  @Override
Lines 111-118 Link Here
111
  }
114
  }
112
115
113
  /**
116
  /**
114
   * <!-- begin-user-doc --> <!-- end-user-doc -->
117
   * <!-- begin-user-doc -->
115
   * 
118
   * <!-- end-user-doc -->
116
   * @generated
119
   * @generated
117
   */
120
   */
118
  public String getName()
121
  public String getName()
Lines 121-128 Link Here
121
  }
124
  }
122
125
123
  /**
126
  /**
124
   * <!-- begin-user-doc --> <!-- end-user-doc -->
127
   * <!-- begin-user-doc -->
125
   * 
128
   * <!-- end-user-doc -->
126
   * @generated
129
   * @generated
127
   */
130
   */
128
  public void setName(String newName)
131
  public void setName(String newName)
Lines 134-141 Link Here
134
  }
137
  }
135
138
136
  /**
139
  /**
137
   * <!-- begin-user-doc --> <!-- end-user-doc -->
140
   * <!-- begin-user-doc -->
138
   * 
141
   * <!-- end-user-doc -->
139
   * @generated
142
   * @generated
140
   */
143
   */
141
  public EList<Category> getCategories()
144
  public EList<Category> getCategories()
Lines 148-155 Link Here
148
  }
151
  }
149
152
150
  /**
153
  /**
151
   * <!-- begin-user-doc --> <!-- end-user-doc -->
154
   * <!-- begin-user-doc -->
152
   * 
155
   * <!-- end-user-doc -->
153
   * @generated
156
   * @generated
154
   */
157
   */
155
  public EList<Product1> getProducts()
158
  public EList<Product1> getProducts()
Lines 162-169 Link Here
162
  }
165
  }
163
166
164
  /**
167
  /**
165
   * <!-- begin-user-doc --> <!-- end-user-doc -->
168
   * <!-- begin-user-doc -->
166
   * 
169
   * <!-- end-user-doc -->
167
   * @generated
170
   * @generated
168
   */
171
   */
169
  @Override
172
  @Override
Lines 180-187 Link Here
180
  }
183
  }
181
184
182
  /**
185
  /**
183
   * <!-- begin-user-doc --> <!-- end-user-doc -->
186
   * <!-- begin-user-doc -->
184
   * 
187
   * <!-- end-user-doc -->
185
   * @generated
188
   * @generated
186
   */
189
   */
187
  @Override
190
  @Override
Lines 200-207 Link Here
200
  }
203
  }
201
204
202
  /**
205
  /**
203
   * <!-- begin-user-doc --> <!-- end-user-doc -->
206
   * <!-- begin-user-doc -->
204
   * 
207
   * <!-- end-user-doc -->
205
   * @generated
208
   * @generated
206
   */
209
   */
207
  @SuppressWarnings("unchecked")
210
  @SuppressWarnings("unchecked")
Lines 226-233 Link Here
226
  }
229
  }
227
230
228
  /**
231
  /**
229
   * <!-- begin-user-doc --> <!-- end-user-doc -->
232
   * <!-- begin-user-doc -->
230
   * 
233
   * <!-- end-user-doc -->
231
   * @generated
234
   * @generated
232
   */
235
   */
233
  @Override
236
  @Override
Lines 249-256 Link Here
249
  }
252
  }
250
253
251
  /**
254
  /**
252
   * <!-- begin-user-doc --> <!-- end-user-doc -->
255
   * <!-- begin-user-doc -->
253
   * 
256
   * <!-- end-user-doc -->
254
   * @generated
257
   * @generated
255
   */
258
   */
256
  @Override
259
  @Override
Lines 269-276 Link Here
269
  }
272
  }
270
273
271
  /**
274
  /**
272
   * <!-- begin-user-doc --> <!-- end-user-doc -->
275
   * <!-- begin-user-doc -->
273
   * 
276
   * <!-- end-user-doc -->
274
   * @generated
277
   * @generated
275
   */
278
   */
276
  @Override
279
  @Override
Lines 286-289 Link Here
286
    return result.toString();
289
    return result.toString();
287
  }
290
  }
288
291
289
} // CategoryImpl
292
} //CategoryImpl
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/PurchaseOrderImpl.java (-15 / +34 lines)
Lines 1-20 Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: PurchaseOrderImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
1
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
2
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
3
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder;
4
import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Supplier;
5
import org.eclipse.emf.cdo.tests.model1.Supplier;
18
6
19
import org.eclipse.emf.common.notify.Notification;
7
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.notify.NotificationChain;
8
import org.eclipse.emf.common.notify.NotificationChain;
Lines 25-31 Link Here
25
import java.util.Date;
13
import java.util.Date;
26
14
27
/**
15
/**
28
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Purchase Order</b></em>'. <!-- end-user-doc -->
16
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. All rights reserved. This program and the
17
 * accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this
18
 * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Eike Stepper - initial API
19
 * and implementation $Id: PurchaseOrderImpl.java,v 1.5 2009/08/22 09:35:30 estepper Exp
20
 * $.emf.cdo.tests.legacy.model1.impl; import org.eclipse.emf.cdimport org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
21
 * import org.eclipse.emf.cdo.tests.model1.Supplier; cdsts.model1.Supplier; import
22
 * org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.noty.NotificationChain; import
23
 * org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ece.InternalEObject; import org.eclipse.emf.ecore.impl. import
24
 * java.util.Date; ENotificationImpl; import java.util.Date; /** <!-- begin-user-doc --> An implementation of the model
25
 * object '<em><b>Purchase Order</b></em>'. <!-- end-user-doc -->
29
 * <p>
26
 * <p>
30
 * The following features are implemented:
27
 * The following features are implemented:
31
 * <ul>
28
 * <ul>
Lines 115-121 Link Here
115
    Date oldDate = date;
112
    Date oldDate = date;
116
    date = newDate;
113
    date = newDate;
117
    if (eNotificationRequired())
114
    if (eNotificationRequired())
115
    {
118
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.PURCHASE_ORDER__DATE, oldDate, date));
116
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.PURCHASE_ORDER__DATE, oldDate, date));
117
    }
119
  }
118
  }
120
119
121
  /**
120
  /**
Lines 132-139 Link Here
132
      if (supplier != oldSupplier)
131
      if (supplier != oldSupplier)
133
      {
132
      {
134
        if (eNotificationRequired())
133
        if (eNotificationRequired())
134
        {
135
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model1Package.PURCHASE_ORDER__SUPPLIER,
135
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model1Package.PURCHASE_ORDER__SUPPLIER,
136
              oldSupplier, supplier));
136
              oldSupplier, supplier));
137
        }
137
      }
138
      }
138
    }
139
    }
139
    return supplier;
140
    return supplier;
Lines 163-171 Link Here
163
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
164
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
164
          Model1Package.PURCHASE_ORDER__SUPPLIER, oldSupplier, newSupplier);
165
          Model1Package.PURCHASE_ORDER__SUPPLIER, oldSupplier, newSupplier);
165
      if (msgs == null)
166
      if (msgs == null)
167
      {
166
        msgs = notification;
168
        msgs = notification;
169
      }
167
      else
170
      else
171
      {
168
        msgs.add(notification);
172
        msgs.add(notification);
173
      }
169
    }
174
    }
170
    return msgs;
175
    return msgs;
171
  }
176
  }
Lines 181-198 Link Here
181
    {
186
    {
182
      NotificationChain msgs = null;
187
      NotificationChain msgs = null;
183
      if (supplier != null)
188
      if (supplier != null)
189
      {
184
        msgs = ((InternalEObject)supplier).eInverseRemove(this, Model1Package.SUPPLIER__PURCHASE_ORDERS,
190
        msgs = ((InternalEObject)supplier).eInverseRemove(this, Model1Package.SUPPLIER__PURCHASE_ORDERS,
185
            Supplier.class, msgs);
191
            Supplier.class, msgs);
192
      }
186
      if (newSupplier != null)
193
      if (newSupplier != null)
194
      {
187
        msgs = ((InternalEObject)newSupplier).eInverseAdd(this, Model1Package.SUPPLIER__PURCHASE_ORDERS,
195
        msgs = ((InternalEObject)newSupplier).eInverseAdd(this, Model1Package.SUPPLIER__PURCHASE_ORDERS,
188
            Supplier.class, msgs);
196
            Supplier.class, msgs);
197
      }
189
      msgs = basicSetSupplier(newSupplier, msgs);
198
      msgs = basicSetSupplier(newSupplier, msgs);
190
      if (msgs != null)
199
      if (msgs != null)
200
      {
191
        msgs.dispatch();
201
        msgs.dispatch();
202
      }
192
    }
203
    }
193
    else if (eNotificationRequired())
204
    else if (eNotificationRequired())
205
    {
194
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.PURCHASE_ORDER__SUPPLIER, newSupplier,
206
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.PURCHASE_ORDER__SUPPLIER, newSupplier,
195
          newSupplier));
207
          newSupplier));
208
    }
196
  }
209
  }
197
210
198
  /**
211
  /**
Lines 207-214 Link Here
207
    {
220
    {
208
    case Model1Package.PURCHASE_ORDER__SUPPLIER:
221
    case Model1Package.PURCHASE_ORDER__SUPPLIER:
209
      if (supplier != null)
222
      if (supplier != null)
223
      {
210
        msgs = ((InternalEObject)supplier).eInverseRemove(this, Model1Package.SUPPLIER__PURCHASE_ORDERS,
224
        msgs = ((InternalEObject)supplier).eInverseRemove(this, Model1Package.SUPPLIER__PURCHASE_ORDERS,
211
            Supplier.class, msgs);
225
            Supplier.class, msgs);
226
      }
212
      return basicSetSupplier((Supplier)otherEnd, msgs);
227
      return basicSetSupplier((Supplier)otherEnd, msgs);
213
    }
228
    }
214
    return super.eInverseAdd(otherEnd, featureID, msgs);
229
    return super.eInverseAdd(otherEnd, featureID, msgs);
Lines 244-250 Link Here
244
      return getDate();
259
      return getDate();
245
    case Model1Package.PURCHASE_ORDER__SUPPLIER:
260
    case Model1Package.PURCHASE_ORDER__SUPPLIER:
246
      if (resolve)
261
      if (resolve)
262
      {
247
        return getSupplier();
263
        return getSupplier();
264
      }
248
      return basicGetSupplier();
265
      return basicGetSupplier();
249
    }
266
    }
250
    return super.eGet(featureID, resolve, coreType);
267
    return super.eGet(featureID, resolve, coreType);
Lines 317-323 Link Here
317
  public String toString()
334
  public String toString()
318
  {
335
  {
319
    if (eIsProxy())
336
    if (eIsProxy())
337
    {
320
      return super.toString();
338
      return super.toString();
339
    }
321
340
322
    StringBuffer result = new StringBuffer(super.toString());
341
    StringBuffer result = new StringBuffer(super.toString());
323
    result.append(" (date: ");
342
    result.append(" (date: ");
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Address.java (-119 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Address.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.ecore.EObject;
16
17
/**
18
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Address</b></em>'. <!-- end-user-doc -->
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Address#getName <em>Name</em>}</li>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Address#getStreet <em>Street</em>}</li>
24
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Address#getCity <em>City</em>}</li>
25
 * </ul>
26
 * </p>
27
 * 
28
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getAddress()
29
 * @model
30
 * @generated
31
 */
32
public interface Address extends EObject
33
{
34
  /**
35
   * <!-- begin-user-doc --> <!-- end-user-doc -->
36
   * 
37
   * @generated
38
   */
39
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
40
41
  /**
42
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
43
   * <p>
44
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * 
48
   * @return the value of the '<em>Name</em>' attribute.
49
   * @see #setName(String)
50
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getAddress_Name()
51
   * @model
52
   * @generated
53
   */
54
  String getName();
55
56
  /**
57
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.Address#getName <em>Name</em>}' attribute.
58
   * <!-- begin-user-doc --> <!-- end-user-doc -->
59
   * 
60
   * @param value
61
   *          the new value of the '<em>Name</em>' attribute.
62
   * @see #getName()
63
   * @generated
64
   */
65
  void setName(String value);
66
67
  /**
68
   * Returns the value of the '<em><b>Street</b></em>' attribute. <!-- begin-user-doc -->
69
   * <p>
70
   * If the meaning of the '<em>Street</em>' attribute isn't clear, there really should be more of a description here...
71
   * </p>
72
   * <!-- end-user-doc -->
73
   * 
74
   * @return the value of the '<em>Street</em>' attribute.
75
   * @see #setStreet(String)
76
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getAddress_Street()
77
   * @model
78
   * @generated
79
   */
80
  String getStreet();
81
82
  /**
83
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.Address#getStreet <em>Street</em>}'
84
   * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
85
   * 
86
   * @param value
87
   *          the new value of the '<em>Street</em>' attribute.
88
   * @see #getStreet()
89
   * @generated
90
   */
91
  void setStreet(String value);
92
93
  /**
94
   * Returns the value of the '<em><b>City</b></em>' attribute. <!-- begin-user-doc -->
95
   * <p>
96
   * If the meaning of the '<em>City</em>' attribute isn't clear, there really should be more of a description here...
97
   * </p>
98
   * <!-- end-user-doc -->
99
   * 
100
   * @return the value of the '<em>City</em>' attribute.
101
   * @see #setCity(String)
102
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getAddress_City()
103
   * @model
104
   * @generated
105
   */
106
  String getCity();
107
108
  /**
109
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.Address#getCity <em>City</em>}' attribute.
110
   * <!-- begin-user-doc --> <!-- end-user-doc -->
111
   * 
112
   * @param value
113
   *          the new value of the '<em>City</em>' attribute.
114
   * @see #getCity()
115
   * @generated
116
   */
117
  void setCity(String value);
118
119
} // Address
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Customer.java (-57 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Customer.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.common.util.EList;
16
17
/**
18
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Customer</b></em>'. <!-- end-user-doc -->
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Customer#getSalesOrders <em>Sales Orders</em>}</li>
23
 * </ul>
24
 * </p>
25
 * 
26
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCustomer()
27
 * @model
28
 * @generated
29
 */
30
public interface Customer extends Address
31
{
32
  /**
33
   * <!-- begin-user-doc --> <!-- end-user-doc -->
34
   * 
35
   * @generated
36
   */
37
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
38
39
  /**
40
   * Returns the value of the '<em><b>Sales Orders</b></em>' reference list. The list contents are of type
41
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder}. It is bidirectional and its opposite is '
42
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder#getCustomer <em>Customer</em>}'. <!-- begin-user-doc -->
43
   * <p>
44
   * If the meaning of the '<em>Sales Orders</em>' reference list isn't clear, there really should be more of a
45
   * description here...
46
   * </p>
47
   * <!-- end-user-doc -->
48
   * 
49
   * @return the value of the '<em>Sales Orders</em>' reference list.
50
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCustomer_SalesOrders()
51
   * @see org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder#getCustomer
52
   * @model opposite="customer"
53
   * @generated
54
   */
55
  EList<SalesOrder> getSalesOrders();
56
57
} // Customer
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/PurchaseOrder.java (-96 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: PurchaseOrder.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import java.util.Date;
16
17
/**
18
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Purchase Order</b></em>'. <!-- end-user-doc -->
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder#getDate <em>Date</em>}</li>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder#getSupplier <em>Supplier</em>}</li>
24
 * </ul>
25
 * </p>
26
 * 
27
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getPurchaseOrder()
28
 * @model
29
 * @generated
30
 */
31
public interface PurchaseOrder extends Order
32
{
33
  /**
34
   * <!-- begin-user-doc --> <!-- end-user-doc -->
35
   * 
36
   * @generated
37
   */
38
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
39
40
  /**
41
   * Returns the value of the '<em><b>Date</b></em>' attribute. <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Date</em>' attribute isn't clear, there really should be more of a description here...
44
   * </p>
45
   * <!-- end-user-doc -->
46
   * 
47
   * @return the value of the '<em>Date</em>' attribute.
48
   * @see #setDate(Date)
49
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getPurchaseOrder_Date()
50
   * @model
51
   * @generated
52
   */
53
  Date getDate();
54
55
  /**
56
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder#getDate <em>Date</em>}'
57
   * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
58
   * 
59
   * @param value
60
   *          the new value of the '<em>Date</em>' attribute.
61
   * @see #getDate()
62
   * @generated
63
   */
64
  void setDate(Date value);
65
66
  /**
67
   * Returns the value of the '<em><b>Supplier</b></em>' reference. It is bidirectional and its opposite is '
68
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Supplier#getPurchaseOrders <em>Purchase Orders</em>}'. <!--
69
   * begin-user-doc -->
70
   * <p>
71
   * If the meaning of the '<em>Supplier</em>' reference isn't clear, there really should be more of a description
72
   * here...
73
   * </p>
74
   * <!-- end-user-doc -->
75
   * 
76
   * @return the value of the '<em>Supplier</em>' reference.
77
   * @see #setSupplier(Supplier)
78
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getPurchaseOrder_Supplier()
79
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Supplier#getPurchaseOrders
80
   * @model opposite="purchaseOrders" required="true"
81
   * @generated
82
   */
83
  Supplier getSupplier();
84
85
  /**
86
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder#getSupplier <em>Supplier</em>}'
87
   * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
88
   * 
89
   * @param value
90
   *          the new value of the '<em>Supplier</em>' reference.
91
   * @see #getSupplier()
92
   * @generated
93
   */
94
  void setSupplier(Supplier value);
95
96
} // PurchaseOrder
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Company.java (-123 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Company.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.common.util.EList;
16
17
/**
18
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Company</b></em>'. <!-- end-user-doc -->
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Company#getCategories <em>Categories</em>}</li>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Company#getSuppliers <em>Suppliers</em>}</li>
24
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Company#getCustomers <em>Customers</em>}</li>
25
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Company#getPurchaseOrders <em>Purchase Orders</em>}</li>
26
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Company#getSalesOrders <em>Sales Orders</em>}</li>
27
 * </ul>
28
 * </p>
29
 * 
30
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCompany()
31
 * @model
32
 * @generated
33
 */
34
public interface Company extends Address
35
{
36
  /**
37
   * <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * 
39
   * @generated
40
   */
41
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
42
43
  /**
44
   * Returns the value of the '<em><b>Categories</b></em>' containment reference list. The list contents are of type
45
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Category}. <!-- begin-user-doc -->
46
   * <p>
47
   * If the meaning of the '<em>Categories</em>' containment reference list isn't clear, there really should be more of
48
   * a description here...
49
   * </p>
50
   * <!-- end-user-doc -->
51
   * 
52
   * @return the value of the '<em>Categories</em>' containment reference list.
53
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCompany_Categories()
54
   * @model containment="true"
55
   * @generated
56
   */
57
  EList<Category> getCategories();
58
59
  /**
60
   * Returns the value of the '<em><b>Suppliers</b></em>' containment reference list. The list contents are of type
61
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Supplier}. <!-- begin-user-doc -->
62
   * <p>
63
   * If the meaning of the '<em>Suppliers</em>' containment reference list isn't clear, there really should be more of a
64
   * description here...
65
   * </p>
66
   * <!-- end-user-doc -->
67
   * 
68
   * @return the value of the '<em>Suppliers</em>' containment reference list.
69
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCompany_Suppliers()
70
   * @model containment="true"
71
   * @generated
72
   */
73
  EList<Supplier> getSuppliers();
74
75
  /**
76
   * Returns the value of the '<em><b>Customers</b></em>' containment reference list. The list contents are of type
77
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Customer}. <!-- begin-user-doc -->
78
   * <p>
79
   * If the meaning of the '<em>Customers</em>' containment reference list isn't clear, there really should be more of a
80
   * description here...
81
   * </p>
82
   * <!-- end-user-doc -->
83
   * 
84
   * @return the value of the '<em>Customers</em>' containment reference list.
85
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCompany_Customers()
86
   * @model containment="true"
87
   * @generated
88
   */
89
  EList<Customer> getCustomers();
90
91
  /**
92
   * Returns the value of the '<em><b>Purchase Orders</b></em>' containment reference list. The list contents are of
93
   * type {@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder}. <!-- begin-user-doc -->
94
   * <p>
95
   * If the meaning of the '<em>Purchase Orders</em>' containment reference list isn't clear, there really should be
96
   * more of a description here...
97
   * </p>
98
   * <!-- end-user-doc -->
99
   * 
100
   * @return the value of the '<em>Purchase Orders</em>' containment reference list.
101
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCompany_PurchaseOrders()
102
   * @model containment="true"
103
   * @generated
104
   */
105
  EList<PurchaseOrder> getPurchaseOrders();
106
107
  /**
108
   * Returns the value of the '<em><b>Sales Orders</b></em>' containment reference list. The list contents are of type
109
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder}. <!-- begin-user-doc -->
110
   * <p>
111
   * If the meaning of the '<em>Sales Orders</em>' containment reference list isn't clear, there really should be more
112
   * of a description here...
113
   * </p>
114
   * <!-- end-user-doc -->
115
   * 
116
   * @return the value of the '<em>Sales Orders</em>' containment reference list.
117
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCompany_SalesOrders()
118
   * @model containment="true"
119
   * @generated
120
   */
121
  EList<SalesOrder> getSalesOrders();
122
123
} // Company
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/OrderDetail.java (-127 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: OrderDetail.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.ecore.EObject;
16
17
/**
18
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Order Detail</b></em>'. <!-- end-user-doc -->
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getOrder <em>Order</em>}</li>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getProduct <em>Product</em>}</li>
24
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getPrice <em>Price</em>}</li>
25
 * </ul>
26
 * </p>
27
 * 
28
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getOrderDetail()
29
 * @model
30
 * @generated
31
 */
32
public interface OrderDetail extends EObject
33
{
34
  /**
35
   * <!-- begin-user-doc --> <!-- end-user-doc -->
36
   * 
37
   * @generated
38
   */
39
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
40
41
  /**
42
   * Returns the value of the '<em><b>Order</b></em>' container reference. It is bidirectional and its opposite is '
43
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Order#getOrderDetails <em>Order Details</em>}'. <!-- begin-user-doc
44
   * -->
45
   * <p>
46
   * If the meaning of the '<em>Order</em>' container reference isn't clear, there really should be more of a
47
   * description here...
48
   * </p>
49
   * <!-- end-user-doc -->
50
   * 
51
   * @return the value of the '<em>Order</em>' container reference.
52
   * @see #setOrder(Order)
53
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getOrderDetail_Order()
54
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Order#getOrderDetails
55
   * @model opposite="orderDetails" required="true" transient="false"
56
   * @generated
57
   */
58
  Order getOrder();
59
60
  /**
61
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getOrder <em>Order</em>}'
62
   * container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
63
   * 
64
   * @param value
65
   *          the new value of the '<em>Order</em>' container reference.
66
   * @see #getOrder()
67
   * @generated
68
   */
69
  void setOrder(Order value);
70
71
  /**
72
   * Returns the value of the '<em><b>Product</b></em>' reference. It is bidirectional and its opposite is '
73
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Product1#getOrderDetails <em>Order Details</em>}'. <!--
74
   * begin-user-doc -->
75
   * <p>
76
   * If the meaning of the '<em>Product</em>' reference isn't clear, there really should be more of a description
77
   * here...
78
   * </p>
79
   * <!-- end-user-doc -->
80
   * 
81
   * @return the value of the '<em>Product</em>' reference.
82
   * @see #setProduct(Product1)
83
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getOrderDetail_Product()
84
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Product1#getOrderDetails
85
   * @model opposite="orderDetails"
86
   * @generated
87
   */
88
  Product1 getProduct();
89
90
  /**
91
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getProduct <em>Product</em>}'
92
   * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
93
   * 
94
   * @param value
95
   *          the new value of the '<em>Product</em>' reference.
96
   * @see #getProduct()
97
   * @generated
98
   */
99
  void setProduct(Product1 value);
100
101
  /**
102
   * Returns the value of the '<em><b>Price</b></em>' attribute. <!-- begin-user-doc -->
103
   * <p>
104
   * If the meaning of the '<em>Price</em>' attribute isn't clear, there really should be more of a description here...
105
   * </p>
106
   * <!-- end-user-doc -->
107
   * 
108
   * @return the value of the '<em>Price</em>' attribute.
109
   * @see #setPrice(float)
110
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getOrderDetail_Price()
111
   * @model
112
   * @generated
113
   */
114
  float getPrice();
115
116
  /**
117
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getPrice <em>Price</em>}'
118
   * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
119
   * 
120
   * @param value
121
   *          the new value of the '<em>Price</em>' attribute.
122
   * @see #getPrice()
123
   * @generated
124
   */
125
  void setPrice(float value);
126
127
} // OrderDetail
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Supplier.java (-87 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Supplier.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.common.util.EList;
16
17
/**
18
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Supplier</b></em>'. <!-- end-user-doc -->
19
 * <p>
20
 * The following features are supported:
21
 * <ul>
22
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Supplier#getPurchaseOrders <em>Purchase Orders</em>}</li>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Supplier#isPreferred <em>Preferred</em>}</li>
24
 * </ul>
25
 * </p>
26
 * 
27
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getSupplier()
28
 * @model
29
 * @generated
30
 */
31
public interface Supplier extends Address
32
{
33
  /**
34
   * <!-- begin-user-doc --> <!-- end-user-doc -->
35
   * 
36
   * @generated
37
   */
38
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
39
40
  /**
41
   * Returns the value of the '<em><b>Purchase Orders</b></em>' reference list. The list contents are of type
42
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder}. It is bidirectional and its opposite is '
43
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder#getSupplier <em>Supplier</em>}'. <!-- begin-user-doc
44
   * -->
45
   * <p>
46
   * If the meaning of the '<em>Purchase Orders</em>' reference list isn't clear, there really should be more of a
47
   * description here...
48
   * </p>
49
   * <!-- end-user-doc -->
50
   * 
51
   * @return the value of the '<em>Purchase Orders</em>' reference list.
52
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getSupplier_PurchaseOrders()
53
   * @see org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder#getSupplier
54
   * @model opposite="supplier"
55
   * @generated
56
   */
57
  EList<PurchaseOrder> getPurchaseOrders();
58
59
  /**
60
   * Returns the value of the '<em><b>Preferred</b></em>' attribute. The default value is <code>"true"</code>. <!--
61
   * begin-user-doc -->
62
   * <p>
63
   * If the meaning of the '<em>Preferred</em>' attribute isn't clear, there really should be more of a description
64
   * here...
65
   * </p>
66
   * <!-- end-user-doc -->
67
   * 
68
   * @return the value of the '<em>Preferred</em>' attribute.
69
   * @see #setPreferred(boolean)
70
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getSupplier_Preferred()
71
   * @model default="true"
72
   * @generated
73
   */
74
  boolean isPreferred();
75
76
  /**
77
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.Supplier#isPreferred <em>Preferred</em>}'
78
   * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
79
   * 
80
   * @param value
81
   *          the new value of the '<em>Preferred</em>' attribute.
82
   * @see #isPreferred()
83
   * @generated
84
   */
85
  void setPreferred(boolean value);
86
87
} // Supplier
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/OrderAddress.java (-64 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: OrderAddress.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
/**
16
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Order Address</b></em>'. <!-- end-user-doc -->
17
 * <p>
18
 * The following features are supported:
19
 * <ul>
20
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress#isTestAttribute <em>Test Attribute</em>}</li>
21
 * </ul>
22
 * </p>
23
 * 
24
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getOrderAddress()
25
 * @model annotation="teneo.jpa value='@AssociationOverride(name=\"orderDetails\", joinColumns=@JoinColumn(name=\"orderdetails_orderaddressid\"))'"
26
 * @generated
27
 */
28
public interface OrderAddress extends Address, Order, OrderDetail
29
{
30
  /**
31
   * <!-- begin-user-doc --> <!-- end-user-doc -->
32
   * 
33
   * @generated
34
   */
35
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
36
37
  /**
38
   * Returns the value of the '<em><b>Test Attribute</b></em>' attribute. <!-- begin-user-doc -->
39
   * <p>
40
   * If the meaning of the '<em>Test Attribute</em>' attribute isn't clear, there really should be more of a description
41
   * here...
42
   * </p>
43
   * <!-- end-user-doc -->
44
   * 
45
   * @return the value of the '<em>Test Attribute</em>' attribute.
46
   * @see #setTestAttribute(boolean)
47
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getOrderAddress_TestAttribute()
48
   * @model
49
   * @generated
50
   */
51
  boolean isTestAttribute();
52
53
  /**
54
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress#isTestAttribute
55
   * <em>Test Attribute</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
56
   * 
57
   * @param value
58
   *          the new value of the '<em>Test Attribute</em>' attribute.
59
   * @see #isTestAttribute()
60
   * @generated
61
   */
62
  void setTestAttribute(boolean value);
63
64
} // OrderAddress
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Product1.java (-143 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Product1.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.common.util.EList;
16
import org.eclipse.emf.ecore.EObject;
17
18
/**
19
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Product1</b></em>'. <!-- end-user-doc -->
20
 * <p>
21
 * The following features are supported:
22
 * <ul>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Product1#getName <em>Name</em>}</li>
24
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Product1#getOrderDetails <em>Order Details</em>}</li>
25
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Product1#getVat <em>Vat</em>}</li>
26
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Product1#getDescription <em>Description</em>}</li>
27
 * </ul>
28
 * </p>
29
 * 
30
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getProduct1()
31
 * @model
32
 * @generated
33
 */
34
public interface Product1 extends EObject
35
{
36
  /**
37
   * <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * 
39
   * @generated
40
   */
41
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
42
43
  /**
44
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
45
   * <p>
46
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
47
   * </p>
48
   * <!-- end-user-doc -->
49
   * 
50
   * @return the value of the '<em>Name</em>' attribute.
51
   * @see #setName(String)
52
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getProduct1_Name()
53
   * @model annotation="teneo.jpa value='@Id'"
54
   * @generated
55
   */
56
  String getName();
57
58
  /**
59
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.Product1#getName <em>Name</em>}' attribute.
60
   * <!-- begin-user-doc --> <!-- end-user-doc -->
61
   * 
62
   * @param value
63
   *          the new value of the '<em>Name</em>' attribute.
64
   * @see #getName()
65
   * @generated
66
   */
67
  void setName(String value);
68
69
  /**
70
   * Returns the value of the '<em><b>Order Details</b></em>' reference list. The list contents are of type
71
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail}. It is bidirectional and its opposite is '
72
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getProduct <em>Product</em>}'. <!-- begin-user-doc -->
73
   * <p>
74
   * If the meaning of the '<em>Order Details</em>' reference list isn't clear, there really should be more of a
75
   * description here...
76
   * </p>
77
   * <!-- end-user-doc -->
78
   * 
79
   * @return the value of the '<em>Order Details</em>' reference list.
80
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getProduct1_OrderDetails()
81
   * @see org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getProduct
82
   * @model opposite="product"
83
   * @generated
84
   */
85
  EList<OrderDetail> getOrderDetails();
86
87
  /**
88
   * Returns the value of the '<em><b>Vat</b></em>' attribute. The default value is <code>"vat15"</code>. The literals
89
   * are from the enumeration {@link org.eclipse.emf.cdo.tests.legacy.model1.VAT}. <!-- begin-user-doc -->
90
   * <p>
91
   * If the meaning of the '<em>Vat</em>' attribute isn't clear, there really should be more of a description here...
92
   * </p>
93
   * <!-- end-user-doc -->
94
   * 
95
   * @return the value of the '<em>Vat</em>' attribute.
96
   * @see org.eclipse.emf.cdo.tests.legacy.model1.VAT
97
   * @see #setVat(VAT)
98
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getProduct1_Vat()
99
   * @model default="vat15"
100
   * @generated
101
   */
102
  VAT getVat();
103
104
  /**
105
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.Product1#getVat <em>Vat</em>}' attribute.
106
   * <!-- begin-user-doc --> <!-- end-user-doc -->
107
   * 
108
   * @param value
109
   *          the new value of the '<em>Vat</em>' attribute.
110
   * @see org.eclipse.emf.cdo.tests.legacy.model1.VAT
111
   * @see #getVat()
112
   * @generated
113
   */
114
  void setVat(VAT value);
115
116
  /**
117
   * Returns the value of the '<em><b>Description</b></em>' attribute. <!-- begin-user-doc -->
118
   * <p>
119
   * If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description
120
   * here...
121
   * </p>
122
   * <!-- end-user-doc -->
123
   * 
124
   * @return the value of the '<em>Description</em>' attribute.
125
   * @see #setDescription(String)
126
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getProduct1_Description()
127
   * @model transient="true"
128
   * @generated
129
   */
130
  String getDescription();
131
132
  /**
133
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.Product1#getDescription <em>Description</em>}
134
   * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
135
   * 
136
   * @param value
137
   *          the new value of the '<em>Description</em>' attribute.
138
   * @see #getDescription()
139
   * @generated
140
   */
141
  void setDescription(String value);
142
143
} // Product1
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Category.java (-100 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Category.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.common.util.EList;
16
import org.eclipse.emf.ecore.EObject;
17
18
/**
19
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Category</b></em>'. <!-- end-user-doc -->
20
 * <p>
21
 * The following features are supported:
22
 * <ul>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Category#getName <em>Name</em>}</li>
24
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Category#getCategories <em>Categories</em>}</li>
25
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Category#getProducts <em>Products</em>}</li>
26
 * </ul>
27
 * </p>
28
 * 
29
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCategory()
30
 * @model
31
 * @generated
32
 */
33
public interface Category extends EObject
34
{
35
  /**
36
   * <!-- begin-user-doc --> <!-- end-user-doc -->
37
   * 
38
   * @generated
39
   */
40
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
41
42
  /**
43
   * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
44
   * <p>
45
   * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
46
   * </p>
47
   * <!-- end-user-doc -->
48
   * 
49
   * @return the value of the '<em>Name</em>' attribute.
50
   * @see #setName(String)
51
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCategory_Name()
52
   * @model
53
   * @generated
54
   */
55
  String getName();
56
57
  /**
58
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.Category#getName <em>Name</em>}' attribute.
59
   * <!-- begin-user-doc --> <!-- end-user-doc -->
60
   * 
61
   * @param value
62
   *          the new value of the '<em>Name</em>' attribute.
63
   * @see #getName()
64
   * @generated
65
   */
66
  void setName(String value);
67
68
  /**
69
   * Returns the value of the '<em><b>Categories</b></em>' containment reference list. The list contents are of type
70
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Category}. <!-- begin-user-doc -->
71
   * <p>
72
   * If the meaning of the '<em>Categories</em>' containment reference list isn't clear, there really should be more of
73
   * a description here...
74
   * </p>
75
   * <!-- end-user-doc -->
76
   * 
77
   * @return the value of the '<em>Categories</em>' containment reference list.
78
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCategory_Categories()
79
   * @model containment="true"
80
   * @generated
81
   */
82
  EList<Category> getCategories();
83
84
  /**
85
   * Returns the value of the '<em><b>Products</b></em>' containment reference list. The list contents are of type
86
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Product1}. <!-- begin-user-doc -->
87
   * <p>
88
   * If the meaning of the '<em>Products</em>' containment reference list isn't clear, there really should be more of a
89
   * description here...
90
   * </p>
91
   * <!-- end-user-doc -->
92
   * 
93
   * @return the value of the '<em>Products</em>' containment reference list.
94
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getCategory_Products()
95
   * @model containment="true"
96
   * @generated
97
   */
98
  EList<Product1> getProducts();
99
100
} // Category
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Order.java (-58 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Order.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.common.util.EList;
16
import org.eclipse.emf.ecore.EObject;
17
18
/**
19
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Order</b></em>'. <!-- end-user-doc -->
20
 * <p>
21
 * The following features are supported:
22
 * <ul>
23
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.Order#getOrderDetails <em>Order Details</em>}</li>
24
 * </ul>
25
 * </p>
26
 * 
27
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getOrder()
28
 * @model annotation="teneo.jpa value='@Entity(name=\"BaseOrder\")'"
29
 * @generated
30
 */
31
public interface Order extends EObject
32
{
33
  /**
34
   * <!-- begin-user-doc --> <!-- end-user-doc -->
35
   * 
36
   * @generated
37
   */
38
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
39
40
  /**
41
   * Returns the value of the '<em><b>Order Details</b></em>' containment reference list. The list contents are of type
42
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail}. It is bidirectional and its opposite is '
43
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getOrder <em>Order</em>}'. <!-- begin-user-doc -->
44
   * <p>
45
   * If the meaning of the '<em>Order Details</em>' containment reference list isn't clear, there really should be more
46
   * of a description here...
47
   * </p>
48
   * <!-- end-user-doc -->
49
   * 
50
   * @return the value of the '<em>Order Details</em>' containment reference list.
51
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getOrder_OrderDetails()
52
   * @see org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail#getOrder
53
   * @model opposite="order" containment="true"
54
   * @generated
55
   */
56
  EList<OrderDetail> getOrderDetails();
57
58
} // Order
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Model1Package.java (-4 / +126 lines)
Lines 8-14 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: Model1Package.java,v 1.5 2009/08/22 09:35:29 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
14
Lines 32-38 Link Here
32
 * @model kind="package"
32
 * @model kind="package"
33
 * @generated
33
 * @generated
34
 */
34
 */
35
public interface Model1Package extends EPackage
35
public interface Model1Package extends EPackage, org.eclipse.emf.cdo.tests.model1.Model1Package
36
{
36
{
37
  /**
37
  /**
38
   * <!-- begin-user-doc --> <!-- end-user-doc -->
38
   * <!-- begin-user-doc --> <!-- end-user-doc -->
Lines 300-311 Link Here
300
  int CUSTOMER__SALES_ORDERS = ADDRESS_FEATURE_COUNT + 0;
300
  int CUSTOMER__SALES_ORDERS = ADDRESS_FEATURE_COUNT + 0;
301
301
302
  /**
302
  /**
303
   * The feature id for the '<em><b>Order By Product</b></em>' map. <!-- begin-user-doc --> <!-- end-user-doc -->
304
   * 
305
   * @generated
306
   * @ordered
307
   */
308
  int CUSTOMER__ORDER_BY_PRODUCT = ADDRESS_FEATURE_COUNT + 1;
309
310
  /**
303
   * The number of structural features of the '<em>Customer</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
311
   * The number of structural features of the '<em>Customer</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
304
   * 
312
   * 
305
   * @generated
313
   * @generated
306
   * @ordered
314
   * @ordered
307
   */
315
   */
308
  int CUSTOMER_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 1;
316
  int CUSTOMER_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2;
309
317
310
  /**
318
  /**
311
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderImpl <em>Order</em>}' class.
319
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderImpl <em>Order</em>}' class.
Lines 645-650 Link Here
645
  int ORDER_ADDRESS_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 5;
653
  int ORDER_ADDRESS_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 5;
646
654
647
  /**
655
  /**
656
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.ProductToOrderImpl
657
   * <em>Product To Order</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
658
   * 
659
   * @see org.eclipse.emf.cdo.tests.legacy.model1.impl.ProductToOrderImpl
660
   * @see org.eclipse.emf.cdo.tests.legacy.model1.impl.Model1PackageImpl#getProductToOrder()
661
   * @generated
662
   */
663
  int PRODUCT_TO_ORDER = 11;
664
665
  /**
666
   * The feature id for the '<em><b>Key</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
667
   * 
668
   * @generated
669
   * @ordered
670
   */
671
  int PRODUCT_TO_ORDER__KEY = 0;
672
673
  /**
674
   * The feature id for the '<em><b>Value</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
675
   * 
676
   * @generated
677
   * @ordered
678
   */
679
  int PRODUCT_TO_ORDER__VALUE = 1;
680
681
  /**
682
   * The number of structural features of the '<em>Product To Order</em>' class. <!-- begin-user-doc --> <!--
683
   * end-user-doc -->
684
   * 
685
   * @generated
686
   * @ordered
687
   */
688
  int PRODUCT_TO_ORDER_FEATURE_COUNT = 2;
689
690
  /**
648
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.VAT <em>VAT</em>}' enum. <!--
691
   * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.VAT <em>VAT</em>}' enum. <!--
649
   * begin-user-doc --> <!-- end-user-doc -->
692
   * begin-user-doc --> <!-- end-user-doc -->
650
   * 
693
   * 
Lines 652-658 Link Here
652
   * @see org.eclipse.emf.cdo.tests.legacy.model1.impl.Model1PackageImpl#getVAT()
695
   * @see org.eclipse.emf.cdo.tests.legacy.model1.impl.Model1PackageImpl#getVAT()
653
   * @generated
696
   * @generated
654
   */
697
   */
655
  int VAT = 11;
698
  int VAT = 12;
656
699
657
  /**
700
  /**
658
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Address <em>Address</em>}'. <!--
701
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Address <em>Address</em>}'. <!--
Lines 823-828 Link Here
823
  EReference getCustomer_SalesOrders();
866
  EReference getCustomer_SalesOrders();
824
867
825
  /**
868
  /**
869
   * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.legacy.model1.Customer#getOrderByProduct
870
   * <em>Order By Product</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
871
   * 
872
   * @return the meta object for the map '<em>Order By Product</em>'.
873
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Customer#getOrderByProduct()
874
   * @see #getCustomer()
875
   * @generated
876
   */
877
  EReference getCustomer_OrderByProduct();
878
879
  /**
826
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Order <em>Order</em>}'. <!--
880
   * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Order <em>Order</em>}'. <!--
827
   * begin-user-doc --> <!-- end-user-doc -->
881
   * begin-user-doc --> <!-- end-user-doc -->
828
   * 
882
   * 
Lines 1076-1081 Link Here
1076
  EAttribute getOrderAddress_TestAttribute();
1130
  EAttribute getOrderAddress_TestAttribute();
1077
1131
1078
  /**
1132
  /**
1133
   * Returns the meta object for class '{@link java.util.Map.Entry <em>Product To Order</em>}'. <!-- begin-user-doc -->
1134
   * <!-- end-user-doc -->
1135
   * 
1136
   * @return the meta object for class '<em>Product To Order</em>'.
1137
   * @see java.util.Map.Entry
1138
   * @model keyType="org.eclipse.emf.cdo.tests.legacy.model1.Product1"
1139
   *        valueType="org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder"
1140
   * @generated
1141
   */
1142
  EClass getProductToOrder();
1143
1144
  /**
1145
   * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Key</em>}'. <!-- begin-user-doc --> <!--
1146
   * end-user-doc -->
1147
   * 
1148
   * @return the meta object for the reference '<em>Key</em>'.
1149
   * @see java.util.Map.Entry
1150
   * @see #getProductToOrder()
1151
   * @generated
1152
   */
1153
  EReference getProductToOrder_Key();
1154
1155
  /**
1156
   * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Value</em>}'. <!-- begin-user-doc -->
1157
   * <!-- end-user-doc -->
1158
   * 
1159
   * @return the meta object for the reference '<em>Value</em>'.
1160
   * @see java.util.Map.Entry
1161
   * @see #getProductToOrder()
1162
   * @generated
1163
   */
1164
  EReference getProductToOrder_Value();
1165
1166
  /**
1079
   * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.legacy.model1.VAT <em>VAT</em>}'. <!--
1167
   * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.legacy.model1.VAT <em>VAT</em>}'. <!--
1080
   * begin-user-doc --> <!-- end-user-doc -->
1168
   * begin-user-doc --> <!-- end-user-doc -->
1081
   * 
1169
   * 
Lines 1236-1241 Link Here
1236
    EReference CUSTOMER__SALES_ORDERS = eINSTANCE.getCustomer_SalesOrders();
1324
    EReference CUSTOMER__SALES_ORDERS = eINSTANCE.getCustomer_SalesOrders();
1237
1325
1238
    /**
1326
    /**
1327
     * The meta object literal for the '<em><b>Order By Product</b></em>' map feature. <!-- begin-user-doc --> <!--
1328
     * end-user-doc -->
1329
     * 
1330
     * @generated
1331
     */
1332
    EReference CUSTOMER__ORDER_BY_PRODUCT = eINSTANCE.getCustomer_OrderByProduct();
1333
1334
    /**
1239
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderImpl <em>Order</em>}'
1335
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.OrderImpl <em>Order</em>}'
1240
     * class. <!-- begin-user-doc --> <!-- end-user-doc -->
1336
     * class. <!-- begin-user-doc --> <!-- end-user-doc -->
1241
     * 
1337
     * 
Lines 1434-1439 Link Here
1434
    EAttribute ORDER_ADDRESS__TEST_ATTRIBUTE = eINSTANCE.getOrderAddress_TestAttribute();
1530
    EAttribute ORDER_ADDRESS__TEST_ATTRIBUTE = eINSTANCE.getOrderAddress_TestAttribute();
1435
1531
1436
    /**
1532
    /**
1533
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.ProductToOrderImpl
1534
     * <em>Product To Order</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
1535
     * 
1536
     * @see org.eclipse.emf.cdo.tests.legacy.model1.impl.ProductToOrderImpl
1537
     * @see org.eclipse.emf.cdo.tests.legacy.model1.impl.Model1PackageImpl#getProductToOrder()
1538
     * @generated
1539
     */
1540
    EClass PRODUCT_TO_ORDER = eINSTANCE.getProductToOrder();
1541
1542
    /**
1543
     * The meta object literal for the '<em><b>Key</b></em>' reference feature. <!-- begin-user-doc --> <!--
1544
     * end-user-doc -->
1545
     * 
1546
     * @generated
1547
     */
1548
    EReference PRODUCT_TO_ORDER__KEY = eINSTANCE.getProductToOrder_Key();
1549
1550
    /**
1551
     * The meta object literal for the '<em><b>Value</b></em>' reference feature. <!-- begin-user-doc --> <!--
1552
     * end-user-doc -->
1553
     * 
1554
     * @generated
1555
     */
1556
    EReference PRODUCT_TO_ORDER__VALUE = eINSTANCE.getProductToOrder_Value();
1557
1558
    /**
1437
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.VAT <em>VAT</em>}' enum. <!--
1559
     * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model1.VAT <em>VAT</em>}' enum. <!--
1438
     * begin-user-doc --> <!-- end-user-doc -->
1560
     * begin-user-doc --> <!-- end-user-doc -->
1439
     * 
1561
     * 
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/VAT.java (-256 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: VAT.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
import org.eclipse.emf.common.util.Enumerator;
16
17
import java.util.Arrays;
18
import java.util.Collections;
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>VAT</b></em>', and utility
23
 * methods for working with them. <!-- end-user-doc -->
24
 * 
25
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getVAT()
26
 * @model
27
 * @generated
28
 */
29
public enum VAT implements Enumerator
30
{
31
  /**
32
   * The '<em><b>Vat0</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
33
   * 
34
   * @see #VAT0_VALUE
35
   * @generated
36
   * @ordered
37
   */
38
  VAT0(0, "vat0", "vat0"),
39
40
  /**
41
   * The '<em><b>Vat7</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
42
   * 
43
   * @see #VAT7_VALUE
44
   * @generated
45
   * @ordered
46
   */
47
  VAT7(7, "vat7", "vat7"),
48
49
  /**
50
   * The '<em><b>Vat15</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
51
   * 
52
   * @see #VAT15_VALUE
53
   * @generated
54
   * @ordered
55
   */
56
  VAT15(15, "vat15", "vat15");
57
58
  /**
59
   * <!-- begin-user-doc --> <!-- end-user-doc -->
60
   * 
61
   * @generated
62
   */
63
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
64
65
  /**
66
   * The '<em><b>Vat0</b></em>' literal value. <!-- begin-user-doc -->
67
   * <p>
68
   * If the meaning of '<em><b>Vat0</b></em>' literal object isn't clear, there really should be more of a description
69
   * here...
70
   * </p>
71
   * <!-- end-user-doc -->
72
   * 
73
   * @see #VAT0
74
   * @model name="vat0"
75
   * @generated
76
   * @ordered
77
   */
78
  public static final int VAT0_VALUE = 0;
79
80
  /**
81
   * The '<em><b>Vat7</b></em>' literal value. <!-- begin-user-doc -->
82
   * <p>
83
   * If the meaning of '<em><b>Vat7</b></em>' literal object isn't clear, there really should be more of a description
84
   * here...
85
   * </p>
86
   * <!-- end-user-doc -->
87
   * 
88
   * @see #VAT7
89
   * @model name="vat7"
90
   * @generated
91
   * @ordered
92
   */
93
  public static final int VAT7_VALUE = 7;
94
95
  /**
96
   * The '<em><b>Vat15</b></em>' literal value. <!-- begin-user-doc -->
97
   * <p>
98
   * If the meaning of '<em><b>Vat15</b></em>' literal object isn't clear, there really should be more of a description
99
   * here...
100
   * </p>
101
   * <!-- end-user-doc -->
102
   * 
103
   * @see #VAT15
104
   * @model name="vat15"
105
   * @generated
106
   * @ordered
107
   */
108
  public static final int VAT15_VALUE = 15;
109
110
  /**
111
   * An array of all the '<em><b>VAT</b></em>' enumerators. <!-- begin-user-doc --> <!-- end-user-doc -->
112
   * 
113
   * @generated
114
   */
115
  private static final VAT[] VALUES_ARRAY = new VAT[] { VAT0, VAT7, VAT15, };
116
117
  /**
118
   * A public read-only list of all the '<em><b>VAT</b></em>' enumerators. <!-- begin-user-doc --> <!-- end-user-doc -->
119
   * 
120
   * @generated
121
   */
122
  public static final List<VAT> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
123
124
  /**
125
   * Returns the '<em><b>VAT</b></em>' literal with the specified literal value. <!-- begin-user-doc --> <!--
126
   * end-user-doc -->
127
   * 
128
   * @generated
129
   */
130
  public static VAT get(String literal)
131
  {
132
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
133
    {
134
      VAT result = VALUES_ARRAY[i];
135
      if (result.toString().equals(literal))
136
      {
137
        return result;
138
      }
139
    }
140
    return null;
141
  }
142
143
  /**
144
   * Returns the '<em><b>VAT</b></em>' literal with the specified name. <!-- begin-user-doc --> <!-- end-user-doc -->
145
   * 
146
   * @generated
147
   */
148
  public static VAT getByName(String name)
149
  {
150
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
151
    {
152
      VAT result = VALUES_ARRAY[i];
153
      if (result.getName().equals(name))
154
      {
155
        return result;
156
      }
157
    }
158
    return null;
159
  }
160
161
  /**
162
   * Returns the '<em><b>VAT</b></em>' literal with the specified integer value. <!-- begin-user-doc --> <!--
163
   * end-user-doc -->
164
   * 
165
   * @generated
166
   */
167
  public static VAT get(int value)
168
  {
169
    switch (value)
170
    {
171
    case VAT0_VALUE:
172
      return VAT0;
173
    case VAT7_VALUE:
174
      return VAT7;
175
    case VAT15_VALUE:
176
      return VAT15;
177
    }
178
    return null;
179
  }
180
181
  /**
182
   * <!-- begin-user-doc --> <!-- end-user-doc -->
183
   * 
184
   * @generated
185
   */
186
  private final int value;
187
188
  /**
189
   * <!-- begin-user-doc --> <!-- end-user-doc -->
190
   * 
191
   * @generated
192
   */
193
  private final String name;
194
195
  /**
196
   * <!-- begin-user-doc --> <!-- end-user-doc -->
197
   * 
198
   * @generated
199
   */
200
  private final String literal;
201
202
  /**
203
   * Only this class can construct instances. <!-- begin-user-doc --> <!-- end-user-doc -->
204
   * 
205
   * @generated
206
   */
207
  private VAT(int value, String name, String literal)
208
  {
209
    this.value = value;
210
    this.name = name;
211
    this.literal = literal;
212
  }
213
214
  /**
215
   * <!-- begin-user-doc --> <!-- end-user-doc -->
216
   * 
217
   * @generated
218
   */
219
  public int getValue()
220
  {
221
    return value;
222
  }
223
224
  /**
225
   * <!-- begin-user-doc --> <!-- end-user-doc -->
226
   * 
227
   * @generated
228
   */
229
  public String getName()
230
  {
231
    return name;
232
  }
233
234
  /**
235
   * <!-- begin-user-doc --> <!-- end-user-doc -->
236
   * 
237
   * @generated
238
   */
239
  public String getLiteral()
240
  {
241
    return literal;
242
  }
243
244
  /**
245
   * Returns the literal value of the enumerator, which is its string representation. <!-- begin-user-doc --> <!--
246
   * end-user-doc -->
247
   * 
248
   * @generated
249
   */
250
  @Override
251
  public String toString()
252
  {
253
    return literal;
254
  }
255
256
} // VAT
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/SalesOrder.java (-94 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: SalesOrder.java,v 1.2 2009/08/22 09:35:29 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
15
/**
16
 * <!-- begin-user-doc --> A representation of the model object '<em><b>Sales Order</b></em>'. <!-- end-user-doc -->
17
 * <p>
18
 * The following features are supported:
19
 * <ul>
20
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder#getId <em>Id</em>}</li>
21
 * <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder#getCustomer <em>Customer</em>}</li>
22
 * </ul>
23
 * </p>
24
 * 
25
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getSalesOrder()
26
 * @model
27
 * @generated
28
 */
29
public interface SalesOrder extends Order
30
{
31
  /**
32
   * <!-- begin-user-doc --> <!-- end-user-doc -->
33
   * 
34
   * @generated
35
   */
36
  String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
37
38
  /**
39
   * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc -->
40
   * <p>
41
   * If the meaning of the '<em>Id</em>' attribute isn't clear, there really should be more of a description here...
42
   * </p>
43
   * <!-- end-user-doc -->
44
   * 
45
   * @return the value of the '<em>Id</em>' attribute.
46
   * @see #setId(int)
47
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getSalesOrder_Id()
48
   * @model
49
   * @generated
50
   */
51
  int getId();
52
53
  /**
54
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder#getId <em>Id</em>}' attribute.
55
   * <!-- begin-user-doc --> <!-- end-user-doc -->
56
   * 
57
   * @param value
58
   *          the new value of the '<em>Id</em>' attribute.
59
   * @see #getId()
60
   * @generated
61
   */
62
  void setId(int value);
63
64
  /**
65
   * Returns the value of the '<em><b>Customer</b></em>' reference. It is bidirectional and its opposite is '
66
   * {@link org.eclipse.emf.cdo.tests.legacy.model1.Customer#getSalesOrders <em>Sales Orders</em>}'. <!-- begin-user-doc
67
   * -->
68
   * <p>
69
   * If the meaning of the '<em>Customer</em>' reference isn't clear, there really should be more of a description
70
   * here...
71
   * </p>
72
   * <!-- end-user-doc -->
73
   * 
74
   * @return the value of the '<em>Customer</em>' reference.
75
   * @see #setCustomer(Customer)
76
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#getSalesOrder_Customer()
77
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Customer#getSalesOrders
78
   * @model opposite="salesOrders" required="true"
79
   * @generated
80
   */
81
  Customer getCustomer();
82
83
  /**
84
   * Sets the value of the '{@link org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder#getCustomer <em>Customer</em>}'
85
   * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
86
   * 
87
   * @param value
88
   *          the new value of the '<em>Customer</em>' reference.
89
   * @see #getCustomer()
90
   * @generated
91
   */
92
  void setCustomer(Customer value);
93
94
} // SalesOrder
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/Model1Factory.java (-2 / +14 lines)
Lines 8-17 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
9
 *    Eike Stepper - initial API and implementation
10
 *
10
 *
11
 * $Id: Model1Factory.java,v 1.5 2009/08/22 09:35:29 estepper Exp $
11
 * $Id$
12
 */
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1;
13
package org.eclipse.emf.cdo.tests.legacy.model1;
14
14
15
import org.eclipse.emf.cdo.tests.model1.Address;
16
import org.eclipse.emf.cdo.tests.model1.Category;
17
import org.eclipse.emf.cdo.tests.model1.Company;
18
import org.eclipse.emf.cdo.tests.model1.Customer;
19
import org.eclipse.emf.cdo.tests.model1.Order;
20
import org.eclipse.emf.cdo.tests.model1.OrderAddress;
21
import org.eclipse.emf.cdo.tests.model1.OrderDetail;
22
import org.eclipse.emf.cdo.tests.model1.Product1;
23
import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
24
import org.eclipse.emf.cdo.tests.model1.SalesOrder;
25
import org.eclipse.emf.cdo.tests.model1.Supplier;
26
15
import org.eclipse.emf.ecore.EFactory;
27
import org.eclipse.emf.ecore.EFactory;
16
28
17
/**
29
/**
Lines 21-27 Link Here
21
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package
33
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package
22
 * @generated
34
 * @generated
23
 */
35
 */
24
public interface Model1Factory extends EFactory
36
public interface Model1Factory extends EFactory, org.eclipse.emf.cdo.tests.model1.Model1Factory
25
{
37
{
26
  /**
38
  /**
27
   * <!-- begin-user-doc --> <!-- end-user-doc -->
39
   * <!-- begin-user-doc --> <!-- end-user-doc -->
(-)META-INF/MANIFEST.MF (-1 / +2 lines)
Lines 9-15 Link Here
9
Bundle-ClassPath: .
9
Bundle-ClassPath: .
10
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
10
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
11
 org.eclipse.emf.cdo;bundle-version="[3.0.0,4.0.0)";visibility:=reexport
11
 org.eclipse.emf.cdo;bundle-version="[3.0.0,4.0.0)";visibility:=reexport
12
Export-Package: org.eclipse.emf.cdo.tests.model1;version="3.0.0",
12
Export-Package: org.eclipse.emf.cdo.tests.legacy.model1,
13
 org.eclipse.emf.cdo.tests.model1;version="3.0.0",
13
 org.eclipse.emf.cdo.tests.model1.impl;version="3.0.0",
14
 org.eclipse.emf.cdo.tests.model1.impl;version="3.0.0",
14
 org.eclipse.emf.cdo.tests.model1.util;version="3.0.0",
15
 org.eclipse.emf.cdo.tests.model1.util;version="3.0.0",
15
 org.eclipse.emf.cdo.tests.model1.validation;version="3.0.0"
16
 org.eclipse.emf.cdo.tests.model1.validation;version="3.0.0"
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/util/Model1AdapterFactory.java (-351 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Model1AdapterFactory.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.util;
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Address;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Category;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Company;
18
import org.eclipse.emf.cdo.tests.legacy.model1.Customer;
19
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
20
import org.eclipse.emf.cdo.tests.legacy.model1.Order;
21
import org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress;
22
import org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail;
23
import org.eclipse.emf.cdo.tests.legacy.model1.Product1;
24
import org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder;
25
import org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder;
26
import org.eclipse.emf.cdo.tests.legacy.model1.Supplier;
27
28
import org.eclipse.emf.common.notify.Adapter;
29
import org.eclipse.emf.common.notify.Notifier;
30
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
31
import org.eclipse.emf.ecore.EObject;
32
33
/**
34
 * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
35
 * method for each class of the model. <!-- end-user-doc -->
36
 * 
37
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package
38
 * @generated
39
 */
40
public class Model1AdapterFactory extends AdapterFactoryImpl
41
{
42
  /**
43
   * <!-- begin-user-doc --> <!-- end-user-doc -->
44
   * 
45
   * @generated
46
   */
47
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
48
49
  /**
50
   * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
51
   * 
52
   * @generated
53
   */
54
  protected static Model1Package modelPackage;
55
56
  /**
57
   * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
58
   * 
59
   * @generated
60
   */
61
  public Model1AdapterFactory()
62
  {
63
    if (modelPackage == null)
64
    {
65
      modelPackage = Model1Package.eINSTANCE;
66
    }
67
  }
68
69
  /**
70
   * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> This implementation
71
   * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
72
   * end-user-doc -->
73
   * 
74
   * @return whether this factory is applicable for the type of the object.
75
   * @generated
76
   */
77
  @Override
78
  public boolean isFactoryForType(Object object)
79
  {
80
    if (object == modelPackage)
81
    {
82
      return true;
83
    }
84
    if (object instanceof EObject)
85
    {
86
      return ((EObject)object).eClass().getEPackage() == modelPackage;
87
    }
88
    return false;
89
  }
90
91
  /**
92
   * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- end-user-doc -->
93
   * 
94
   * @generated
95
   */
96
  protected Model1Switch<Adapter> modelSwitch = new Model1Switch<Adapter>()
97
  {
98
    @Override
99
    public Adapter caseAddress(Address object)
100
    {
101
      return createAddressAdapter();
102
    }
103
104
    @Override
105
    public Adapter caseCompany(Company object)
106
    {
107
      return createCompanyAdapter();
108
    }
109
110
    @Override
111
    public Adapter caseSupplier(Supplier object)
112
    {
113
      return createSupplierAdapter();
114
    }
115
116
    @Override
117
    public Adapter caseCustomer(Customer object)
118
    {
119
      return createCustomerAdapter();
120
    }
121
122
    @Override
123
    public Adapter caseOrder(Order object)
124
    {
125
      return createOrderAdapter();
126
    }
127
128
    @Override
129
    public Adapter caseOrderDetail(OrderDetail object)
130
    {
131
      return createOrderDetailAdapter();
132
    }
133
134
    @Override
135
    public Adapter casePurchaseOrder(PurchaseOrder object)
136
    {
137
      return createPurchaseOrderAdapter();
138
    }
139
140
    @Override
141
    public Adapter caseSalesOrder(SalesOrder object)
142
    {
143
      return createSalesOrderAdapter();
144
    }
145
146
    @Override
147
    public Adapter caseCategory(Category object)
148
    {
149
      return createCategoryAdapter();
150
    }
151
152
    @Override
153
    public Adapter caseProduct1(Product1 object)
154
    {
155
      return createProduct1Adapter();
156
    }
157
158
    @Override
159
    public Adapter caseOrderAddress(OrderAddress object)
160
    {
161
      return createOrderAddressAdapter();
162
    }
163
164
    @Override
165
    public Adapter defaultCase(EObject object)
166
    {
167
      return createEObjectAdapter();
168
    }
169
  };
170
171
  /**
172
   * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc -->
173
   * 
174
   * @param target
175
   *          the object to adapt.
176
   * @return the adapter for the <code>target</code>.
177
   * @generated
178
   */
179
  @Override
180
  public Adapter createAdapter(Notifier target)
181
  {
182
    return modelSwitch.doSwitch((EObject)target);
183
  }
184
185
  /**
186
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Address
187
   * <em>Address</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
188
   * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
189
   * 
190
   * @return the new adapter.
191
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Address
192
   * @generated
193
   */
194
  public Adapter createAddressAdapter()
195
  {
196
    return null;
197
  }
198
199
  /**
200
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Company
201
   * <em>Company</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
202
   * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
203
   * 
204
   * @return the new adapter.
205
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Company
206
   * @generated
207
   */
208
  public Adapter createCompanyAdapter()
209
  {
210
    return null;
211
  }
212
213
  /**
214
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Supplier
215
   * <em>Supplier</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
216
   * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
217
   * 
218
   * @return the new adapter.
219
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Supplier
220
   * @generated
221
   */
222
  public Adapter createSupplierAdapter()
223
  {
224
    return null;
225
  }
226
227
  /**
228
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Customer
229
   * <em>Customer</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
230
   * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
231
   * 
232
   * @return the new adapter.
233
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Customer
234
   * @generated
235
   */
236
  public Adapter createCustomerAdapter()
237
  {
238
    return null;
239
  }
240
241
  /**
242
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Order <em>Order</em>}
243
   * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
244
   * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
245
   * 
246
   * @return the new adapter.
247
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Order
248
   * @generated
249
   */
250
  public Adapter createOrderAdapter()
251
  {
252
    return null;
253
  }
254
255
  /**
256
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail
257
   * <em>Order Detail</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
258
   * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
259
   * 
260
   * @return the new adapter.
261
   * @see org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail
262
   * @generated
263
   */
264
  public Adapter createOrderDetailAdapter()
265
  {
266
    return null;
267
  }
268
269
  /**
270
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder
271
   * <em>Purchase Order</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
272
   * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
273
   * 
274
   * @return the new adapter.
275
   * @see org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder
276
   * @generated
277
   */
278
  public Adapter createPurchaseOrderAdapter()
279
  {
280
    return null;
281
  }
282
283
  /**
284
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder
285
   * <em>Sales Order</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
286
   * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
287
   * 
288
   * @return the new adapter.
289
   * @see org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder
290
   * @generated
291
   */
292
  public Adapter createSalesOrderAdapter()
293
  {
294
    return null;
295
  }
296
297
  /**
298
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Category
299
   * <em>Category</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
300
   * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
301
   * 
302
   * @return the new adapter.
303
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Category
304
   * @generated
305
   */
306
  public Adapter createCategoryAdapter()
307
  {
308
    return null;
309
  }
310
311
  /**
312
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Product1
313
   * <em>Product1</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
314
   * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
315
   * 
316
   * @return the new adapter.
317
   * @see org.eclipse.emf.cdo.tests.legacy.model1.Product1
318
   * @generated
319
   */
320
  public Adapter createProduct1Adapter()
321
  {
322
    return null;
323
  }
324
325
  /**
326
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress
327
   * <em>Order Address</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
328
   * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
329
   * 
330
   * @return the new adapter.
331
   * @see org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress
332
   * @generated
333
   */
334
  public Adapter createOrderAddressAdapter()
335
  {
336
    return null;
337
  }
338
339
  /**
340
   * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!--
341
   * end-user-doc -->
342
   * 
343
   * @return the new adapter.
344
   * @generated
345
   */
346
  public Adapter createEObjectAdapter()
347
  {
348
    return null;
349
  }
350
351
} // Model1AdapterFactory
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/util/Model1Switch.java (-404 lines)
Removed Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id: Model1Switch.java,v 1.5 2009/08/22 09:35:30 estepper Exp $
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.util;
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Address;
16
import org.eclipse.emf.cdo.tests.legacy.model1.Category;
17
import org.eclipse.emf.cdo.tests.legacy.model1.Company;
18
import org.eclipse.emf.cdo.tests.legacy.model1.Customer;
19
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
20
import org.eclipse.emf.cdo.tests.legacy.model1.Order;
21
import org.eclipse.emf.cdo.tests.legacy.model1.OrderAddress;
22
import org.eclipse.emf.cdo.tests.legacy.model1.OrderDetail;
23
import org.eclipse.emf.cdo.tests.legacy.model1.Product1;
24
import org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder;
25
import org.eclipse.emf.cdo.tests.legacy.model1.SalesOrder;
26
import org.eclipse.emf.cdo.tests.legacy.model1.Supplier;
27
28
import org.eclipse.emf.ecore.EClass;
29
import org.eclipse.emf.ecore.EObject;
30
31
import java.util.List;
32
33
/**
34
 * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call
35
 * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
36
 * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
37
 * returned, which is the result of the switch. <!-- end-user-doc -->
38
 * 
39
 * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package
40
 * @generated
41
 */
42
public class Model1Switch<T>
43
{
44
  /**
45
   * <!-- begin-user-doc --> <!-- end-user-doc -->
46
   * 
47
   * @generated
48
   */
49
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
50
51
  /**
52
   * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
53
   * 
54
   * @generated
55
   */
56
  protected static Model1Package modelPackage;
57
58
  /**
59
   * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
60
   * 
61
   * @generated
62
   */
63
  public Model1Switch()
64
  {
65
    if (modelPackage == null)
66
    {
67
      modelPackage = Model1Package.eINSTANCE;
68
    }
69
  }
70
71
  /**
72
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
73
   * <!-- begin-user-doc --> <!-- end-user-doc -->
74
   * 
75
   * @return the first non-null result returned by a <code>caseXXX</code> call.
76
   * @generated
77
   */
78
  public T doSwitch(EObject theEObject)
79
  {
80
    return doSwitch(theEObject.eClass(), theEObject);
81
  }
82
83
  /**
84
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
85
   * <!-- begin-user-doc --> <!-- end-user-doc -->
86
   * 
87
   * @return the first non-null result returned by a <code>caseXXX</code> call.
88
   * @generated
89
   */
90
  protected T doSwitch(EClass theEClass, EObject theEObject)
91
  {
92
    if (theEClass.eContainer() == modelPackage)
93
    {
94
      return doSwitch(theEClass.getClassifierID(), theEObject);
95
    }
96
    else
97
    {
98
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
99
      return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
100
    }
101
  }
102
103
  /**
104
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
105
   * <!-- begin-user-doc --> <!-- end-user-doc -->
106
   * 
107
   * @return the first non-null result returned by a <code>caseXXX</code> call.
108
   * @generated
109
   */
110
  protected T doSwitch(int classifierID, EObject theEObject)
111
  {
112
    switch (classifierID)
113
    {
114
    case Model1Package.ADDRESS:
115
    {
116
      Address address = (Address)theEObject;
117
      T result = caseAddress(address);
118
      if (result == null)
119
        result = defaultCase(theEObject);
120
      return result;
121
    }
122
    case Model1Package.COMPANY:
123
    {
124
      Company company = (Company)theEObject;
125
      T result = caseCompany(company);
126
      if (result == null)
127
        result = caseAddress(company);
128
      if (result == null)
129
        result = defaultCase(theEObject);
130
      return result;
131
    }
132
    case Model1Package.SUPPLIER:
133
    {
134
      Supplier supplier = (Supplier)theEObject;
135
      T result = caseSupplier(supplier);
136
      if (result == null)
137
        result = caseAddress(supplier);
138
      if (result == null)
139
        result = defaultCase(theEObject);
140
      return result;
141
    }
142
    case Model1Package.CUSTOMER:
143
    {
144
      Customer customer = (Customer)theEObject;
145
      T result = caseCustomer(customer);
146
      if (result == null)
147
        result = caseAddress(customer);
148
      if (result == null)
149
        result = defaultCase(theEObject);
150
      return result;
151
    }
152
    case Model1Package.ORDER:
153
    {
154
      Order order = (Order)theEObject;
155
      T result = caseOrder(order);
156
      if (result == null)
157
        result = defaultCase(theEObject);
158
      return result;
159
    }
160
    case Model1Package.ORDER_DETAIL:
161
    {
162
      OrderDetail orderDetail = (OrderDetail)theEObject;
163
      T result = caseOrderDetail(orderDetail);
164
      if (result == null)
165
        result = defaultCase(theEObject);
166
      return result;
167
    }
168
    case Model1Package.PURCHASE_ORDER:
169
    {
170
      PurchaseOrder purchaseOrder = (PurchaseOrder)theEObject;
171
      T result = casePurchaseOrder(purchaseOrder);
172
      if (result == null)
173
        result = caseOrder(purchaseOrder);
174
      if (result == null)
175
        result = defaultCase(theEObject);
176
      return result;
177
    }
178
    case Model1Package.SALES_ORDER:
179
    {
180
      SalesOrder salesOrder = (SalesOrder)theEObject;
181
      T result = caseSalesOrder(salesOrder);
182
      if (result == null)
183
        result = caseOrder(salesOrder);
184
      if (result == null)
185
        result = defaultCase(theEObject);
186
      return result;
187
    }
188
    case Model1Package.CATEGORY:
189
    {
190
      Category category = (Category)theEObject;
191
      T result = caseCategory(category);
192
      if (result == null)
193
        result = defaultCase(theEObject);
194
      return result;
195
    }
196
    case Model1Package.PRODUCT1:
197
    {
198
      Product1 product1 = (Product1)theEObject;
199
      T result = caseProduct1(product1);
200
      if (result == null)
201
        result = defaultCase(theEObject);
202
      return result;
203
    }
204
    case Model1Package.ORDER_ADDRESS:
205
    {
206
      OrderAddress orderAddress = (OrderAddress)theEObject;
207
      T result = caseOrderAddress(orderAddress);
208
      if (result == null)
209
        result = caseAddress(orderAddress);
210
      if (result == null)
211
        result = caseOrder(orderAddress);
212
      if (result == null)
213
        result = caseOrderDetail(orderAddress);
214
      if (result == null)
215
        result = defaultCase(theEObject);
216
      return result;
217
    }
218
    default:
219
      return defaultCase(theEObject);
220
    }
221
  }
222
223
  /**
224
   * Returns the result of interpreting the object as an instance of '<em>Address</em>'. <!-- begin-user-doc --> This
225
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
226
   * 
227
   * @param object
228
   *          the target of the switch.
229
   * @return the result of interpreting the object as an instance of '<em>Address</em>'.
230
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
231
   * @generated
232
   */
233
  public T caseAddress(Address object)
234
  {
235
    return null;
236
  }
237
238
  /**
239
   * Returns the result of interpreting the object as an instance of '<em>Company</em>'. <!-- begin-user-doc --> This
240
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
241
   * 
242
   * @param object
243
   *          the target of the switch.
244
   * @return the result of interpreting the object as an instance of '<em>Company</em>'.
245
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
246
   * @generated
247
   */
248
  public T caseCompany(Company object)
249
  {
250
    return null;
251
  }
252
253
  /**
254
   * Returns the result of interpreting the object as an instance of '<em>Supplier</em>'. <!-- begin-user-doc --> This
255
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
256
   * 
257
   * @param object
258
   *          the target of the switch.
259
   * @return the result of interpreting the object as an instance of '<em>Supplier</em>'.
260
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
261
   * @generated
262
   */
263
  public T caseSupplier(Supplier object)
264
  {
265
    return null;
266
  }
267
268
  /**
269
   * Returns the result of interpreting the object as an instance of '<em>Customer</em>'. <!-- begin-user-doc --> This
270
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
271
   * 
272
   * @param object
273
   *          the target of the switch.
274
   * @return the result of interpreting the object as an instance of '<em>Customer</em>'.
275
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
276
   * @generated
277
   */
278
  public T caseCustomer(Customer object)
279
  {
280
    return null;
281
  }
282
283
  /**
284
   * Returns the result of interpreting the object as an instance of '<em>Order</em>'. <!-- begin-user-doc --> This
285
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
286
   * 
287
   * @param object
288
   *          the target of the switch.
289
   * @return the result of interpreting the object as an instance of '<em>Order</em>'.
290
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
291
   * @generated
292
   */
293
  public T caseOrder(Order object)
294
  {
295
    return null;
296
  }
297
298
  /**
299
   * Returns the result of interpreting the object as an instance of '<em>Order Detail</em>'. <!-- begin-user-doc -->
300
   * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
301
   * 
302
   * @param object
303
   *          the target of the switch.
304
   * @return the result of interpreting the object as an instance of '<em>Order Detail</em>'.
305
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
306
   * @generated
307
   */
308
  public T caseOrderDetail(OrderDetail object)
309
  {
310
    return null;
311
  }
312
313
  /**
314
   * Returns the result of interpreting the object as an instance of '<em>Purchase Order</em>'. <!-- begin-user-doc -->
315
   * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
316
   * 
317
   * @param object
318
   *          the target of the switch.
319
   * @return the result of interpreting the object as an instance of '<em>Purchase Order</em>'.
320
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
321
   * @generated
322
   */
323
  public T casePurchaseOrder(PurchaseOrder object)
324
  {
325
    return null;
326
  }
327
328
  /**
329
   * Returns the result of interpreting the object as an instance of '<em>Sales Order</em>'. <!-- begin-user-doc -->
330
   * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
331
   * 
332
   * @param object
333
   *          the target of the switch.
334
   * @return the result of interpreting the object as an instance of '<em>Sales Order</em>'.
335
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
336
   * @generated
337
   */
338
  public T caseSalesOrder(SalesOrder object)
339
  {
340
    return null;
341
  }
342
343
  /**
344
   * Returns the result of interpreting the object as an instance of '<em>Category</em>'. <!-- begin-user-doc --> This
345
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
346
   * 
347
   * @param object
348
   *          the target of the switch.
349
   * @return the result of interpreting the object as an instance of '<em>Category</em>'.
350
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
351
   * @generated
352
   */
353
  public T caseCategory(Category object)
354
  {
355
    return null;
356
  }
357
358
  /**
359
   * Returns the result of interpreting the object as an instance of '<em>Product1</em>'. <!-- begin-user-doc --> This
360
   * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
361
   * 
362
   * @param object
363
   *          the target of the switch.
364
   * @return the result of interpreting the object as an instance of '<em>Product1</em>'.
365
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
366
   * @generated
367
   */
368
  public T caseProduct1(Product1 object)
369
  {
370
    return null;
371
  }
372
373
  /**
374
   * Returns the result of interpreting the object as an instance of '<em>Order Address</em>'. <!-- begin-user-doc -->
375
   * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
376
   * 
377
   * @param object
378
   *          the target of the switch.
379
   * @return the result of interpreting the object as an instance of '<em>Order Address</em>'.
380
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
381
   * @generated
382
   */
383
  public T caseOrderAddress(OrderAddress object)
384
  {
385
    return null;
386
  }
387
388
  /**
389
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This
390
   * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
391
   * anyway. <!-- end-user-doc -->
392
   * 
393
   * @param object
394
   *          the target of the switch.
395
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
396
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
397
   * @generated
398
   */
399
  public T defaultCase(EObject object)
400
  {
401
    return null;
402
  }
403
404
} // Model1Switch
(-)src/org/eclipse/emf/cdo/tests/legacy/model1/impl/ProductToOrderImpl.java (+345 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 *
11
 * $Id$
12
 */
13
package org.eclipse.emf.cdo.tests.legacy.model1.impl;
14
15
import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
16
import org.eclipse.emf.cdo.tests.model1.Product1;
17
import org.eclipse.emf.cdo.tests.model1.SalesOrder;
18
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.util.BasicEMap;
21
import org.eclipse.emf.common.util.EMap;
22
import org.eclipse.emf.ecore.EClass;
23
import org.eclipse.emf.ecore.EObject;
24
import org.eclipse.emf.ecore.InternalEObject;
25
import org.eclipse.emf.ecore.impl.ENotificationImpl;
26
import org.eclipse.emf.ecore.impl.EObjectImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * An implementation of the model object '<em><b>Product To Order</b></em>'.
31
 * <!-- end-user-doc -->
32
 * <p>
33
 * The following features are implemented:
34
 * <ul>
35
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.ProductToOrderImpl#getTypedKey <em>Key</em>}</li>
36
 *   <li>{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.ProductToOrderImpl#getTypedValue <em>Value</em>}</li>
37
 * </ul>
38
 * </p>
39
 *
40
 * @generated
41
 */
42
public class ProductToOrderImpl extends EObjectImpl implements BasicEMap.Entry<Product1, SalesOrder>
43
{
44
  /**
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  public static final String copyright = "Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n   Eike Stepper - initial API and implementation";
50
51
  /**
52
   * The cached value of the '{@link #getTypedKey() <em>Key</em>}' reference.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @see #getTypedKey()
56
   * @generated
57
   * @ordered
58
   */
59
  protected Product1 key;
60
61
  /**
62
   * The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @see #getTypedValue()
66
   * @generated
67
   * @ordered
68
   */
69
  protected SalesOrder value;
70
71
  /**
72
   * <!-- begin-user-doc -->
73
   * <!-- end-user-doc -->
74
   * @generated
75
   */
76
  protected ProductToOrderImpl()
77
  {
78
    super();
79
  }
80
81
  /**
82
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
84
   * @generated
85
   */
86
  @Override
87
  protected EClass eStaticClass()
88
  {
89
    return Model1Package.Literals.PRODUCT_TO_ORDER;
90
  }
91
92
  /**
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * @generated
96
   */
97
  public Product1 getTypedKey()
98
  {
99
    if (key != null && key.eIsProxy())
100
    {
101
      InternalEObject oldKey = (InternalEObject)key;
102
      key = (Product1)eResolveProxy(oldKey);
103
      if (key != oldKey)
104
      {
105
        if (eNotificationRequired())
106
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model1Package.PRODUCT_TO_ORDER__KEY, oldKey, key));
107
      }
108
    }
109
    return key;
110
  }
111
112
  /**
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @generated
116
   */
117
  public Product1 basicGetTypedKey()
118
  {
119
    return key;
120
  }
121
122
  /**
123
   * <!-- begin-user-doc -->
124
   * <!-- end-user-doc -->
125
   * @generated
126
   */
127
  public void setTypedKey(Product1 newKey)
128
  {
129
    Product1 oldKey = key;
130
    key = newKey;
131
    if (eNotificationRequired())
132
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.PRODUCT_TO_ORDER__KEY, oldKey, key));
133
  }
134
135
  /**
136
   * <!-- begin-user-doc -->
137
   * <!-- end-user-doc -->
138
   * @generated
139
   */
140
  public SalesOrder getTypedValue()
141
  {
142
    if (value != null && value.eIsProxy())
143
    {
144
      InternalEObject oldValue = (InternalEObject)value;
145
      value = (SalesOrder)eResolveProxy(oldValue);
146
      if (value != oldValue)
147
      {
148
        if (eNotificationRequired())
149
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model1Package.PRODUCT_TO_ORDER__VALUE, oldValue,
150
              value));
151
      }
152
    }
153
    return value;
154
  }
155
156
  /**
157
   * <!-- begin-user-doc -->
158
   * <!-- end-user-doc -->
159
   * @generated
160
   */
161
  public SalesOrder basicGetTypedValue()
162
  {
163
    return value;
164
  }
165
166
  /**
167
   * <!-- begin-user-doc -->
168
   * <!-- end-user-doc -->
169
   * @generated
170
   */
171
  public void setTypedValue(SalesOrder newValue)
172
  {
173
    SalesOrder oldValue = value;
174
    value = newValue;
175
    if (eNotificationRequired())
176
      eNotify(new ENotificationImpl(this, Notification.SET, Model1Package.PRODUCT_TO_ORDER__VALUE, oldValue, value));
177
  }
178
179
  /**
180
   * <!-- begin-user-doc -->
181
   * <!-- end-user-doc -->
182
   * @generated
183
   */
184
  @Override
185
  public Object eGet(int featureID, boolean resolve, boolean coreType)
186
  {
187
    switch (featureID)
188
    {
189
    case Model1Package.PRODUCT_TO_ORDER__KEY:
190
      if (resolve)
191
        return getTypedKey();
192
      return basicGetTypedKey();
193
    case Model1Package.PRODUCT_TO_ORDER__VALUE:
194
      if (resolve)
195
        return getTypedValue();
196
      return basicGetTypedValue();
197
    }
198
    return super.eGet(featureID, resolve, coreType);
199
  }
200
201
  /**
202
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
204
   * @generated
205
   */
206
  @Override
207
  public void eSet(int featureID, Object newValue)
208
  {
209
    switch (featureID)
210
    {
211
    case Model1Package.PRODUCT_TO_ORDER__KEY:
212
      setTypedKey((Product1)newValue);
213
      return;
214
    case Model1Package.PRODUCT_TO_ORDER__VALUE:
215
      setTypedValue((SalesOrder)newValue);
216
      return;
217
    }
218
    super.eSet(featureID, newValue);
219
  }
220
221
  /**
222
   * <!-- begin-user-doc -->
223
   * <!-- end-user-doc -->
224
   * @generated
225
   */
226
  @Override
227
  public void eUnset(int featureID)
228
  {
229
    switch (featureID)
230
    {
231
    case Model1Package.PRODUCT_TO_ORDER__KEY:
232
      setTypedKey((Product1)null);
233
      return;
234
    case Model1Package.PRODUCT_TO_ORDER__VALUE:
235
      setTypedValue((SalesOrder)null);
236
      return;
237
    }
238
    super.eUnset(featureID);
239
  }
240
241
  /**
242
   * <!-- begin-user-doc -->
243
   * <!-- end-user-doc -->
244
   * @generated
245
   */
246
  @Override
247
  public boolean eIsSet(int featureID)
248
  {
249
    switch (featureID)
250
    {
251
    case Model1Package.PRODUCT_TO_ORDER__KEY:
252
      return key != null;
253
    case Model1Package.PRODUCT_TO_ORDER__VALUE:
254
      return value != null;
255
    }
256
    return super.eIsSet(featureID);
257
  }
258
259
  /**
260
   * <!-- begin-user-doc -->
261
   * <!-- end-user-doc -->
262
   * @generated
263
   */
264
  protected int hash = -1;
265
266
  /**
267
   * <!-- begin-user-doc -->
268
   * <!-- end-user-doc -->
269
   * @generated
270
   */
271
  public int getHash()
272
  {
273
    if (hash == -1)
274
    {
275
      Object theKey = getKey();
276
      hash = (theKey == null ? 0 : theKey.hashCode());
277
    }
278
    return hash;
279
  }
280
281
  /**
282
   * <!-- begin-user-doc -->
283
   * <!-- end-user-doc -->
284
   * @generated
285
   */
286
  public void setHash(int hash)
287
  {
288
    this.hash = hash;
289
  }
290
291
  /**
292
   * <!-- begin-user-doc -->
293
   * <!-- end-user-doc -->
294
   * @generated
295
   */
296
  public Product1 getKey()
297
  {
298
    return getTypedKey();
299
  }
300
301
  /**
302
   * <!-- begin-user-doc -->
303
   * <!-- end-user-doc -->
304
   * @generated
305
   */
306
  public void setKey(Product1 key)
307
  {
308
    setTypedKey(key);
309
  }
310
311
  /**
312
   * <!-- begin-user-doc -->
313
   * <!-- end-user-doc -->
314
   * @generated
315
   */
316
  public SalesOrder getValue()
317
  {
318
    return getTypedValue();
319
  }
320
321
  /**
322
   * <!-- begin-user-doc -->
323
   * <!-- end-user-doc -->
324
   * @generated
325
   */
326
  public SalesOrder setValue(SalesOrder value)
327
  {
328
    SalesOrder oldValue = getValue();
329
    setTypedValue(value);
330
    return oldValue;
331
  }
332
333
  /**
334
   * <!-- begin-user-doc -->
335
   * <!-- end-user-doc -->
336
   * @generated
337
   */
338
  @SuppressWarnings("unchecked")
339
  public EMap<Product1, SalesOrder> getEMap()
340
  {
341
    EObject container = eContainer();
342
    return container == null ? null : (EMap<Product1, SalesOrder>)container.eGet(eContainmentFeature());
343
  }
344
345
} //ProductToOrderImpl
(-)model/model1.martin.legacy.genmodel (+69 lines)
Added 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.cdo.tests.model1/src"
5
    modelPluginID="org.eclipse.emf.cdo.tests.model1" modelName="Model1.martin" importerID="org.eclipse.emf.importer.ecore"
6
    complianceLevel="5.0" copyrightFields="false">
7
  <foreignModel>model1.ecore</foreignModel>
8
  <genPackages prefix="Model1" disposableProviderFactory="true" ecorePackage="model1.ecore#/">
9
    <genEnums typeSafeEnumCompatible="false" ecoreEnum="model1.ecore#//VAT">
10
      <genEnumLiterals ecoreEnumLiteral="model1.ecore#//VAT/vat0"/>
11
      <genEnumLiterals ecoreEnumLiteral="model1.ecore#//VAT/vat7"/>
12
      <genEnumLiterals ecoreEnumLiteral="model1.ecore#//VAT/vat15"/>
13
    </genEnums>
14
    <genClasses ecoreClass="model1.ecore#//Address">
15
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//Address/name"/>
16
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//Address/street"/>
17
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//Address/city"/>
18
    </genClasses>
19
    <genClasses ecoreClass="model1.ecore#//Company">
20
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Company/categories"/>
21
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Company/suppliers"/>
22
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Company/customers"/>
23
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Company/purchaseOrders"/>
24
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Company/salesOrders"/>
25
    </genClasses>
26
    <genClasses ecoreClass="model1.ecore#//Supplier">
27
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model1.ecore#//Supplier/purchaseOrders"/>
28
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//Supplier/preferred"/>
29
    </genClasses>
30
    <genClasses ecoreClass="model1.ecore#//Customer">
31
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model1.ecore#//Customer/salesOrders"/>
32
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Customer/orderByProduct"/>
33
    </genClasses>
34
    <genClasses ecoreClass="model1.ecore#//Order">
35
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Order/orderDetails"/>
36
    </genClasses>
37
    <genClasses ecoreClass="model1.ecore#//OrderDetail">
38
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference model1.ecore#//OrderDetail/order"/>
39
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model1.ecore#//OrderDetail/product"/>
40
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//OrderDetail/price"/>
41
    </genClasses>
42
    <genClasses ecoreClass="model1.ecore#//PurchaseOrder">
43
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//PurchaseOrder/date"/>
44
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model1.ecore#//PurchaseOrder/supplier"/>
45
    </genClasses>
46
    <genClasses ecoreClass="model1.ecore#//SalesOrder">
47
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//SalesOrder/id"/>
48
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model1.ecore#//SalesOrder/customer"/>
49
    </genClasses>
50
    <genClasses ecoreClass="model1.ecore#//Category">
51
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//Category/name"/>
52
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Category/categories"/>
53
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference model1.ecore#//Category/products"/>
54
    </genClasses>
55
    <genClasses ecoreClass="model1.ecore#//Product1">
56
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//Product1/name"/>
57
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model1.ecore#//Product1/orderDetails"/>
58
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//Product1/vat"/>
59
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//Product1/description"/>
60
    </genClasses>
61
    <genClasses ecoreClass="model1.ecore#//OrderAddress">
62
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute model1.ecore#//OrderAddress/testAttribute"/>
63
    </genClasses>
64
    <genClasses ecoreClass="model1.ecore#//ProductToOrder">
65
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model1.ecore#//ProductToOrder/key"/>
66
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model1.ecore#//ProductToOrder/value"/>
67
    </genClasses>
68
  </genPackages>
69
</genmodel:GenModel>
(-)src/org/eclipse/emf/cdo/eresource/impl/CDOResourceImpl.java (-1 / +5 lines)
Lines 11-16 Link Here
11
 */
11
 */
12
package org.eclipse.emf.cdo.eresource.impl;
12
package org.eclipse.emf.cdo.eresource.impl;
13
13
14
import org.eclipse.emf.cdo.CDOObject;
14
import org.eclipse.emf.cdo.CDOState;
15
import org.eclipse.emf.cdo.CDOState;
15
import org.eclipse.emf.cdo.common.id.CDOID;
16
import org.eclipse.emf.cdo.common.id.CDOID;
16
import org.eclipse.emf.cdo.common.id.CDOIDUtil;
17
import org.eclipse.emf.cdo.common.id.CDOIDUtil;
Lines 21-26 Link Here
21
import org.eclipse.emf.cdo.view.CDOView;
22
import org.eclipse.emf.cdo.view.CDOView;
22
import org.eclipse.emf.cdo.view.CDOViewProviderRegistry;
23
import org.eclipse.emf.cdo.view.CDOViewProviderRegistry;
23
24
25
import org.eclipse.emf.internal.cdo.CDOObjectWrapper;
24
import org.eclipse.emf.internal.cdo.CDOStateMachine;
26
import org.eclipse.emf.internal.cdo.CDOStateMachine;
25
import org.eclipse.emf.internal.cdo.util.FSMUtil;
27
import org.eclipse.emf.internal.cdo.util.FSMUtil;
26
28
Lines 529-535 Link Here
529
531
530
      if (cdoID.isObject())
532
      if (cdoID.isObject())
531
      {
533
      {
532
        return cdoView().getObject(cdoID, true);
534
        // return cdoView().getObject(cdoID, true);
535
        CDOObject object = cdoView().getObject(cdoID, true);
536
        return object instanceof CDOObjectWrapper ? ((CDOObjectWrapper)object).cdoInternalInstance() : object;
533
      }
537
      }
534
    }
538
    }
535
    catch (Exception ex)
539
    catch (Exception ex)
(-)src/org/eclipse/emf/internal/cdo/CDOObjectWrapper.java (-1 / +3 lines)
Lines 93-99 Link Here
93
  {
93
  {
94
    if (id == null || id.isNull())
94
    if (id == null || id.isNull())
95
    {
95
    {
96
      throw new IllegalArgumentException("id is null"); //$NON-NLS-1$
96
      // TODO Martin: Exception should not be throw because CDOStateMachine sets ID to null in detach Method. Should
97
      // Discuss this with Eike
98
      // throw new IllegalArgumentException("id is null"); //$NON-NLS-1$
97
    }
99
    }
98
100
99
    if (TRACER.isEnabled())
101
    if (TRACER.isEnabled())
(-)src/org/eclipse/emf/cdo/tests/MangoTest.java (-5 / +5 lines)
Lines 13-20 Link Here
13
import org.eclipse.emf.cdo.CDOState;
13
import org.eclipse.emf.cdo.CDOState;
14
import org.eclipse.emf.cdo.eresource.CDOResource;
14
import org.eclipse.emf.cdo.eresource.CDOResource;
15
import org.eclipse.emf.cdo.session.CDOSession;
15
import org.eclipse.emf.cdo.session.CDOSession;
16
import org.eclipse.emf.cdo.tests.mango.Value;
16
import org.eclipse.emf.cdo.tests.mango.MangoValue;
17
import org.eclipse.emf.cdo.tests.mango.ValueList;
17
import org.eclipse.emf.cdo.tests.mango.MangoValueList;
18
import org.eclipse.emf.cdo.transaction.CDOTransaction;
18
import org.eclipse.emf.cdo.transaction.CDOTransaction;
19
import org.eclipse.emf.cdo.util.CDOUtil;
19
import org.eclipse.emf.cdo.util.CDOUtil;
20
20
Lines 29-43 Link Here
29
    CDOTransaction transaction = session.openTransaction();
29
    CDOTransaction transaction = session.openTransaction();
30
    CDOResource resource = transaction.createResource("/test1");
30
    CDOResource resource = transaction.createResource("/test1");
31
31
32
    Value v1 = getMangoFactory().createValue();
32
    MangoValue v1 = getMangoFactory().createMangoValue();
33
    v1.setName("v1");
33
    v1.setName("v1");
34
    resource.getContents().add(v1);
34
    resource.getContents().add(v1);
35
35
36
    Value v2 = getMangoFactory().createValue();
36
    MangoValue v2 = getMangoFactory().createMangoValue();
37
    v2.setName("v2");
37
    v2.setName("v2");
38
    resource.getContents().add(v2);
38
    resource.getContents().add(v2);
39
39
40
    ValueList list = getMangoFactory().createValueList();
40
    MangoValueList list = getMangoFactory().createMangoValueList();
41
    list.setName("List");
41
    list.setName("List");
42
    list.getValues().add(v1);
42
    list.getValues().add(v1);
43
    list.getValues().add(v2);
43
    list.getValues().add(v2);
(-)src/org/eclipse/emf/cdo/tests/InvalidationTest.java (-1 / +4 lines)
Lines 687-693 Link Here
687
    msg("Attaching viewB");
687
    msg("Attaching viewB");
688
    final CDOView viewB = sessionB.openTransaction();
688
    final CDOView viewB = sessionB.openTransaction();
689
689
690
    final Category category1B = (Category)viewB.getResourceSet().getEObject(uriCategory1, true);
690
    // final Category category1B = (Category)viewB.getResourceSet().getEObject(uriCategory1, true);
691
692
    EObject eObject = viewB.getResourceSet().getEObject(uriCategory1, true);
693
    final Category category1B = (Category)eObject;
691
694
692
    // ************************************************************* //
695
    // ************************************************************* //
693
    msg("Opening sessionB");
696
    msg("Opening sessionB");
(-)src/org/eclipse/emf/cdo/tests/PackageRegistryTest.java (-2 / +2 lines)
Lines 18-24 Link Here
18
import org.eclipse.emf.cdo.session.CDOSession;
18
import org.eclipse.emf.cdo.session.CDOSession;
19
import org.eclipse.emf.cdo.tests.bundle.OM;
19
import org.eclipse.emf.cdo.tests.bundle.OM;
20
import org.eclipse.emf.cdo.tests.config.IRepositoryConfig;
20
import org.eclipse.emf.cdo.tests.config.IRepositoryConfig;
21
import org.eclipse.emf.cdo.tests.mango.Value;
21
import org.eclipse.emf.cdo.tests.mango.MangoValue;
22
import org.eclipse.emf.cdo.tests.model1.Company;
22
import org.eclipse.emf.cdo.tests.model1.Company;
23
import org.eclipse.emf.cdo.tests.model1.Model1Package;
23
import org.eclipse.emf.cdo.tests.model1.Model1Package;
24
import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
24
import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
Lines 114-120 Link Here
114
    CDOTransaction transaction = session.openTransaction();
114
    CDOTransaction transaction = session.openTransaction();
115
    CDOResource res = transaction.getResource("/res");
115
    CDOResource res = transaction.getResource("/res");
116
116
117
    Value value = getMangoFactory().createValue();
117
    MangoValue value = getMangoFactory().createMangoValue();
118
    value.setName("V0");
118
    value.setName("V0");
119
    res.getContents().add(value);
119
    res.getContents().add(value);
120
120
(-)src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java (-70 / +91 lines)
Lines 131-204 Link Here
131
    }
131
    }
132
  }
132
  }
133
133
134
  // TODO LEGACY
134
  /**
135
  // /**
135
   * @author Eike Stepper
136
  // * @author Eike Stepper
136
   */
137
  // */
137
  public static final class Legacy extends ModelConfig
138
  // public static final class Legacy extends ModelConfig
138
  {
139
  // {
139
    private static final long serialVersionUID = 1L;
140
  // public static final String NAME = "Legacy";
140
141
  //
141
    public static final String NAME = "Legacy";
142
  // public static final Legacy INSTANCE = new Legacy();
142
143
  //
143
    public static final Legacy INSTANCE = new Legacy();
144
  // public Legacy()
144
145
  // {
145
    public Legacy()
146
  // super(NAME);
146
    {
147
  // }
147
      super(NAME);
148
  //
148
    }
149
  // public MangoFactory getMangoFactory()
149
150
  // {
150
    public MangoFactory getMangoFactory()
151
  // return org.eclipse.emf.cdo.tests.legacy.mango.MangoFactory.eINSTANCE;
151
    {
152
  // }
152
      return org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoFactoryImpl.eINSTANCE;
153
  //
153
    }
154
  // public MangoPackage getMangoPackage()
154
155
  // {
155
    public MangoPackage getMangoPackage()
156
  // return org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage.eINSTANCE;
156
    {
157
  // }
157
      return org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoPackageImpl.eINSTANCE;
158
  //
158
    }
159
  // public Model1Factory getModel1Factory()
159
160
  // {
160
    public Model1Factory getModel1Factory()
161
  // return org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory.eINSTANCE;
161
    {
162
  // }
162
      return org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory.eINSTANCE;
163
  //
163
    }
164
  // public Model1Package getModel1Package()
164
165
  // {
165
    public Model1Package getModel1Package()
166
  // return org.eclipse.emf.cdo.tests.legacy.model1.Model1Package.eINSTANCE;
166
    {
167
  // }
167
      return org.eclipse.emf.cdo.tests.legacy.model1.Model1Package.eINSTANCE;
168
  //
168
    }
169
  // public Model2Factory getModel2Factory()
169
170
  // {
170
    public Model2Factory getModel2Factory()
171
  // return org.eclipse.emf.cdo.tests.legacy.model2.Model2Factory.eINSTANCE;
171
    {
172
  // }
172
      return org.eclipse.emf.cdo.tests.legacy.model2.Model2Factory.eINSTANCE;
173
  //
173
    }
174
  // public Model2Package getModel2Package()
174
175
  // {
175
    public Model2Package getModel2Package()
176
  // return org.eclipse.emf.cdo.tests.legacy.model2.Model2Package.eINSTANCE;
176
    {
177
  // }
177
      return org.eclipse.emf.cdo.tests.legacy.model2.Model2Package.eINSTANCE;
178
  //
178
    }
179
  // public Model3Factory getModel3Factory()
179
180
  // {
180
    public Model3Factory getModel3Factory()
181
  // return org.eclipse.emf.cdo.tests.legacy.model3.Model3Factory.eINSTANCE;
181
    {
182
  // }
182
      return org.eclipse.emf.cdo.tests.legacy.model3.Model3Factory.eINSTANCE;
183
  //
183
    }
184
  // public Model3Package getModel3Package()
184
185
  // {
185
    public Model3Package getModel3Package()
186
  // return org.eclipse.emf.cdo.tests.legacy.model3.Model3Package.eINSTANCE;
186
    {
187
  // }
187
      return org.eclipse.emf.cdo.tests.legacy.model3.Model3Package.eINSTANCE;
188
  //
188
    }
189
  // public model4Factory getModel4Factory()
189
190
  // {
190
    public SubpackageFactory getModel3SubPackageFactory()
191
  // return org.eclipse.emf.cdo.tests.legacy.model4.model4Factory.eINSTANCE;
191
    {
192
  // }
192
      return org.eclipse.emf.cdo.tests.legacy.model3.subpackage.SubpackageFactory.eINSTANCE;
193
  //
193
    }
194
  // public model4Package getModel4Package()
194
195
  // {
195
    public SubpackagePackage getModel3SubPackagePackage()
196
  // return org.eclipse.emf.cdo.tests.legacy.model4.model4Package.eINSTANCE;
196
    {
197
  // }
197
      return org.eclipse.emf.cdo.tests.legacy.model3.subpackage.SubpackagePackage.eINSTANCE;
198
  //
198
    }
199
  // public model4interfacesPackage getModel4InterfacesPackage()
199
200
  // {
200
    public model4Factory getModel4Factory()
201
  // return org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage.eINSTANCE;
201
    {
202
  // }
202
      return org.eclipse.emf.cdo.tests.legacy.model4.model4Factory.eINSTANCE;
203
  // }
203
    }
204
205
    public model4Package getModel4Package()
206
    {
207
      return org.eclipse.emf.cdo.tests.legacy.model4.model4Package.eINSTANCE;
208
    }
209
210
    public model4interfacesPackage getModel4InterfacesPackage()
211
    {
212
      return org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage.eINSTANCE;
213
    }
214
215
    public Model5Factory getModel5Factory()
216
    {
217
      return org.eclipse.emf.cdo.tests.legacy.model5.Model5Factory.eINSTANCE;
218
    }
219
220
    public Model5Package getModel5Package()
221
    {
222
      return org.eclipse.emf.cdo.tests.legacy.model5.Model5Package.eINSTANCE;
223
    }
224
  }
204
}
225
}
(-)src/org/eclipse/emf/cdo/tests/config/IConstants.java (+2 lines)
Lines 33-36 Link Here
33
  public static final SessionConfig TCP = SessionConfig.TCP.INSTANCE;
33
  public static final SessionConfig TCP = SessionConfig.TCP.INSTANCE;
34
34
35
  public static final ModelConfig NATIVE = ModelConfig.Native.INSTANCE;
35
  public static final ModelConfig NATIVE = ModelConfig.Native.INSTANCE;
36
37
  public static final ModelConfig LEGACY = ModelConfig.Legacy.INSTANCE;
36
}
38
}
(-)src/org/eclipse/emf/cdo/tests/AllTestsLegacy.java (+42 lines)
Added Link Here
1
/**
2
 * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *    Eike Stepper - initial API and implementation
10
 */
11
package org.eclipse.emf.cdo.tests;
12
13
import org.eclipse.emf.cdo.tests.config.impl.ConfigTest;
14
15
import java.util.List;
16
17
import junit.framework.Test;
18
import junit.framework.TestSuite;
19
20
/**
21
 * @author Eike Stepper
22
 */
23
public class AllTestsLegacy extends AllTestsAllConfigs
24
{
25
  public static Test suite()
26
  {
27
    return new AllTestsLegacy().getTestSuite(AllTestsAllConfigs.class.getName());
28
  }
29
30
  @Override
31
  protected void initTestClasses(List<Class<? extends ConfigTest>> testClasses)
32
  {
33
    testClasses.add(MangoTest.class);
34
    testClasses.add(InvalidationTest.class);
35
  }
36
37
  @Override
38
  protected void initConfigSuites(TestSuite parent)
39
  {
40
    addScenario(parent, COMBINED, MEM, JVM, LEGACY);
41
  }
42
}

Return to bug 247226