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