diff options
author | 2020-06-25 19:55:10 +0200 | |
---|---|---|
committer | 2020-06-25 19:55:10 +0200 | |
commit | c3a6d4b9cf3657070d180aa65ddbf0459e880329 (patch) | |
tree | 780c4fc61578dcb309af53fb0c164c7627e51676 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java | |
parent | New configuration language parser WIP (diff) | |
parent | Scope unsat benchmarks (diff) | |
download | VIATRA-Generator-c3a6d4b9cf3657070d180aa65ddbf0459e880329.tar.gz VIATRA-Generator-c3a6d4b9cf3657070d180aa65ddbf0459e880329.tar.zst VIATRA-Generator-c3a6d4b9cf3657070d180aa65ddbf0459e880329.zip |
Merge branch 'kris'
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java new file mode 100644 index 00000000..45c55462 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveReferenceImpl.java | |||
@@ -0,0 +1,175 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveReference; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Objective Reference</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveReferenceImpl#getReferred <em>Referred</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ObjectiveReferenceImpl extends ObjectiveImpl implements ObjectiveReference | ||
31 | { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getReferred() <em>Referred</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getReferred() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected ObjectiveDeclaration referred; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected ObjectiveReferenceImpl() | ||
48 | { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | protected EClass eStaticClass() | ||
59 | { | ||
60 | return ApplicationConfigurationPackage.Literals.OBJECTIVE_REFERENCE; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | public ObjectiveDeclaration getReferred() | ||
70 | { | ||
71 | if (referred != null && referred.eIsProxy()) | ||
72 | { | ||
73 | InternalEObject oldReferred = (InternalEObject)referred; | ||
74 | referred = (ObjectiveDeclaration)eResolveProxy(oldReferred); | ||
75 | if (referred != oldReferred) | ||
76 | { | ||
77 | if (eNotificationRequired()) | ||
78 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED, oldReferred, referred)); | ||
79 | } | ||
80 | } | ||
81 | return referred; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public ObjectiveDeclaration basicGetReferred() | ||
90 | { | ||
91 | return referred; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public void setReferred(ObjectiveDeclaration newReferred) | ||
101 | { | ||
102 | ObjectiveDeclaration oldReferred = referred; | ||
103 | referred = newReferred; | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED, oldReferred, referred)); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
115 | { | ||
116 | switch (featureID) | ||
117 | { | ||
118 | case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: | ||
119 | if (resolve) return getReferred(); | ||
120 | return basicGetReferred(); | ||
121 | } | ||
122 | return super.eGet(featureID, resolve, coreType); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eSet(int featureID, Object newValue) | ||
132 | { | ||
133 | switch (featureID) | ||
134 | { | ||
135 | case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: | ||
136 | setReferred((ObjectiveDeclaration)newValue); | ||
137 | return; | ||
138 | } | ||
139 | super.eSet(featureID, newValue); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void eUnset(int featureID) | ||
149 | { | ||
150 | switch (featureID) | ||
151 | { | ||
152 | case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: | ||
153 | setReferred((ObjectiveDeclaration)null); | ||
154 | return; | ||
155 | } | ||
156 | super.eUnset(featureID); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public boolean eIsSet(int featureID) | ||
166 | { | ||
167 | switch (featureID) | ||
168 | { | ||
169 | case ApplicationConfigurationPackage.OBJECTIVE_REFERENCE__REFERRED: | ||
170 | return referred != null; | ||
171 | } | ||
172 | return super.eIsSet(featureID); | ||
173 | } | ||
174 | |||
175 | } //ObjectiveReferenceImpl | ||