diff options
author | OszkarSemerath <oszkar.semerath@gmail.com> | 2018-03-24 22:08:23 -0400 |
---|---|---|
committer | OszkarSemerath <oszkar.semerath@gmail.com> | 2018-03-24 22:08:23 -0400 |
commit | dbbf707d78c76f4bc001d7df2418bd6ceab12db3 (patch) | |
tree | 08739c6d7739bc4fa404a9c850f98bef9ea994e7 /Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java | |
parent | upgraded attribute support for the graph solver (diff) | |
download | VIATRA-Generator-dbbf707d78c76f4bc001d7df2418bd6ceab12db3.tar.gz VIATRA-Generator-dbbf707d78c76f4bc001d7df2418bd6ceab12db3.tar.zst VIATRA-Generator-dbbf707d78c76f4bc001d7df2418bd6ceab12db3.zip |
example projects added
Diffstat (limited to 'Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java')
-rw-r--r-- | Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java new file mode 100644 index 00000000..46736c8c --- /dev/null +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionImpl.java | |||
@@ -0,0 +1,191 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package functionalarchitecture.impl; | ||
4 | |||
5 | import functionalarchitecture.Function; | ||
6 | import functionalarchitecture.FunctionType; | ||
7 | import functionalarchitecture.FunctionalElement; | ||
8 | import functionalarchitecture.FunctionalarchitecturePackage; | ||
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.EStructuralFeature; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; | ||
21 | import org.eclipse.emf.ecore.util.InternalEList; | ||
22 | |||
23 | /** | ||
24 | * <!-- begin-user-doc --> | ||
25 | * An implementation of the model object '<em><b>Function</b></em>'. | ||
26 | * <!-- end-user-doc --> | ||
27 | * <p> | ||
28 | * The following features are implemented: | ||
29 | * </p> | ||
30 | * <ul> | ||
31 | * <li>{@link functionalarchitecture.impl.FunctionImpl#getSubElements <em>Sub Elements</em>}</li> | ||
32 | * <li>{@link functionalarchitecture.impl.FunctionImpl#getType <em>Type</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class FunctionImpl extends FunctionalElementImpl implements Function { | ||
38 | /** | ||
39 | * The cached value of the '{@link #getSubElements() <em>Sub Elements</em>}' containment reference list. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getSubElements() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected EList<FunctionalElement> subElements; | ||
47 | |||
48 | /** | ||
49 | * The cached setting delegate for the '{@link #getType() <em>Type</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #getType() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected EStructuralFeature.Internal.SettingDelegate TYPE__ESETTING_DELEGATE = ((EStructuralFeature.Internal)FunctionalarchitecturePackage.Literals.FUNCTION__TYPE).getSettingDelegate(); | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | protected FunctionImpl() { | ||
64 | super(); | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | @Override | ||
73 | protected EClass eStaticClass() { | ||
74 | return FunctionalarchitecturePackage.Literals.FUNCTION; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | public EList<FunctionalElement> getSubElements() { | ||
83 | if (subElements == null) { | ||
84 | subElements = new EObjectContainmentWithInverseEList<FunctionalElement>(FunctionalElement.class, this, FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS, FunctionalarchitecturePackage.FUNCTIONAL_ELEMENT__PARENT); | ||
85 | } | ||
86 | return subElements; | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | public FunctionType getType() { | ||
95 | return (FunctionType)TYPE__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @SuppressWarnings("unchecked") | ||
104 | @Override | ||
105 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
106 | switch (featureID) { | ||
107 | case FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS: | ||
108 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getSubElements()).basicAdd(otherEnd, msgs); | ||
109 | } | ||
110 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
120 | switch (featureID) { | ||
121 | case FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS: | ||
122 | return ((InternalEList<?>)getSubElements()).basicRemove(otherEnd, msgs); | ||
123 | } | ||
124 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
134 | switch (featureID) { | ||
135 | case FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS: | ||
136 | return getSubElements(); | ||
137 | case FunctionalarchitecturePackage.FUNCTION__TYPE: | ||
138 | return getType(); | ||
139 | } | ||
140 | return super.eGet(featureID, resolve, coreType); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @SuppressWarnings("unchecked") | ||
149 | @Override | ||
150 | public void eSet(int featureID, Object newValue) { | ||
151 | switch (featureID) { | ||
152 | case FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS: | ||
153 | getSubElements().clear(); | ||
154 | getSubElements().addAll((Collection<? extends FunctionalElement>)newValue); | ||
155 | return; | ||
156 | } | ||
157 | super.eSet(featureID, newValue); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public void eUnset(int featureID) { | ||
167 | switch (featureID) { | ||
168 | case FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS: | ||
169 | getSubElements().clear(); | ||
170 | return; | ||
171 | } | ||
172 | super.eUnset(featureID); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public boolean eIsSet(int featureID) { | ||
182 | switch (featureID) { | ||
183 | case FunctionalarchitecturePackage.FUNCTION__SUB_ELEMENTS: | ||
184 | return subElements != null && !subElements.isEmpty(); | ||
185 | case FunctionalarchitecturePackage.FUNCTION__TYPE: | ||
186 | return TYPE__ESETTING_DELEGATE.dynamicIsSet(this, null, 0); | ||
187 | } | ||
188 | return super.eIsSet(featureID); | ||
189 | } | ||
190 | |||
191 | } //FunctionImpl | ||