Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to create a Template Class with Papyrus
How to create a Template Class with Papyrus [message #1008659] Wed, 13 February 2013 13:20
Jonathan Fernandez is currently offline Jonathan FernandezFriend
Messages: 4
Registered: February 2013
Junior Member
Hi,

I am currently using Papyrus 0.9.1 with Juno to edit UML models for an application.
I would like to create a Template Class, which would contain an attribute of an unknown Type.

Something close to the example on this web page :
www.uml-diagrams.org/template.html
(An Array Class, of a gerenic Type of element).

I have found on the (outdated) PapyrusUML web site, a tutorial to do Templates, but it seems it's not quite what I want to do. Since it explains how to create Generic Packages with templates, whereas I just want to parameterize a class with a generic type :
www.papyrusuml.org/scripts/home/publigen/content/templates/show.asp?P=144&L=EN


So far, I have created a class, and applied a "Redefinable Template Signature" to it
(it seems to be the only template-related thing available on a class).
But there I'm stuck, I don't know how to create an attribute with a template type.

Thank you for your help,

Jonathan.

[Updated on: Thu, 14 February 2013 14:45]

Report message to a moderator

Previous Topic:Showing/hiding "visibility" of parameters in operation
Next Topic:Reverse engineering from java code
Goto Forum:
  


Current Time: Fri Mar 29 08:24:22 GMT 2024

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

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

Back to the top