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