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