Commit 842deb1a authored by Kai-Holger Brassel's avatar Kai-Holger Brassel
Browse files

Custom conversion methods between String and Quantities were missing

parent 136d6224
Pipeline #2230 passed with stage
in 3 minutes and 22 seconds
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<foreignModel>Quantities.ecore</foreignModel> <foreignModel>Quantities.ecore</foreignModel>
<genPackages prefix="Quantities" basePackage="de.hftstuttgart.cityunits.model" disposableProviderFactory="true" <genPackages prefix="Quantities" basePackage="de.hftstuttgart.cityunits.model" disposableProviderFactory="true"
ecorePackage="Quantities.ecore#/"> ecorePackage="Quantities.ecore#/">
<genDataTypes ecoreDataType="Quantities.ecore#//QuantityDouble"/> <genDataTypes ecoreDataType="Quantities.ecore#//QuantityDouble" create="return de.hftstuttgart.units.NullableQuantity.create(it);"
<genDataTypes ecoreDataType="Quantities.ecore#//QuantityLong"/> convert="return it == null ? null : it.toString();"/>
<genDataTypes ecoreDataType="Quantities.ecore#//QuantityLong" create="return de.hftstuttgart.units.NullableQuantity.create(it);"
convert="return it == null ? null : it.toString();"/>
</genPackages> </genPackages>
</genmodel:GenModel> </genmodel:GenModel>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment