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