diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java | 194 |
1 files changed, 194 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java new file mode 100644 index 00000000..0cb8c9e0 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ClassReferenceImpl.java | |||
@@ -0,0 +1,194 @@ | |||
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.ClassReference; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Class Reference</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ClassReferenceImpl#getElement <em>Element</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class ClassReferenceImpl extends TypeReferenceImpl implements ClassReference | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getElement() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected MetamodelElement element; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected ClassReferenceImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return ApplicationConfigurationPackage.Literals.CLASS_REFERENCE; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | public MetamodelElement getElement() | ||
70 | { | ||
71 | return element; | ||
72 | } | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | public NotificationChain basicSetElement(MetamodelElement newElement, NotificationChain msgs) | ||
80 | { | ||
81 | MetamodelElement oldElement = element; | ||
82 | element = newElement; | ||
83 | if (eNotificationRequired()) | ||
84 | { | ||
85 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, oldElement, newElement); | ||
86 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
87 | } | ||
88 | return msgs; | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | public void setElement(MetamodelElement newElement) | ||
97 | { | ||
98 | if (newElement != element) | ||
99 | { | ||
100 | NotificationChain msgs = null; | ||
101 | if (element != null) | ||
102 | msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, null, msgs); | ||
103 | if (newElement != null) | ||
104 | msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, null, msgs); | ||
105 | msgs = basicSetElement(newElement, msgs); | ||
106 | if (msgs != null) msgs.dispatch(); | ||
107 | } | ||
108 | else if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT, newElement, newElement)); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: | ||
123 | return basicSetElement(null, msgs); | ||
124 | } | ||
125 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
135 | { | ||
136 | switch (featureID) | ||
137 | { | ||
138 | case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: | ||
139 | return getElement(); | ||
140 | } | ||
141 | return super.eGet(featureID, resolve, coreType); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public void eSet(int featureID, Object newValue) | ||
151 | { | ||
152 | switch (featureID) | ||
153 | { | ||
154 | case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: | ||
155 | setElement((MetamodelElement)newValue); | ||
156 | return; | ||
157 | } | ||
158 | super.eSet(featureID, newValue); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public void eUnset(int featureID) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: | ||
172 | setElement((MetamodelElement)null); | ||
173 | return; | ||
174 | } | ||
175 | super.eUnset(featureID); | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public boolean eIsSet(int featureID) | ||
185 | { | ||
186 | switch (featureID) | ||
187 | { | ||
188 | case ApplicationConfigurationPackage.CLASS_REFERENCE__ELEMENT: | ||
189 | return element != null; | ||
190 | } | ||
191 | return super.eIsSet(featureID); | ||
192 | } | ||
193 | |||
194 | } //ClassReferenceImpl | ||