I have an Eclass Vehicle
which has an enum attribute BreakType breakType
.
BreakType
is defined in the same Ecore model as:
BreakType{
DRUM(0), DISC(1), BLADE(2)
}
I want to set attribute breakType
default to null. for that I set following properties for breakType
attribute->
DefaultLiteralValue: // it's blank
Unsettable: True
Properties of BreakType enum
Default Value : DRUM=0 // this is shown in editor UI even If i remove it from xml.
What I am getting after generating gen-model and code out of it is
BreakType breakType = DRUM // attribute set with default value
How can I set it to null, by default?