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/impl/ConjunctionImpl.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/impl/ConjunctionImpl.java | 190 |
1 files changed, 0 insertions, 190 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/impl/ConjunctionImpl.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/impl/ConjunctionImpl.java deleted file mode 100644 index 72258cc1..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/impl/ConjunctionImpl.java +++ /dev/null | |||
@@ -1,190 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import java.util.Collection; | ||
6 | |||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.common.util.EList; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
17 | import org.eclipse.emf.ecore.util.InternalEList; | ||
18 | |||
19 | import org.eclipse.viatra.solver.language.model.problem.Conjunction; | ||
20 | import org.eclipse.viatra.solver.language.model.problem.ImplicitVariable; | ||
21 | import org.eclipse.viatra.solver.language.model.problem.Literal; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Conjunction</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl#getImplicitVariables <em>Implicit Variables</em>}</li> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ConjunctionImpl#getLiterals <em>Literals</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class ConjunctionImpl extends MinimalEObjectImpl.Container implements Conjunction { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getImplicitVariables() <em>Implicit Variables</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getImplicitVariables() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<ImplicitVariable> implicitVariables; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #getLiterals() <em>Literals</em>}' containment reference list. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getLiterals() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected EList<Literal> literals; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | protected ConjunctionImpl() { | ||
65 | super(); | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | protected EClass eStaticClass() { | ||
75 | return ProblemPackage.Literals.CONJUNCTION; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public EList<ImplicitVariable> getImplicitVariables() { | ||
84 | if (implicitVariables == null) { | ||
85 | implicitVariables = new EObjectContainmentEList<ImplicitVariable>(ImplicitVariable.class, this, | ||
86 | ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES); | ||
87 | } | ||
88 | return implicitVariables; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | public EList<Literal> getLiterals() { | ||
97 | if (literals == null) { | ||
98 | literals = new EObjectContainmentEList<Literal>(Literal.class, this, ProblemPackage.CONJUNCTION__LITERALS); | ||
99 | } | ||
100 | return literals; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
110 | switch (featureID) { | ||
111 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
112 | return ((InternalEList<?>) getImplicitVariables()).basicRemove(otherEnd, msgs); | ||
113 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
114 | return ((InternalEList<?>) getLiterals()).basicRemove(otherEnd, msgs); | ||
115 | } | ||
116 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
126 | switch (featureID) { | ||
127 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
128 | return getImplicitVariables(); | ||
129 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
130 | return getLiterals(); | ||
131 | } | ||
132 | return super.eGet(featureID, resolve, coreType); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @SuppressWarnings("unchecked") | ||
141 | @Override | ||
142 | public void eSet(int featureID, Object newValue) { | ||
143 | switch (featureID) { | ||
144 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
145 | getImplicitVariables().clear(); | ||
146 | getImplicitVariables().addAll((Collection<? extends ImplicitVariable>) newValue); | ||
147 | return; | ||
148 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
149 | getLiterals().clear(); | ||
150 | getLiterals().addAll((Collection<? extends Literal>) newValue); | ||
151 | return; | ||
152 | } | ||
153 | super.eSet(featureID, newValue); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public void eUnset(int featureID) { | ||
163 | switch (featureID) { | ||
164 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
165 | getImplicitVariables().clear(); | ||
166 | return; | ||
167 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
168 | getLiterals().clear(); | ||
169 | return; | ||
170 | } | ||
171 | super.eUnset(featureID); | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | @Override | ||
180 | public boolean eIsSet(int featureID) { | ||
181 | switch (featureID) { | ||
182 | case ProblemPackage.CONJUNCTION__IMPLICIT_VARIABLES: | ||
183 | return implicitVariables != null && !implicitVariables.isEmpty(); | ||
184 | case ProblemPackage.CONJUNCTION__LITERALS: | ||
185 | return literals != null && !literals.isEmpty(); | ||
186 | } | ||
187 | return super.eIsSet(featureID); | ||
188 | } | ||
189 | |||
190 | } //ConjunctionImpl | ||