Vehicleenum属性を持つEclassがありますBreakType breakType。
BreakType次と同じEcoreモデルで定義されています。
BreakType{
DRUM(0), DISC(1), BLADE(2)
}
breakType属性のデフォルトをnullに設定したい。breakTypeそのために、属性->に次のプロパティを設定しました
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.
gen-modelとそれからコードを生成した後に私が得ているのは
BreakType breakType = DRUM // attribute set with default value
デフォルトでnullに設定するにはどうすればよいですか?