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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -