attribute dependencies [message #556688] |
Thu, 02 September 2010 10:46 |
Santhosh Injineri Messages: 4 Registered: August 2010 |
Junior Member |
|
|
Hello Friends,
I am new to EMF and I am using Ecore model to generate the code ... My requirement is as follows
2 classes classA and classB.
Attributes in ClassA is -> nameA:EString , typeA:EString
Attribute in ClassB is -> nameB:EString , typeB:nameA
I want Attribute typeB in ClassB should depend on value held by Attr nameA.
For Example1:
nameA=Pressure , typeA:Int
nameB=HighPressure, typeB=Pressure
Example2:
nameA=Switch, typeA:ON,OFF
nameB=TwoWaySwitch, typeB=Switch
Is it possible to show in UML diagram (ECoreDiagram)or do i need to go for Annoted Java?? Please share some snippet of code if you have done anything like this before...
[Updated on: Thu, 02 September 2010 10:47] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03062 seconds