diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/yakindu/sgraph/yakindumm/impl/EntryImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/yakindu/sgraph/yakindumm/impl/EntryImpl.java | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/yakindu/sgraph/yakindumm/impl/EntryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/yakindu/sgraph/yakindumm/impl/EntryImpl.java index 35003e0d..27041630 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/yakindu/sgraph/yakindumm/impl/EntryImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/yakindu/sgraph/yakindumm/impl/EntryImpl.java | |||
@@ -3,19 +3,47 @@ | |||
3 | package hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.impl; | 3 | package hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.impl; |
4 | 4 | ||
5 | import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Entry; | 5 | import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Entry; |
6 | import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.EntryType; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.YakindummPackage; | 7 | import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.YakindummPackage; |
7 | 8 | ||
9 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.ecore.EClass; | 10 | import org.eclipse.emf.ecore.EClass; |
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
9 | 12 | ||
10 | /** | 13 | /** |
11 | * <!-- begin-user-doc --> | 14 | * <!-- begin-user-doc --> |
12 | * An implementation of the model object '<em><b>Entry</b></em>'. | 15 | * An implementation of the model object '<em><b>Entry</b></em>'. |
13 | * <!-- end-user-doc --> | 16 | * <!-- end-user-doc --> |
17 | * <p> | ||
18 | * The following features are implemented: | ||
19 | * </p> | ||
20 | * <ul> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.impl.EntryImpl#getType <em>Type</em>}</li> | ||
22 | * </ul> | ||
14 | * | 23 | * |
15 | * @generated | 24 | * @generated |
16 | */ | 25 | */ |
17 | public class EntryImpl extends PseudostateImpl implements Entry { | 26 | public class EntryImpl extends PseudostateImpl implements Entry { |
18 | /** | 27 | /** |
28 | * The default value of the '{@link #getType() <em>Type</em>}' attribute. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @see #getType() | ||
32 | * @generated | ||
33 | * @ordered | ||
34 | */ | ||
35 | protected static final EntryType TYPE_EDEFAULT = EntryType.NORMAL; | ||
36 | /** | ||
37 | * The cached value of the '{@link #getType() <em>Type</em>}' attribute. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getType() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected EntryType type = TYPE_EDEFAULT; | ||
45 | |||
46 | /** | ||
19 | * <!-- begin-user-doc --> | 47 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 48 | * <!-- end-user-doc --> |
21 | * @generated | 49 | * @generated |
@@ -34,4 +62,99 @@ public class EntryImpl extends PseudostateImpl implements Entry { | |||
34 | return YakindummPackage.Literals.ENTRY; | 62 | return YakindummPackage.Literals.ENTRY; |
35 | } | 63 | } |
36 | 64 | ||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | public EntryType getType() { | ||
71 | return type; | ||
72 | } | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | public void setType(EntryType newType) { | ||
80 | EntryType oldType = type; | ||
81 | type = newType == null ? TYPE_EDEFAULT : newType; | ||
82 | if (eNotificationRequired()) | ||
83 | eNotify(new ENotificationImpl(this, Notification.SET, YakindummPackage.ENTRY__TYPE, oldType, type)); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
93 | switch (featureID) { | ||
94 | case YakindummPackage.ENTRY__TYPE: | ||
95 | return getType(); | ||
96 | } | ||
97 | return super.eGet(featureID, resolve, coreType); | ||
98 | } | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | @Override | ||
106 | public void eSet(int featureID, Object newValue) { | ||
107 | switch (featureID) { | ||
108 | case YakindummPackage.ENTRY__TYPE: | ||
109 | setType((EntryType)newValue); | ||
110 | return; | ||
111 | } | ||
112 | super.eSet(featureID, newValue); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public void eUnset(int featureID) { | ||
122 | switch (featureID) { | ||
123 | case YakindummPackage.ENTRY__TYPE: | ||
124 | setType(TYPE_EDEFAULT); | ||
125 | return; | ||
126 | } | ||
127 | super.eUnset(featureID); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public boolean eIsSet(int featureID) { | ||
137 | switch (featureID) { | ||
138 | case YakindummPackage.ENTRY__TYPE: | ||
139 | return type != TYPE_EDEFAULT; | ||
140 | } | ||
141 | return super.eIsSet(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public String toString() { | ||
151 | if (eIsProxy()) return super.toString(); | ||
152 | |||
153 | StringBuilder result = new StringBuilder(super.toString()); | ||
154 | result.append(" (Type: "); | ||
155 | result.append(type); | ||
156 | result.append(')'); | ||
157 | return result.toString(); | ||
158 | } | ||
159 | |||
37 | } //EntryImpl | 160 | } //EntryImpl |