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.java233
1 files changed, 233 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..dc5a8e9e
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ComparisonOperator.java
@@ -0,0 +1,233 @@
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 EQUALS</b></em>' literal object.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @see #LESS_EQUALS_VALUE
28 * @generated
29 * @ordered
30 */
31 LESS_EQUALS(0, "LESS_EQUALS", "<="),
32
33 /**
34 * The '<em><b>GREATER EQUALS</b></em>' literal object.
35 * <!-- begin-user-doc -->
36 * <!-- end-user-doc -->
37 * @see #GREATER_EQUALS_VALUE
38 * @generated
39 * @ordered
40 */
41 GREATER_EQUALS(1, "GREATER_EQUALS", ">=");
42
43 /**
44 * The '<em><b>LESS EQUALS</b></em>' literal value.
45 * <!-- begin-user-doc -->
46 * <p>
47 * If the meaning of '<em><b>LESS EQUALS</b></em>' literal object isn't clear,
48 * there really should be more of a description here...
49 * </p>
50 * <!-- end-user-doc -->
51 * @see #LESS_EQUALS
52 * @model literal="&lt;="
53 * @generated
54 * @ordered
55 */
56 public static final int LESS_EQUALS_VALUE = 0;
57
58 /**
59 * The '<em><b>GREATER EQUALS</b></em>' literal value.
60 * <!-- begin-user-doc -->
61 * <p>
62 * If the meaning of '<em><b>GREATER EQUALS</b></em>' literal object isn't clear,
63 * there really should be more of a description here...
64 * </p>
65 * <!-- end-user-doc -->
66 * @see #GREATER_EQUALS
67 * @model literal="&gt;="
68 * @generated
69 * @ordered
70 */
71 public static final int GREATER_EQUALS_VALUE = 1;
72
73 /**
74 * An array of all the '<em><b>Comparison Operator</b></em>' enumerators.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 private static final ComparisonOperator[] VALUES_ARRAY =
80 new ComparisonOperator[]
81 {
82 LESS_EQUALS,
83 GREATER_EQUALS,
84 };
85
86 /**
87 * A public read-only list of all the '<em><b>Comparison Operator</b></em>' enumerators.
88 * <!-- begin-user-doc -->
89 * <!-- end-user-doc -->
90 * @generated
91 */
92 public static final List<ComparisonOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
93
94 /**
95 * Returns the '<em><b>Comparison Operator</b></em>' literal with the specified literal value.
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @param literal the literal.
99 * @return the matching enumerator or <code>null</code>.
100 * @generated
101 */
102 public static ComparisonOperator get(String literal)
103 {
104 for (int i = 0; i < VALUES_ARRAY.length; ++i)
105 {
106 ComparisonOperator result = VALUES_ARRAY[i];
107 if (result.toString().equals(literal))
108 {
109 return result;
110 }
111 }
112 return null;
113 }
114
115 /**
116 * Returns the '<em><b>Comparison Operator</b></em>' literal with the specified name.
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @param name the name.
120 * @return the matching enumerator or <code>null</code>.
121 * @generated
122 */
123 public static ComparisonOperator getByName(String name)
124 {
125 for (int i = 0; i < VALUES_ARRAY.length; ++i)
126 {
127 ComparisonOperator result = VALUES_ARRAY[i];
128 if (result.getName().equals(name))
129 {
130 return result;
131 }
132 }
133 return null;
134 }
135
136 /**
137 * Returns the '<em><b>Comparison Operator</b></em>' literal with the specified integer value.
138 * <!-- begin-user-doc -->
139 * <!-- end-user-doc -->
140 * @param value the integer value.
141 * @return the matching enumerator or <code>null</code>.
142 * @generated
143 */
144 public static ComparisonOperator get(int value)
145 {
146 switch (value)
147 {
148 case LESS_EQUALS_VALUE: return LESS_EQUALS;
149 case GREATER_EQUALS_VALUE: return GREATER_EQUALS;
150 }
151 return null;
152 }
153
154 /**
155 * <!-- begin-user-doc -->
156 * <!-- end-user-doc -->
157 * @generated
158 */
159 private final int value;
160
161 /**
162 * <!-- begin-user-doc -->
163 * <!-- end-user-doc -->
164 * @generated
165 */
166 private final String name;
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 private final String literal;
174
175 /**
176 * Only this class can construct instances.
177 * <!-- begin-user-doc -->
178 * <!-- end-user-doc -->
179 * @generated
180 */
181 private ComparisonOperator(int value, String name, String literal)
182 {
183 this.value = value;
184 this.name = name;
185 this.literal = literal;
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public int getValue()
195 {
196 return value;
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 @Override
205 public String getName()
206 {
207 return name;
208 }
209
210 /**
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @generated
214 */
215 @Override
216 public String getLiteral()
217 {
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 {
230 return literal;
231 }
232
233} //ComparisonOperator