Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Class.getExtensions()?
Class.getExtensions()? [message #504190] Thu, 17 December 2009 15:53 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi all,

i've tried to get all extensions of a stereotyped class. But the list is
allways empty. The spec (v.2.2, 18.3.1, p. 656) states, that a class,
which is annotated should point to extension elements, which point to
this class.
DId i missinterprete something or is this a bug?

Thanks Timothy
Re: Class.getExtensions()? [message #504211 is a reply to message #504190] Thu, 17 December 2009 12:06 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 847
Registered: July 2009
Senior Member
--=-ydMohiTVdignCk+cO168
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Timothy,

The extensions property gives you the Extension associations (to
Stereotypes, obviously) of a *metaclass* (metaclasses being modeled as
UML Class instances).

So, for example, if your model you have any profile applications, then
the UML metamodel elements such as Actor, UseCase, and, yes, Class may
be extended by Stereotypes defined in the applied Profiles. In such
cases, the Extensions will give you those extension associations.

If you just want to find out the stereotypes applied to a model element
(perhaps a class) then just use Element::getAppliedStereotypes().

HTH,

Christian


On Thu, 2009-12-17 at 16:53 +0100, Timothy Marc wrote:

> Hi all,
>
> i've tried to get all extensions of a stereotyped class. But the list is
> allways empty. The spec (v.2.2, 18.3.1, p. 656) states, that a class,
> which is annotated should point to extension elements, which point to
> this class.
> DId i missinterprete something or is this a bug?
>
> Thanks Timothy

--=-ydMohiTVdignCk+cO168
Content-Type: text/html; charset="utf-8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, Timothy,<BR>
<BR>
The extensions property gives you the Extension associations (to Stereotypes, obviously) of a *metaclass* (metaclasses being modeled as UML Class instances).<BR>
<BR>
So, for example, if your model you have any profile applications, then the UML metamodel elements such as Actor, UseCase, and, yes, Class may be extended by Stereotypes defined in the applied Profiles.&nbsp; In such cases, the Extensions will give you those extension associations.<BR>
<BR>
If you just want to find out the stereotypes applied to a model element (perhaps a class) then just use Element::getAppliedStereotypes().<BR>
<BR>
HTH,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Thu, 2009-12-17 at 16:53 +0100, Timothy Marc wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi all,

i've tried to get all extensions of a stereotyped class. But the list is
allways empty. The spec (v.2.2, 18.3.1, p. 656) states, that a class,
which is annotated should point to extension elements, which point to
this class.
DId i missinterprete something or is this a bug?

Thanks Timothy
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-ydMohiTVdignCk+cO168--
Re: Class.getExtensions()? [message #628130 is a reply to message #504190] Thu, 17 December 2009 17:04 Go to previous message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 847
Registered: July 2009
Senior Member
--=-ydMohiTVdignCk+cO168
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Timothy,

The extensions property gives you the Extension associations (to
Stereotypes, obviously) of a *metaclass* (metaclasses being modeled as
UML Class instances).

So, for example, if your model you have any profile applications, then
the UML metamodel elements such as Actor, UseCase, and, yes, Class may
be extended by Stereotypes defined in the applied Profiles. In such
cases, the Extensions will give you those extension associations.

If you just want to find out the stereotypes applied to a model element
(perhaps a class) then just use Element::getAppliedStereotypes().

HTH,

Christian


On Thu, 2009-12-17 at 16:53 +0100, Timothy Marc wrote:

> Hi all,
>
> i've tried to get all extensions of a stereotyped class. But the list is
> allways empty. The spec (v.2.2, 18.3.1, p. 656) states, that a class,
> which is annotated should point to extension elements, which point to
> this class.
> DId i missinterprete something or is this a bug?
>
> Thanks Timothy

--=-ydMohiTVdignCk+cO168
Content-Type: text/html; charset="utf-8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, Timothy,<BR>
<BR>
The extensions property gives you the Extension associations (to Stereotypes, obviously) of a *metaclass* (metaclasses being modeled as UML Class instances).<BR>
<BR>
So, for example, if your model you have any profile applications, then the UML metamodel elements such as Actor, UseCase, and, yes, Class may be extended by Stereotypes defined in the applied Profiles.&nbsp; In such cases, the Extensions will give you those extension associations.<BR>
<BR>
If you just want to find out the stereotypes applied to a model element (perhaps a class) then just use Element::getAppliedStereotypes().<BR>
<BR>
HTH,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Thu, 2009-12-17 at 16:53 +0100, Timothy Marc wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi all,

i've tried to get all extensions of a stereotyped class. But the list is
allways empty. The spec (v.2.2, 18.3.1, p. 656) states, that a class,
which is annotated should point to extension elements, which point to
this class.
DId i missinterprete something or is this a bug?

Thanks Timothy
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-ydMohiTVdignCk+cO168--
Previous Topic:Class.getExtensions()?
Next Topic:Disjoint Generalization
Goto Forum:
  


Current Time: Sat Dec 20 20:14:24 GMT 2014

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

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