aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Tax_Class_Category.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Tax_Class_Category.java')
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Tax_Class_Category.java232
1 files changed, 232 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Tax_Class_Category.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Tax_Class_Category.java
new file mode 100644
index 00000000..9cd31c90
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/Tax_Class_Category.java
@@ -0,0 +1,232 @@
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>Tax Class Category</b></em>',
14 * and utility methods for working with them.
15 * <!-- end-user-doc -->
16 * @see TaxationWithRoot.TaxationWithRootPackage#getTax_Class_Category()
17 * @model
18 * @generated
19 */
20public enum Tax_Class_Category implements Enumerator {
21 /**
22 * The '<em><b>One</b></em>' literal object.
23 * <!-- begin-user-doc -->
24 * <!-- end-user-doc -->
25 * @see #ONE_VALUE
26 * @generated
27 * @ordered
28 */
29 ONE(0, "One", "One"),
30
31 /**
32 * The '<em><b>One A</b></em>' literal object.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #ONE_A_VALUE
36 * @generated
37 * @ordered
38 */
39 ONE_A(1, "One_A", "One_A"),
40
41 /**
42 * The '<em><b>Two</b></em>' literal object.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #TWO_VALUE
46 * @generated
47 * @ordered
48 */
49 TWO(2, "Two", "Two");
50
51 /**
52 * The '<em><b>One</b></em>' literal value.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #ONE
56 * @model name="One"
57 * @generated
58 * @ordered
59 */
60 public static final int ONE_VALUE = 0;
61
62 /**
63 * The '<em><b>One A</b></em>' literal value.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @see #ONE_A
67 * @model name="One_A"
68 * @generated
69 * @ordered
70 */
71 public static final int ONE_A_VALUE = 1;
72
73 /**
74 * The '<em><b>Two</b></em>' literal value.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @see #TWO
78 * @model name="Two"
79 * @generated
80 * @ordered
81 */
82 public static final int TWO_VALUE = 2;
83
84 /**
85 * An array of all the '<em><b>Tax Class Category</b></em>' enumerators.
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 private static final Tax_Class_Category[] VALUES_ARRAY =
91 new Tax_Class_Category[] {
92 ONE,
93 ONE_A,
94 TWO,
95 };
96
97 /**
98 * A public read-only list of all the '<em><b>Tax Class Category</b></em>' enumerators.
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @generated
102 */
103 public static final List<Tax_Class_Category> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
104
105 /**
106 * Returns the '<em><b>Tax Class Category</b></em>' literal with the specified literal value.
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @param literal the literal.
110 * @return the matching enumerator or <code>null</code>.
111 * @generated
112 */
113 public static Tax_Class_Category get(String literal) {
114 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
115 Tax_Class_Category result = VALUES_ARRAY[i];
116 if (result.toString().equals(literal)) {
117 return result;
118 }
119 }
120 return null;
121 }
122
123 /**
124 * Returns the '<em><b>Tax Class Category</b></em>' literal with the specified name.
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @param name the name.
128 * @return the matching enumerator or <code>null</code>.
129 * @generated
130 */
131 public static Tax_Class_Category getByName(String name) {
132 for (int i = 0; i < VALUES_ARRAY.length; ++i) {
133 Tax_Class_Category result = VALUES_ARRAY[i];
134 if (result.getName().equals(name)) {
135 return result;
136 }
137 }
138 return null;
139 }
140
141 /**
142 * Returns the '<em><b>Tax Class Category</b></em>' literal with the specified integer value.
143 * <!-- begin-user-doc -->
144 * <!-- end-user-doc -->
145 * @param value the integer value.
146 * @return the matching enumerator or <code>null</code>.
147 * @generated
148 */
149 public static Tax_Class_Category get(int value) {
150 switch (value) {
151 case ONE_VALUE: return ONE;
152 case ONE_A_VALUE: return ONE_A;
153 case TWO_VALUE: return TWO;
154 }
155 return null;
156 }
157
158 /**
159 * <!-- begin-user-doc -->
160 * <!-- end-user-doc -->
161 * @generated
162 */
163 private final int value;
164
165 /**
166 * <!-- begin-user-doc -->
167 * <!-- end-user-doc -->
168 * @generated
169 */
170 private final String name;
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 private final String literal;
178
179 /**
180 * Only this class can construct instances.
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 private Tax_Class_Category(int value, String name, String literal) {
186 this.value = value;
187 this.name = name;
188 this.literal = literal;
189 }
190
191 /**
192 * <!-- begin-user-doc -->
193 * <!-- end-user-doc -->
194 * @generated
195 */
196 @Override
197 public int getValue() {
198 return value;
199 }
200
201 /**
202 * <!-- begin-user-doc -->
203 * <!-- end-user-doc -->
204 * @generated
205 */
206 @Override
207 public String getName() {
208 return name;
209 }
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 @Override
217 public String getLiteral() {
218 return literal;
219 }
220
221 /**
222 * Returns the literal value of the enumerator, which is its string representation.
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 @Override
228 public String toString() {
229 return literal;
230 }
231
232} //Tax_Class_Category