diff options
author | 2017-06-10 19:05:05 +0200 | |
---|---|---|
committer | 2017-06-10 19:05:05 +0200 | |
commit | 60f01f46ba232ed6416054f0a6115cb2a9b70b4e (patch) | |
tree | 5edf8aeb07abc51f3fec63bbd15c926e1de09552 /Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RelationImpl.java | |
parent | Initial commit, migrating from SVN (diff) | |
download | VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.tar.gz VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.tar.zst VIATRA-Generator-60f01f46ba232ed6416054f0a6115cb2a9b70b4e.zip |
Migrating Additional projects
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RelationImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RelationImpl.java | 204 |
1 files changed, 204 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RelationImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RelationImpl.java new file mode 100644 index 00000000..a0127ab8 --- /dev/null +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RelationImpl.java | |||
@@ -0,0 +1,204 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage; | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Relation; | ||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TypeReference; | ||
8 | |||
9 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.LogicproblemPackage; | ||
10 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.RelationAnnotation; | ||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
21 | import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; | ||
22 | import org.eclipse.emf.ecore.util.InternalEList; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Relation</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl.RelationImpl#getParameters <em>Parameters</em>}</li> | ||
33 | * <li>{@link hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl.RelationImpl#getAnnotations <em>Annotations</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public abstract class RelationImpl extends SymbolicDeclarationImpl implements Relation { | ||
39 | /** | ||
40 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getParameters() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected EList<TypeReference> parameters; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #getAnnotations() <em>Annotations</em>}' reference list. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #getAnnotations() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected EList<RelationAnnotation> annotations; | ||
58 | |||
59 | /** | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @generated | ||
63 | */ | ||
64 | protected RelationImpl() { | ||
65 | super(); | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | protected EClass eStaticClass() { | ||
75 | return LogiclanguagePackage.Literals.RELATION; | ||
76 | } | ||
77 | |||
78 | /** | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @generated | ||
82 | */ | ||
83 | public EList<TypeReference> getParameters() { | ||
84 | if (parameters == null) { | ||
85 | parameters = new EObjectContainmentEList<TypeReference>(TypeReference.class, this, LogiclanguagePackage.RELATION__PARAMETERS); | ||
86 | } | ||
87 | return parameters; | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | public EList<RelationAnnotation> getAnnotations() { | ||
96 | if (annotations == null) { | ||
97 | annotations = new EObjectWithInverseResolvingEList<RelationAnnotation>(RelationAnnotation.class, this, LogiclanguagePackage.RELATION__ANNOTATIONS, LogicproblemPackage.RELATION_ANNOTATION__TARGET); | ||
98 | } | ||
99 | return annotations; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | @SuppressWarnings("unchecked") | ||
108 | @Override | ||
109 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
110 | switch (featureID) { | ||
111 | case LogiclanguagePackage.RELATION__ANNOTATIONS: | ||
112 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getAnnotations()).basicAdd(otherEnd, msgs); | ||
113 | } | ||
114 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
124 | switch (featureID) { | ||
125 | case LogiclanguagePackage.RELATION__PARAMETERS: | ||
126 | return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); | ||
127 | case LogiclanguagePackage.RELATION__ANNOTATIONS: | ||
128 | return ((InternalEList<?>)getAnnotations()).basicRemove(otherEnd, msgs); | ||
129 | } | ||
130 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
140 | switch (featureID) { | ||
141 | case LogiclanguagePackage.RELATION__PARAMETERS: | ||
142 | return getParameters(); | ||
143 | case LogiclanguagePackage.RELATION__ANNOTATIONS: | ||
144 | return getAnnotations(); | ||
145 | } | ||
146 | return super.eGet(featureID, resolve, coreType); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @SuppressWarnings("unchecked") | ||
155 | @Override | ||
156 | public void eSet(int featureID, Object newValue) { | ||
157 | switch (featureID) { | ||
158 | case LogiclanguagePackage.RELATION__PARAMETERS: | ||
159 | getParameters().clear(); | ||
160 | getParameters().addAll((Collection<? extends TypeReference>)newValue); | ||
161 | return; | ||
162 | case LogiclanguagePackage.RELATION__ANNOTATIONS: | ||
163 | getAnnotations().clear(); | ||
164 | getAnnotations().addAll((Collection<? extends RelationAnnotation>)newValue); | ||
165 | return; | ||
166 | } | ||
167 | super.eSet(featureID, newValue); | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public void eUnset(int featureID) { | ||
177 | switch (featureID) { | ||
178 | case LogiclanguagePackage.RELATION__PARAMETERS: | ||
179 | getParameters().clear(); | ||
180 | return; | ||
181 | case LogiclanguagePackage.RELATION__ANNOTATIONS: | ||
182 | getAnnotations().clear(); | ||
183 | return; | ||
184 | } | ||
185 | super.eUnset(featureID); | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public boolean eIsSet(int featureID) { | ||
195 | switch (featureID) { | ||
196 | case LogiclanguagePackage.RELATION__PARAMETERS: | ||
197 | return parameters != null && !parameters.isEmpty(); | ||
198 | case LogiclanguagePackage.RELATION__ANNOTATIONS: | ||
199 | return annotations != null && !annotations.isEmpty(); | ||
200 | } | ||
201 | return super.eIsSet(featureID); | ||
202 | } | ||
203 | |||
204 | } //RelationImpl | ||