eclipse emf - How to define a direct association? -


according code below, please tell me how (and if possible to) refer array defined inside class computationunit class service?

class computationunit {     contains method[1..*] methods  }  class method {     string name     string signature     object sourcecode     contains parameter[1..*] parameters }  class servic e {     contains comment comment     contains parameter[1..*] parameters     contains contract[0..*] contracts     refers method[] methods //how can refer array defined inside computationunit class? } 

you can't. doesn't make sense. there isn't 1 array defined inside computationunit class, there's array defined inside each instance of computationunit. instance want?

instead, should write:

refers computationunit unit 

and access array needed reference unit.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -