diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java index a2124cde..8057f523 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java | |||
@@ -6,18 +6,48 @@ package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | 6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; |
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; | 7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; |
8 | 8 | ||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
9 | import org.eclipse.emf.ecore.EClass; | 11 | import org.eclipse.emf.ecore.EClass; |
10 | 12 | ||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
11 | /** | 15 | /** |
12 | * <!-- begin-user-doc --> | 16 | * <!-- begin-user-doc --> |
13 | * An implementation of the model object '<em><b>Declaration</b></em>'. | 17 | * An implementation of the model object '<em><b>Declaration</b></em>'. |
14 | * <!-- end-user-doc --> | 18 | * <!-- end-user-doc --> |
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DeclarationImpl#getName <em>Name</em>}</li> | ||
24 | * </ul> | ||
15 | * | 25 | * |
16 | * @generated | 26 | * @generated |
17 | */ | 27 | */ |
18 | public class DeclarationImpl extends CommandImpl implements Declaration | 28 | public class DeclarationImpl extends CommandImpl implements Declaration |
19 | { | 29 | { |
20 | /** | 30 | /** |
31 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getName() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final String NAME_EDEFAULT = null; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getName() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected String name = NAME_EDEFAULT; | ||
49 | |||
50 | /** | ||
21 | * <!-- begin-user-doc --> | 51 | * <!-- begin-user-doc --> |
22 | * <!-- end-user-doc --> | 52 | * <!-- end-user-doc --> |
23 | * @generated | 53 | * @generated |
@@ -38,4 +68,110 @@ public class DeclarationImpl extends CommandImpl implements Declaration | |||
38 | return ApplicationConfigurationPackage.Literals.DECLARATION; | 68 | return ApplicationConfigurationPackage.Literals.DECLARATION; |
39 | } | 69 | } |
40 | 70 | ||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public String getName() | ||
77 | { | ||
78 | return name; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | public void setName(String newName) | ||
87 | { | ||
88 | String oldName = name; | ||
89 | name = newName; | ||
90 | if (eNotificationRequired()) | ||
91 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.DECLARATION__NAME, oldName, name)); | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
101 | { | ||
102 | switch (featureID) | ||
103 | { | ||
104 | case ApplicationConfigurationPackage.DECLARATION__NAME: | ||
105 | return getName(); | ||
106 | } | ||
107 | return super.eGet(featureID, resolve, coreType); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public void eSet(int featureID, Object newValue) | ||
117 | { | ||
118 | switch (featureID) | ||
119 | { | ||
120 | case ApplicationConfigurationPackage.DECLARATION__NAME: | ||
121 | setName((String)newValue); | ||
122 | return; | ||
123 | } | ||
124 | super.eSet(featureID, newValue); | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public void eUnset(int featureID) | ||
134 | { | ||
135 | switch (featureID) | ||
136 | { | ||
137 | case ApplicationConfigurationPackage.DECLARATION__NAME: | ||
138 | setName(NAME_EDEFAULT); | ||
139 | return; | ||
140 | } | ||
141 | super.eUnset(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public boolean eIsSet(int featureID) | ||
151 | { | ||
152 | switch (featureID) | ||
153 | { | ||
154 | case ApplicationConfigurationPackage.DECLARATION__NAME: | ||
155 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
156 | } | ||
157 | return super.eIsSet(featureID); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public String toString() | ||
167 | { | ||
168 | if (eIsProxy()) return super.toString(); | ||
169 | |||
170 | StringBuffer result = new StringBuffer(super.toString()); | ||
171 | result.append(" (name: "); | ||
172 | result.append(name); | ||
173 | result.append(')'); | ||
174 | return result.toString(); | ||
175 | } | ||
176 | |||
41 | } //DeclarationImpl | 177 | } //DeclarationImpl |