diff options
author | OszkarSemerath <oszkar.semerath@gmail.com> | 2018-01-24 01:06:37 +0100 |
---|---|---|
committer | OszkarSemerath <oszkar.semerath@gmail.com> | 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/PartialModelSpecificationImpl.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/PartialModelSpecificationImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelSpecificationImpl.java | 166 |
1 files changed, 166 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelSpecificationImpl.java new file mode 100644 index 00000000..adc3f715 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelSpecificationImpl.java | |||
@@ -0,0 +1,166 @@ | |||
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.PartialModelEntry; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelSpecification; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.common.util.EList; | ||
15 | |||
16 | import org.eclipse.emf.ecore.EClass; | ||
17 | import org.eclipse.emf.ecore.InternalEObject; | ||
18 | |||
19 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Partial Model Specification</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.PartialModelSpecificationImpl#getEntry <em>Entry</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class PartialModelSpecificationImpl extends PartialModelImpl implements PartialModelSpecification | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getEntry() <em>Entry</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getEntry() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<PartialModelEntry> entry; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected PartialModelSpecificationImpl() | ||
53 | { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() | ||
64 | { | ||
65 | return ApplicationConfigurationPackage.Literals.PARTIAL_MODEL_SPECIFICATION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | public EList<PartialModelEntry> getEntry() | ||
74 | { | ||
75 | if (entry == null) | ||
76 | { | ||
77 | entry = new EObjectContainmentEList<PartialModelEntry>(PartialModelEntry.class, this, ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY); | ||
78 | } | ||
79 | return entry; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
89 | { | ||
90 | switch (featureID) | ||
91 | { | ||
92 | case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: | ||
93 | return ((InternalEList<?>)getEntry()).basicRemove(otherEnd, msgs); | ||
94 | } | ||
95 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
105 | { | ||
106 | switch (featureID) | ||
107 | { | ||
108 | case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: | ||
109 | return getEntry(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @SuppressWarnings("unchecked") | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) | ||
122 | { | ||
123 | switch (featureID) | ||
124 | { | ||
125 | case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: | ||
126 | getEntry().clear(); | ||
127 | getEntry().addAll((Collection<? extends PartialModelEntry>)newValue); | ||
128 | return; | ||
129 | } | ||
130 | super.eSet(featureID, newValue); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public void eUnset(int featureID) | ||
140 | { | ||
141 | switch (featureID) | ||
142 | { | ||
143 | case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: | ||
144 | getEntry().clear(); | ||
145 | return; | ||
146 | } | ||
147 | super.eUnset(featureID); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public boolean eIsSet(int featureID) | ||
157 | { | ||
158 | switch (featureID) | ||
159 | { | ||
160 | case ApplicationConfigurationPackage.PARTIAL_MODEL_SPECIFICATION__ENTRY: | ||
161 | return entry != null && !entry.isEmpty(); | ||
162 | } | ||
163 | return super.eIsSet(featureID); | ||
164 | } | ||
165 | |||
166 | } //PartialModelSpecificationImpl | ||