diff options
author | 2018-01-24 01:06:37 +0100 | |
---|---|---|
committer | 2018-01-24 01:06:37 +0100 | |
commit | e55fc0c91990c1de9cfdc02b5859b7419735abd3 (patch) | |
tree | b0f879a78dad307b5f786f0bdee2107ece8b2444 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java | |
parent | Removed PQuery from API, IQuerySpecification is used instead (diff) | |
download | VIATRA-Generator-e55fc0c91990c1de9cfdc02b5859b7419735abd3.tar.gz VIATRA-Generator-e55fc0c91990c1de9cfdc02b5859b7419735abd3.tar.zst VIATRA-Generator-e55fc0c91990c1de9cfdc02b5859b7419735abd3.zip |
New Scope format: #String += 2..*
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java new file mode 100644 index 00000000..36398a23 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelReferenceImpl.java | |||
@@ -0,0 +1,173 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.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.PartialModelDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelReference; | ||
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>Partial Model 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.PartialModelReferenceImpl#getReferred <em>Referred</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class PartialModelReferenceImpl extends PartialModelImpl implements PartialModelReference | ||
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 PartialModelDeclaration referred; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected PartialModelReferenceImpl() | ||
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.PARTIAL_MODEL_REFERENCE; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | public PartialModelDeclaration getReferred() | ||
69 | { | ||
70 | if (referred != null && referred.eIsProxy()) | ||
71 | { | ||
72 | InternalEObject oldReferred = (InternalEObject)referred; | ||
73 | referred = (PartialModelDeclaration)eResolveProxy(oldReferred); | ||
74 | if (referred != oldReferred) | ||
75 | { | ||
76 | if (eNotificationRequired()) | ||
77 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED, oldReferred, referred)); | ||
78 | } | ||
79 | } | ||
80 | return referred; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | public PartialModelDeclaration basicGetReferred() | ||
89 | { | ||
90 | return referred; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | public void setReferred(PartialModelDeclaration newReferred) | ||
99 | { | ||
100 | PartialModelDeclaration oldReferred = referred; | ||
101 | referred = newReferred; | ||
102 | if (eNotificationRequired()) | ||
103 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED, oldReferred, referred)); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
113 | { | ||
114 | switch (featureID) | ||
115 | { | ||
116 | case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: | ||
117 | if (resolve) return getReferred(); | ||
118 | return basicGetReferred(); | ||
119 | } | ||
120 | return super.eGet(featureID, resolve, coreType); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void eSet(int featureID, Object newValue) | ||
130 | { | ||
131 | switch (featureID) | ||
132 | { | ||
133 | case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: | ||
134 | setReferred((PartialModelDeclaration)newValue); | ||
135 | return; | ||
136 | } | ||
137 | super.eSet(featureID, newValue); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public void eUnset(int featureID) | ||
147 | { | ||
148 | switch (featureID) | ||
149 | { | ||
150 | case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: | ||
151 | setReferred((PartialModelDeclaration)null); | ||
152 | return; | ||
153 | } | ||
154 | super.eUnset(featureID); | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public boolean eIsSet(int featureID) | ||
164 | { | ||
165 | switch (featureID) | ||
166 | { | ||
167 | case ApplicationConfigurationPackage.PARTIAL_MODEL_REFERENCE__REFERRED: | ||
168 | return referred != null; | ||
169 | } | ||
170 | return super.eIsSet(featureID); | ||
171 | } | ||
172 | |||
173 | } //PartialModelReferenceImpl | ||