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