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