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