Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [ACCELO] Associations and attributes
[ACCELO] Associations and attributes [message #685284] Fri, 17 June 2011 03:30
Eclipse UserFriend
See the attached picture of a UML model. The mtl

// Associations:
[for (p : Property | c.getAssociations().memberEnd)]
// - [p.name/]
[/for]
// Attributes:
[for (p : Property | c.getAllAttributes())]
// - [p.name/]
[/for]

"renders"

for A:
// Associations:
// - a2
// - c
// - a1
// - a
// Attributes:
// - x

for B:
// Associations:
// Attributes:
// - x

for C:
// Associations:
// - c
// - a
// Attributes:


How should I change mtl to make it "render"
- only the other end of associations and
- only the declared attributes, not the inherited ones
? In other words:

for A:
// Associations:
// - a2
// - c
// - a1
// Attributes:
// - x

for B:
// Associations:
// Attributes:

for C:
// Associations:
// - a
// Attributes:

Regards,

Harri
  • Attachment: uml.png
    (Size: 1.92KB, Downloaded 251 times)
Previous Topic:[ACCELEO] module UML 2.1 To PHP in acceleo 3.0
Next Topic:xPand strange Problem
Goto Forum:
  


Current Time: Sun Jul 06 09:11:01 EDT 2025

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

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

Back to the top