Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Property Template Parameters
Property Template Parameters [message #468513] Wed, 17 January 2007 21:07 Go to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Create TemplateParameter with Property named A and with type Integer as a
ParameteredElement. According to specification, the TemplateParameter has "A
: Property", not "A : Integer" notation. Tell me am I right or wrong?



See UML2 06-04-02, Templates Section, p.675

"The general notation for a template parameter is a string displayed within
the template parameter list for the template:

<template-parameter> ::= <template-param-name> [':' <parameter-kind> ] ['='
<default>]

where <parameter-kind> is the name of the metaclass for the exposed element.
The syntax of <template-param-name> depends on the kind of
parameteredElement for this template parameter substitution and of <default>
depends upon the kind of element. See "ParameterableElement (from
Templates)" on page 647 (and its subclasses)."



Thank you,

Tatiana.
Re: Property Template Parameters [message #468515 is a reply to message #468513] Thu, 18 January 2007 14:22 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Tatiana,

I guess the relevant point is that you have a template parameter with a
parameterable element named "A" of type Integer.

In that case I would expect to see "A : LiteralInteger" as the name of the
template parameter.

If you had a default value of 0 for instance ... I would expect "A :
LiteralInteger = 0"

If "A" was a Class I would expect... "A : Class"


Regards,

- James.




A :
"Tatiana Fesenko" <tatiana.fesenko@borland.com> wrote in message
news:eom35m$21f$1@utils.eclipse.org...
> Create TemplateParameter with Property named A and with type Integer as a
> ParameteredElement. According to specification, the TemplateParameter has
"A
> : Property", not "A : Integer" notation. Tell me am I right or wrong?
>
>
>
> See UML2 06-04-02, Templates Section, p.675
>
> "The general notation for a template parameter is a string displayed
within
> the template parameter list for the template:
>
> <template-parameter> ::= <template-param-name> [':' <parameter-kind> ]
['='
> <default>]
>
> where <parameter-kind> is the name of the metaclass for the exposed
element.
> The syntax of <template-param-name> depends on the kind of
> parameteredElement for this template parameter substitution and of
<default>
> depends upon the kind of element. See "ParameterableElement (from
> Templates)" on page 647 (and its subclasses)."
>
>
>
> Thank you,
>
> Tatiana.
>
>
Re: Property Template Parameters [message #572141 is a reply to message #468513] Thu, 18 January 2007 14:22 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Tatiana,

I guess the relevant point is that you have a template parameter with a
parameterable element named "A" of type Integer.

In that case I would expect to see "A : LiteralInteger" as the name of the
template parameter.

If you had a default value of 0 for instance ... I would expect "A :
LiteralInteger = 0"

If "A" was a Class I would expect... "A : Class"


Regards,

- James.




A :
"Tatiana Fesenko" <tatiana.fesenko@borland.com> wrote in message
news:eom35m$21f$1@utils.eclipse.org...
> Create TemplateParameter with Property named A and with type Integer as a
> ParameteredElement. According to specification, the TemplateParameter has
"A
> : Property", not "A : Integer" notation. Tell me am I right or wrong?
>
>
>
> See UML2 06-04-02, Templates Section, p.675
>
> "The general notation for a template parameter is a string displayed
within
> the template parameter list for the template:
>
> <template-parameter> ::= <template-param-name> [':' <parameter-kind> ]
['='
> <default>]
>
> where <parameter-kind> is the name of the metaclass for the exposed
element.
> The syntax of <template-param-name> depends on the kind of
> parameteredElement for this template parameter substitution and of
<default>
> depends upon the kind of element. See "ParameterableElement (from
> Templates)" on page 647 (and its subclasses)."
>
>
>
> Thank you,
>
> Tatiana.
>
>
Previous Topic:Property Template Parameters
Next Topic:Stereotypes are lost when model is saved
Goto Forum:
  


Current Time: Thu Apr 25 06:15:47 GMT 2024

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

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

Back to the top