[Feature] Handle correctly <cims:stereotype rdf:resource="http://iec.ch/TC57/NonStandard/UML#enumeration"/>
classes as Enum and <cims:stereotype>CIMDatatype</cims:stereotype>
as a type annotation
#9
Labels
feature
This issue/PR relates to a feature request.
Is your feature request related to a problem? Please describe the problem.
The current models get generated as follows, for example:
First, CurrentFlow is dataType, so generating a class that then is never used by actual cim classes is not much of use. This should become an annotation to the field of related classes, making easier validation, serialisation, ect.
Secondly, in the RDF schema is well defined
CurrentFlow
unit isA
, while the generated class allows for every string (not even a string in a range):Thirdly, it does not make sense that we generate a class for
UnitSymbol
:when it is an Enum with well defined values.
Describe the solution you'd like
Generate UnitSymbol and other
<cims:stereotype rdf:resource="http://iec.ch/TC57/NonStandard/UML#enumeration"/>
Create datatypes and annotate them in models.
Additional context
Example of what could look like a generated
CurrentFlow
in the new way:The text was updated successfully, but these errors were encountered: