Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NeqModPlus
de.hft-stuttgart.cityunits
Commits
842deb1a
Commit
842deb1a
authored
Mar 14, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
de.hftstuttgart.cityunits.model/model/Quantities.genmodel
View file @
842deb1a
...
...
@@ -7,7 +7,9 @@
<foreignModel>
Quantities.ecore
</foreignModel>
<genPackages
prefix=
"Quantities"
basePackage=
"de.hftstuttgart.cityunits.model"
disposableProviderFactory=
"true"
ecorePackage=
"Quantities.ecore#/"
>
<genDataTypes
ecoreDataType=
"Quantities.ecore#//QuantityDouble"
/>
<genDataTypes
ecoreDataType=
"Quantities.ecore#//QuantityLong"
/>
<genDataTypes
ecoreDataType=
"Quantities.ecore#//QuantityDouble"
create=
"return de.hftstuttgart.units.NullableQuantity.create(it);"
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>
</genmodel:GenModel>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment