|
1 | 1 | package com.regnosys.rosetta.interpreternew.values;
|
2 | 2 |
|
3 |
| -import java.lang.reflect.InvocationTargetException; |
4 | 3 | import java.util.List;
|
5 | 4 | import java.util.stream.Collectors;
|
6 | 5 | import java.util.stream.Stream;
|
7 | 6 |
|
8 |
| -import org.eclipse.emf.common.notify.Adapter; |
9 |
| -import org.eclipse.emf.common.notify.Notification; |
10 |
| -import org.eclipse.emf.common.util.EList; |
11 |
| -import org.eclipse.emf.common.util.TreeIterator; |
12 |
| -import org.eclipse.emf.ecore.EClass; |
13 |
| -import org.eclipse.emf.ecore.EObject; |
14 |
| -import org.eclipse.emf.ecore.EOperation; |
15 |
| -import org.eclipse.emf.ecore.EReference; |
16 |
| -import org.eclipse.emf.ecore.EStructuralFeature; |
17 |
| -import org.eclipse.emf.ecore.resource.Resource; |
| 7 | +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
18 | 8 | import com.regnosys.rosetta.interpreternew.RosettaInterpreterNewException;
|
19 | 9 | import com.regnosys.rosetta.rosetta.interpreter.RosettaInterpreterValue;
|
20 | 10 |
|
21 |
| -public abstract class RosettaInterpreterBaseValue implements RosettaInterpreterValue { |
| 11 | +public abstract class RosettaInterpreterBaseValue extends MinimalEObjectImpl implements RosettaInterpreterValue { |
22 | 12 |
|
23 | 13 | /**
|
24 | 14 | * Converts a Value to a Stream of the elements it contains.
|
@@ -72,127 +62,11 @@ public static Stream<RosettaInterpreterValue> valueStream(RosettaInterpreterValu
|
72 | 62 | * @param val - value to convert
|
73 | 63 | * @return - list of value or its contained values
|
74 | 64 | */
|
75 |
| - public static List<RosettaInterpreterValue> toValueList(RosettaInterpreterValue val){ |
| 65 | + public static List<RosettaInterpreterValue> toValueList(RosettaInterpreterValue val) { |
76 | 66 | if (!(val instanceof RosettaInterpreterBaseValue)) {
|
77 | 67 | throw new RosettaInterpreterNewException("Cannot take value stream"
|
78 | 68 | + "of RosettaInterpreterValue");
|
79 | 69 | }
|
80 | 70 | return valueStream(val).collect(Collectors.toList());
|
81 | 71 | }
|
82 |
| - |
83 |
| - @Override |
84 |
| - public EClass eClass() { |
85 |
| - // TODO Auto-generated method stub |
86 |
| - return null; |
87 |
| - } |
88 |
| - |
89 |
| - @Override |
90 |
| - public Resource eResource() { |
91 |
| - // TODO Auto-generated method stub |
92 |
| - return null; |
93 |
| - } |
94 |
| - |
95 |
| - @Override |
96 |
| - public EObject eContainer() { |
97 |
| - // TODO Auto-generated method stub |
98 |
| - return null; |
99 |
| - } |
100 |
| - |
101 |
| - @Override |
102 |
| - public EStructuralFeature eContainingFeature() { |
103 |
| - // TODO Auto-generated method stub |
104 |
| - return null; |
105 |
| - } |
106 |
| - |
107 |
| - @Override |
108 |
| - public EReference eContainmentFeature() { |
109 |
| - // TODO Auto-generated method stub |
110 |
| - return null; |
111 |
| - } |
112 |
| - |
113 |
| - @Override |
114 |
| - public EList<EObject> eContents() { |
115 |
| - // TODO Auto-generated method stub |
116 |
| - return null; |
117 |
| - } |
118 |
| - |
119 |
| - @Override |
120 |
| - public TreeIterator<EObject> eAllContents() { |
121 |
| - // TODO Auto-generated method stub |
122 |
| - return null; |
123 |
| - } |
124 |
| - |
125 |
| - @Override |
126 |
| - public boolean eIsProxy() { |
127 |
| - // TODO Auto-generated method stub |
128 |
| - return false; |
129 |
| - } |
130 |
| - |
131 |
| - @Override |
132 |
| - public EList<EObject> eCrossReferences() { |
133 |
| - // TODO Auto-generated method stub |
134 |
| - return null; |
135 |
| - } |
136 |
| - |
137 |
| - @Override |
138 |
| - public Object eGet(EStructuralFeature feature) { |
139 |
| - // TODO Auto-generated method stub |
140 |
| - return null; |
141 |
| - } |
142 |
| - |
143 |
| - @Override |
144 |
| - public Object eGet(EStructuralFeature feature, boolean resolve) { |
145 |
| - // TODO Auto-generated method stub |
146 |
| - return null; |
147 |
| - } |
148 |
| - |
149 |
| - @Override |
150 |
| - public void eSet(EStructuralFeature feature, Object newValue) { |
151 |
| - // TODO Auto-generated method stub |
152 |
| - |
153 |
| - } |
154 |
| - |
155 |
| - @Override |
156 |
| - public boolean eIsSet(EStructuralFeature feature) { |
157 |
| - // TODO Auto-generated method stub |
158 |
| - return false; |
159 |
| - } |
160 |
| - |
161 |
| - @Override |
162 |
| - public void eUnset(EStructuralFeature feature) { |
163 |
| - // TODO Auto-generated method stub |
164 |
| - |
165 |
| - } |
166 |
| - |
167 |
| - @Override |
168 |
| - public Object eInvoke(EOperation operation, EList<?> arguments) |
169 |
| - throws InvocationTargetException { |
170 |
| - // TODO Auto-generated method stub |
171 |
| - return null; |
172 |
| - } |
173 |
| - |
174 |
| - @Override |
175 |
| - public EList<Adapter> eAdapters() { |
176 |
| - // TODO Auto-generated method stub |
177 |
| - return null; |
178 |
| - } |
179 |
| - |
180 |
| - @Override |
181 |
| - public boolean eDeliver() { |
182 |
| - // TODO Auto-generated method stub |
183 |
| - return false; |
184 |
| - } |
185 |
| - |
186 |
| - @Override |
187 |
| - public void eSetDeliver(boolean deliver) { |
188 |
| - // TODO Auto-generated method stub |
189 |
| - |
190 |
| - } |
191 |
| - |
192 |
| - @Override |
193 |
| - public void eNotify(Notification notification) { |
194 |
| - // TODO Auto-generated method stub |
195 |
| - |
196 |
| - } |
197 |
| - |
198 | 72 | }
|
0 commit comments