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 (-43 / +43 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 28-50 Link Here
28
28
29
/**
29
/**
30
 * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
30
 * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
31
 * 
32
 * @generated
31
 * @generated
33
 */
32
 */
34
public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
33
public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
35
{
34
{
36
  /**
35
  /**
37
   * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
36
   * @ADDED
38
   * 
37
   */
39
   * @generated
38
  public static final MangoFactory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.mango.impl.MangoFactoryImpl.init();
39
40
  /**
41
   * Creates the default factory implementation.
42
   * <!-- begin-user-doc --> <!-- end-user-doc -->
43
   * @generated NOT
40
   */
44
   */
41
  public static MangoFactory init()
45
  public static org.eclipse.emf.cdo.tests.mango.MangoFactory init()
42
  {
46
  {
43
    try
47
    try
44
    {
48
    {
45
      MangoFactory theMangoFactory = (MangoFactory)EPackage.Registry.INSTANCE
49
      MangoFactory theMangoFactory = (MangoFactory)EPackage.Registry.INSTANCE
46
          .getEFactory("http://www.eclipse.org/emf/CDO/tests/mango");
50
          .getEFactory("http://www.eclipse.org/emf/CDO/tests/mango");
47
      if (theMangoFactory != null)
51
      if (theMangoFactory instanceof MangoFactoryImpl)
48
      {
52
      {
49
        return theMangoFactory;
53
        return theMangoFactory;
50
      }
54
      }
Lines 53-64 Link Here
53
    {
57
    {
54
      EcorePlugin.INSTANCE.log(exception);
58
      EcorePlugin.INSTANCE.log(exception);
55
    }
59
    }
56
    return new MangoFactoryImpl();
60
    
61
    MangoFactoryImpl factory = new MangoFactoryImpl();
62
EPackage.Registry.INSTANCE.put(factory.getEPackage().getNsURI(), factory);
63
    return factory;
57
  }
64
  }
58
65
59
  /**
66
  /**
60
   * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
67
   * Creates an instance of the factory.
61
   * 
68
   * <!-- begin-user-doc --> <!-- end-user-doc -->
62
   * @generated
69
   * @generated
63
   */
70
   */
64
  public MangoFactoryImpl()
71
  public MangoFactoryImpl()
Lines 68-74 Link Here
68
75
69
  /**
76
  /**
70
   * <!-- begin-user-doc --> <!-- end-user-doc -->
77
   * <!-- begin-user-doc --> <!-- end-user-doc -->
71
   * 
72
   * @generated
78
   * @generated
73
   */
79
   */
74
  @Override
80
  @Override
Lines 76-87 Link Here
76
  {
82
  {
77
    switch (eClass.getClassifierID())
83
    switch (eClass.getClassifierID())
78
    {
84
    {
79
    case MangoPackage.VALUE_LIST:
85
    case MangoPackage.MANGO_VALUE_LIST:
80
      return createValueList();
86
      return createMangoValueList();
81
    case MangoPackage.VALUE:
87
    case MangoPackage.MANGO_VALUE:
82
      return createValue();
88
      return createMangoValue();
83
    case MangoPackage.PARAMETER:
89
    case MangoPackage.MANGO_PARAMETER:
84
      return createParameter();
90
      return createMangoParameter();
85
    default:
91
    default:
86
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
92
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
87
    }
93
    }
Lines 89-95 Link Here
89
95
90
  /**
96
  /**
91
   * <!-- begin-user-doc --> <!-- end-user-doc -->
97
   * <!-- begin-user-doc --> <!-- end-user-doc -->
92
   * 
93
   * @generated
98
   * @generated
94
   */
99
   */
95
  @Override
100
  @Override
Lines 106-112 Link Here
106
111
107
  /**
112
  /**
108
   * <!-- begin-user-doc --> <!-- end-user-doc -->
113
   * <!-- begin-user-doc --> <!-- end-user-doc -->
109
   * 
110
   * @generated
114
   * @generated
111
   */
115
   */
112
  @Override
116
  @Override
Lines 122-162 Link Here
122
  }
126
  }
123
127
124
  /**
128
  /**
125
   * <!-- begin-user-doc --> <!-- end-user-doc -->
129
   * <!-- begin-user-doc -->
126
   * 
130
   * <!-- end-user-doc -->
127
   * @generated
131
   * @generated
128
   */
132
   */
129
  public ValueList createValueList()
133
  public MangoValueList createMangoValueList()
130
  {
134
  {
131
    ValueListImpl valueList = new ValueListImpl();
135
    MangoValueListImpl mangoValueList = new MangoValueListImpl();
132
    return valueList;
136
    return mangoValueList;
133
  }
137
  }
134
138
135
  /**
139
  /**
136
   * <!-- begin-user-doc --> <!-- end-user-doc -->
140
   * <!-- begin-user-doc -->
137
   * 
141
   * <!-- end-user-doc -->
138
   * @generated
142
   * @generated
139
   */
143
   */
140
  public Value createValue()
144
  public MangoValue createMangoValue()
141
  {
145
  {
142
    ValueImpl value = new ValueImpl();
146
    MangoValueImpl mangoValue = new MangoValueImpl();
143
    return value;
147
    return mangoValue;
144
  }
148
  }
145
149
146
  /**
150
  /**
147
   * <!-- begin-user-doc --> <!-- end-user-doc -->
151
   * <!-- begin-user-doc -->
148
   * 
152
   * <!-- end-user-doc -->
149
   * @generated
153
   * @generated
150
   */
154
   */
151
  public Parameter createParameter()
155
  public MangoParameter createMangoParameter()
152
  {
156
  {
153
    ParameterImpl parameter = new ParameterImpl();
157
    MangoParameterImpl mangoParameter = new MangoParameterImpl();
154
    return parameter;
158
    return mangoParameter;
155
  }
159
  }
156
160
157
  /**
161
  /**
158
   * <!-- begin-user-doc --> <!-- end-user-doc -->
162
   * <!-- begin-user-doc --> <!-- end-user-doc -->
159
   * 
160
   * @generated
163
   * @generated
161
   */
164
   */
162
  public ParameterPassing createParameterPassingFromString(EDataType eDataType, String initialValue)
165
  public ParameterPassing createParameterPassingFromString(EDataType eDataType, String initialValue)
Lines 170-176 Link Here
170
173
171
  /**
174
  /**
172
   * <!-- begin-user-doc --> <!-- end-user-doc -->
175
   * <!-- begin-user-doc --> <!-- end-user-doc -->
173
   * 
174
   * @generated
176
   * @generated
175
   */
177
   */
176
  public String convertParameterPassingToString(EDataType eDataType, Object instanceValue)
178
  public String convertParameterPassingToString(EDataType eDataType, Object instanceValue)
Lines 180-186 Link Here
180
182
181
  /**
183
  /**
182
   * <!-- begin-user-doc --> <!-- end-user-doc -->
184
   * <!-- begin-user-doc --> <!-- end-user-doc -->
183
   * 
184
   * @generated
185
   * @generated
185
   */
186
   */
186
  public MangoPackage getMangoPackage()
187
  public MangoPackage getMangoPackage()
Lines 190-196 Link Here
190
191
191
  /**
192
  /**
192
   * <!-- begin-user-doc --> <!-- end-user-doc -->
193
   * <!-- begin-user-doc --> <!-- end-user-doc -->
193
   * 
194
   * @deprecated
194
   * @deprecated
195
   * @generated
195
   * @generated
196
   */
196
   */
(-)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/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/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 (+41 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
  }
35
36
  @Override
37
  protected void initConfigSuites(TestSuite parent)
38
  {
39
    addScenario(parent, COMBINED, MEM, JVM, LEGACY);
40
  }
41
}

Return to bug 247226