Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » attribute dependencies(Attribute Dependency in attributes belonging to different classes)
attribute dependencies [message #556688] Thu, 02 September 2010 10:46
Santhosh Injineri is currently offline Santhosh InjineriFriend
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

Previous Topic:Example of EMF-EclipseLink integration
Next Topic:Create a snapshot of ResourceSet
Goto Forum:
  


Current Time: Tue Sep 18 19:44:17 GMT 2018

Powered by FUDForum. Page generated in 0.01262 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top