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