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