diff options
author | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2018-01-13 19:33:26 +0100 |
---|---|---|
committer | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2018-01-13 19:33:26 +0100 |
commit | 7e50434905cbb7f5d03636033b698e17a9075e9d (patch) | |
tree | 10e0968c20ac55dae4f5dc6077f39cf9947e3cb9 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java | |
parent | Test and measurement runners (diff) | |
download | VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.gz VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.zst VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.zip |
Initial commit of the configuration language and application
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.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/MetamodelSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java new file mode 100644 index 00000000..36a86f81 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.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.MetamodelEntry; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; | ||
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>Metamodel 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.MetamodelSpecificationImpl#getEntries <em>Entries</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class MetamodelSpecificationImpl extends MetamodelImpl implements MetamodelSpecification | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getEntries() <em>Entries</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getEntries() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<MetamodelEntry> entries; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected MetamodelSpecificationImpl() | ||
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.METAMODEL_SPECIFICATION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | public EList<MetamodelEntry> getEntries() | ||
74 | { | ||
75 | if (entries == null) | ||
76 | { | ||
77 | entries = new EObjectContainmentEList<MetamodelEntry>(MetamodelEntry.class, this, ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES); | ||
78 | } | ||
79 | return entries; | ||
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.METAMODEL_SPECIFICATION__ENTRIES: | ||
93 | return ((InternalEList<?>)getEntries()).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.METAMODEL_SPECIFICATION__ENTRIES: | ||
109 | return getEntries(); | ||
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.METAMODEL_SPECIFICATION__ENTRIES: | ||
126 | getEntries().clear(); | ||
127 | getEntries().addAll((Collection<? extends MetamodelEntry>)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.METAMODEL_SPECIFICATION__ENTRIES: | ||
144 | getEntries().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.METAMODEL_SPECIFICATION__ENTRIES: | ||
161 | return entries != null && !entries.isEmpty(); | ||
162 | } | ||
163 | return super.eIsSet(featureID); | ||
164 | } | ||
165 | |||
166 | } //MetamodelSpecificationImpl | ||