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