diff options
author | 2017-08-15 02:23:16 +0200 | |
---|---|---|
committer | 2017-08-15 02:23:16 +0200 | |
commit | 5eb3ac012590b76ed02d87a6eba1c3a9edcbb9af (patch) | |
tree | ebd95839c8ba70e177aa1ce7a4dc53f46e037605 /Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/BooleanElementImpl.java | |
parent | Added primitive types to the model code (diff) | |
download | VIATRA-Generator-5eb3ac012590b76ed02d87a6eba1c3a9edcbb9af.tar.gz VIATRA-Generator-5eb3ac012590b76ed02d87a6eba1c3a9edcbb9af.tar.zst VIATRA-Generator-5eb3ac012590b76ed02d87a6eba1c3a9edcbb9af.zip |
Primitive elements in the partial interpretation
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/BooleanElementImpl.java')
1 files changed, 162 insertions, 0 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/BooleanElementImpl.java b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/BooleanElementImpl.java new file mode 100644 index 00000000..e906e07d --- /dev/null +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/BooleanElementImpl.java | |||
@@ -0,0 +1,162 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.BooleanElement; | ||
6 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EClass; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | |||
14 | /** | ||
15 | * <!-- begin-user-doc --> | ||
16 | * An implementation of the model object '<em><b>Boolean Element</b></em>'. | ||
17 | * <!-- end-user-doc --> | ||
18 | * <p> | ||
19 | * The following features are implemented: | ||
20 | * </p> | ||
21 | * <ul> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.BooleanElementImpl#isValue <em>Value</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @generated | ||
26 | */ | ||
27 | public class BooleanElementImpl extends PrimitiveElementImpl implements BooleanElement { | ||
28 | /** | ||
29 | * The default value of the '{@link #isValue() <em>Value</em>}' attribute. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @see #isValue() | ||
33 | * @generated | ||
34 | * @ordered | ||
35 | */ | ||
36 | protected static final boolean VALUE_EDEFAULT = false; | ||
37 | |||
38 | /** | ||
39 | * The cached value of the '{@link #isValue() <em>Value</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #isValue() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected boolean value = VALUE_EDEFAULT; | ||
47 | |||
48 | /** | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | protected BooleanElementImpl() { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() { | ||
64 | return PartialinterpretationPackage.Literals.BOOLEAN_ELEMENT; | ||
65 | } | ||
66 | |||
67 | /** | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @generated | ||
71 | */ | ||
72 | public boolean isValue() { | ||
73 | return value; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | public void setValue(boolean newValue) { | ||
82 | boolean oldValue = value; | ||
83 | value = newValue; | ||
84 | if (eNotificationRequired()) | ||
85 | eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.BOOLEAN_ELEMENT__VALUE, oldValue, value)); | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | @Override | ||
94 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
95 | switch (featureID) { | ||
96 | case PartialinterpretationPackage.BOOLEAN_ELEMENT__VALUE: | ||
97 | return isValue(); | ||
98 | } | ||
99 | return super.eGet(featureID, resolve, coreType); | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | @Override | ||
108 | public void eSet(int featureID, Object newValue) { | ||
109 | switch (featureID) { | ||
110 | case PartialinterpretationPackage.BOOLEAN_ELEMENT__VALUE: | ||
111 | setValue((Boolean)newValue); | ||
112 | return; | ||
113 | } | ||
114 | super.eSet(featureID, newValue); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public void eUnset(int featureID) { | ||
124 | switch (featureID) { | ||
125 | case PartialinterpretationPackage.BOOLEAN_ELEMENT__VALUE: | ||
126 | setValue(VALUE_EDEFAULT); | ||
127 | return; | ||
128 | } | ||
129 | super.eUnset(featureID); | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public boolean eIsSet(int featureID) { | ||
139 | switch (featureID) { | ||
140 | case PartialinterpretationPackage.BOOLEAN_ELEMENT__VALUE: | ||
141 | return value != VALUE_EDEFAULT; | ||
142 | } | ||
143 | return super.eIsSet(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public String toString() { | ||
153 | if (eIsProxy()) return super.toString(); | ||
154 | |||
155 | StringBuffer result = new StringBuffer(super.toString()); | ||
156 | result.append(" (value: "); | ||
157 | result.append(value); | ||
158 | result.append(')'); | ||
159 | return result.toString(); | ||
160 | } | ||
161 | |||
162 | } //BooleanElementImpl | ||