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