diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java new file mode 100644 index 00000000..2ae968a1 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveSpecificationImpl.java | |||
@@ -0,0 +1,167 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.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.ObjectiveEntry; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveSpecification; | ||
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>Objective 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.ObjectiveSpecificationImpl#getEntries <em>Entries</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class ObjectiveSpecificationImpl extends ObjectiveImpl implements ObjectiveSpecification | ||
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<ObjectiveEntry> entries; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected ObjectiveSpecificationImpl() | ||
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.OBJECTIVE_SPECIFICATION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | @Override | ||
74 | public EList<ObjectiveEntry> getEntries() | ||
75 | { | ||
76 | if (entries == null) | ||
77 | { | ||
78 | entries = new EObjectContainmentEList<ObjectiveEntry>(ObjectiveEntry.class, this, ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES); | ||
79 | } | ||
80 | return entries; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
90 | { | ||
91 | switch (featureID) | ||
92 | { | ||
93 | case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: | ||
94 | return ((InternalEList<?>)getEntries()).basicRemove(otherEnd, msgs); | ||
95 | } | ||
96 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
106 | { | ||
107 | switch (featureID) | ||
108 | { | ||
109 | case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: | ||
110 | return getEntries(); | ||
111 | } | ||
112 | return super.eGet(featureID, resolve, coreType); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @SuppressWarnings("unchecked") | ||
121 | @Override | ||
122 | public void eSet(int featureID, Object newValue) | ||
123 | { | ||
124 | switch (featureID) | ||
125 | { | ||
126 | case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: | ||
127 | getEntries().clear(); | ||
128 | getEntries().addAll((Collection<? extends ObjectiveEntry>)newValue); | ||
129 | return; | ||
130 | } | ||
131 | super.eSet(featureID, newValue); | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | @Override | ||
140 | public void eUnset(int featureID) | ||
141 | { | ||
142 | switch (featureID) | ||
143 | { | ||
144 | case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: | ||
145 | getEntries().clear(); | ||
146 | return; | ||
147 | } | ||
148 | super.eUnset(featureID); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public boolean eIsSet(int featureID) | ||
158 | { | ||
159 | switch (featureID) | ||
160 | { | ||
161 | case ApplicationConfigurationPackage.OBJECTIVE_SPECIFICATION__ENTRIES: | ||
162 | return entries != null && !entries.isEmpty(); | ||
163 | } | ||
164 | return super.eIsSet(featureID); | ||
165 | } | ||
166 | |||
167 | } //ObjectiveSpecificationImpl | ||