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