Skip to main content



      Home
Home » Modeling » UML2 » Class.getExtensions()?
Class.getExtensions()? [message #504190] Thu, 17 December 2009 10:53 Go to next message
Eclipse UserFriend
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 07:06 Go to previous messageGo to next message
Eclipse UserFriend
--=-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 12:04 Go to previous message
Eclipse UserFriend
--=-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: Tue Jul 22 17:47:06 EDT 2025

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

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

Back to the top