[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Enum modelisation in ecore
|
Hi,
I would like to model an enum with a different pattern than the one provided
by default. My Java classes should look like this:
public enum Type
{
TYPEA(1);
TYPEB(2);
...
int getValue();
}
public enum MyEnum
{
VALUE1(1, Type.TYPEA);
VALUE2(2, Type.TYPEB);
...
VALUEN(N, Type.TYPEA);
public int getValue();
public Type getType();
}
How should I model my ecore to generate this code?
Thanks,
David