aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Grantor.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Grantor.java')
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Grantor.java301
1 files changed, 301 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Grantor.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Grantor.java
new file mode 100644
index 00000000..e5da891f
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Grantor.java
@@ -0,0 +1,301 @@
1/**
2 */
3package TaxationWithRoot;
4
5import java.util.Arrays;
6import java.util.Collections;
7import java.util.List;
8
9import org.eclipse.emf.common.util.Enumerator;
10
11/**
12 * <!-- begin-user-doc -->
13 * A representation of the literals of the enumeration '<em><b>Grantor</b></em>',
14 * and utility methods for working with them.
15 * <!-- end-user-doc -->
16 * @see TaxationWithRoot.TaxationWithRootPackage#getGrantor()
17 * @model
18 * @generated
19 */
20public enum Grantor implements Enumerator {
21 /**
22 * The '<em><b>WWW</b></em>' literal object.
23 * <!-- begin-user-doc -->
24 * <!-- end-user-doc -->
25 * @see #WWW_VALUE
26 * @generated
27 * @ordered
28 */
29 WWW(0, "WWW", "WWW"),
30
31 /**
32 * The '<em><b>Employer</b></em>' literal object.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #EMPLOYER_VALUE
36 * @generated
37 * @ordered
38 */
39 EMPLOYER(1, "Employer", "Employer"),
40
41 /**
42 * The '<em><b>MMM</b></em>' literal object.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #MMM_VALUE
46 * @generated
47 * @ordered
48 */
49 MMM(2, "MMM", "MMM"),
50
51 /**
52 * The '<em><b>UUU</b></em>' literal object.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #UUU_VALUE
56 * @generated
57 * @ordered
58 */
59 UUU(3, "UUU", "UUU"),
60
61 /**
62 * The '<em><b>YYY</b></em>' literal object.
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @see #YYY_VALUE
66 * @generated
67 * @ordered
68 */
69 YYY(4, "YYY", "YYY"),
70
71 /**
72 * The '<em><b>OOO</b></em>' literal object.
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @see #OOO_VALUE
76 * @generated
77 * @ordered
78 */
79 OOO(5, "OOO", "OOO");
80
81 /**
82 * The '<em><b>WWW</b></em>' literal value.
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @see #WWW
86 * @model
87 * @generated
88 * @ordered
89 */
90 public static final int WWW_VALUE = 0;
91
92 /**
93 * The '<em><b>Employer</b></em>' literal value.
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @see #EMPLOYER
97 * @model name="Employer"
98 * @generated
99 * @ordered
100 */
101 public static final int EMPLOYER_VALUE = 1;
102
103 /**
104 * The '<em><b>MMM</b></em>' literal value.
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @see #MMM
108 * @model
109 * @generated
110 * @ordered
111 */
112 public static final int MMM_VALUE = 2;
113
114 /**
115 * The '<em><b>UUU</b></em>' literal value.
116 * <!-- begin-user-doc -->
117 * <!-- end-user-doc -->
118 * @see #UUU
119 * @model
120 * @generated
121 * @ordered
122 */
123 public static final int UUU_VALUE = 3;
124
125 /**
126 * The '<em><b>YYY</b></em>' literal value.
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @see #YYY
130 * @model
131 * @generated
132 * @ordered
133 */
134 public static final int YYY_VALUE = 4;
135
136 /**
137 * The '<em><b>OOO</b></em>' literal value.
138 * <!-- begin-user-doc -->
139 * <!-- end-user-doc -->
140 * @see #OOO
141 * @model
142 * @generated
143 * @ordered
144 */
145 public static final int OOO_VALUE = 5;
146
147 /**
148 * An array of all the '<em><b>Grantor</b></em>' enumerators.
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 private static final Grantor[] VALUES_ARRAY =
154 new Grantor[] {
155 WWW,
156 EMPLOYER,
157 MMM,
158 UUU,
159 YYY,
160 OOO,
161 };
162
163 /**
164 * A public read-only list of all the '<em><b>Grantor</b></em>' enumerators.
165 * <!-- begin-user-doc -->
166 * <!-- end-user-doc -->
167 * @generated
168 */
169 public static final List<Grantor> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
170
171 /**
172 * Returns the '<em><b>Grantor</b></em>' literal with the specified literal value.
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @param literal the literal.
176 * @return the matching enumerator or <code>null</code>.
177 * @generated
178 */
179 public static Grantor get(String literal) {
180 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
181 Grantor result = VALUES_ARRAY[i];
182 if (result.toString().equals(literal)) {
183 return result;
184 }
185 }
186 return null;
187 }
188
189 /**
190 * Returns the '<em><b>Grantor</b></em>' literal with the specified name.
191 * <!-- begin-user-doc -->
192 * <!-- end-user-doc -->
193 * @param name the name.
194 * @return the matching enumerator or <code>null</code>.
195 * @generated
196 */
197 public static Grantor getByName(String name) {
198 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
199 Grantor result = VALUES_ARRAY[i];
200 if (result.getName().equals(name)) {
201 return result;
202 }
203 }
204 return null;
205 }
206
207 /**
208 * Returns the '<em><b>Grantor</b></em>' literal with the specified integer value.
209 * <!-- begin-user-doc -->
210 * <!-- end-user-doc -->
211 * @param value the integer value.
212 * @return the matching enumerator or <code>null</code>.
213 * @generated
214 */
215 public static Grantor get(int value) {
216 switch (value) {
217 case WWW_VALUE: return WWW;
218 case EMPLOYER_VALUE: return EMPLOYER;
219 case MMM_VALUE: return MMM;
220 case UUU_VALUE: return UUU;
221 case YYY_VALUE: return YYY;
222 case OOO_VALUE: return OOO;
223 }
224 return null;
225 }
226
227 /**
228 * <!-- begin-user-doc -->
229 * <!-- end-user-doc -->
230 * @generated
231 */
232 private final int value;
233
234 /**
235 * <!-- begin-user-doc -->
236 * <!-- end-user-doc -->
237 * @generated
238 */
239 private final String name;
240
241 /**
242 * <!-- begin-user-doc -->
243 * <!-- end-user-doc -->
244 * @generated
245 */
246 private final String literal;
247
248 /**
249 * Only this class can construct instances.
250 * <!-- begin-user-doc -->
251 * <!-- end-user-doc -->
252 * @generated
253 */
254 private Grantor(int value, String name, String literal) {
255 this.value = value;
256 this.name = name;
257 this.literal = literal;
258 }
259
260 /**
261 * <!-- begin-user-doc -->
262 * <!-- end-user-doc -->
263 * @generated
264 */
265 @Override
266 public int getValue() {
267 return value;
268 }
269
270 /**
271 * <!-- begin-user-doc -->
272 * <!-- end-user-doc -->
273 * @generated
274 */
275 @Override
276 public String getName() {
277 return name;
278 }
279
280 /**
281 * <!-- begin-user-doc -->
282 * <!-- end-user-doc -->
283 * @generated
284 */
285 @Override
286 public String getLiteral() {
287 return literal;
288 }
289
290 /**
291 * Returns the literal value of the enumerator, which is its string representation.
292 * <!-- begin-user-doc -->
293 * <!-- end-user-doc -->
294 * @generated
295 */
296 @Override
297 public String toString() {
298 return literal;
299 }
300
301} //Grantor