Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Constraint Attachments
Constraint Attachments [message #477922] Mon, 03 November 2008 16:59 Go to next message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_0024_01C93DAB.A887BDE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I have a question regarding constraint attachments. I can get at =
constraints using the getOwnedRules() methods on UML2 Classes and =
Packages. This, however, seems to only reflect containment, rather than =
"attachment". The actual constraint attachment is labeled in the =
properties window as a <Reference>, but I have not found the =
corresponding class in the code, nor any way to get at them.=20

Any help would be greatly appreciated. Thanks in advance.

------=_NextPart_000_0024_01C93DAB.A887BDE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16674" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Tms Rmn">
<P dir=3Dltr></FONT><FONT face=3DVerdana size=3D2><FONT face=3DVerdana=20
size=3D2>Hello,</FONT></FONT></P>
<P dir=3Dltr><FONT face=3DVerdana>I have a question regarding constraint =

attachments.</FONT><FONT size=3D2><FONT size=3D2><FONT face=3DVerdana> I =
can get at=20
constraints using the getOwnedRules() methods on UML2 Classes and =
Packages.=20
</FONT></FONT></FONT><FONT face=3D"Tms Rmn"></FONT><FONT face=3DVerdana =
size=3D2><FONT=20
face=3DVerdana size=3D2>This, however, seems to only reflect =
containment, rather=20
than</FONT></FONT><FONT face=3D"Tms Rmn" size=3D3> </FONT><FONT =
face=3DVerdana=20
size=3D2><FONT face=3DVerdana size=3D2>"attachment". =
T</FONT></FONT><FONT face=3DVerdana=20
size=3D2><FONT face=3DVerdana size=3D2>he actual constraint attachment =
is labeled in=20
the properties window as a &lt;Reference&gt;, but I have not found the=20
corresponding class in the code, nor any way to get at them. =
</FONT></FONT></P>
<P dir=3Dltr><FONT face=3DVerdana>Any help would be greatly appreciated. =
Thanks in=20
advance.</FONT></P></FONT></DIV></BODY></HTML>

------=_NextPart_000_0024_01C93DAB.A887BDE0--
Re: Constraint Attachments [message #477923 is a reply to message #477922] Mon, 03 November 2008 17:11 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Eric,

Have a look at the getConstrainedElements() method in the Constraint
interface.

If you need to find the constraints associated with an element, the
CacheAdapter maintains a cross-reference index that you can use to find
the Constraints that reference the element.

HTH,

Christian

Eric wrote:
> Hello,
>
> I have a question regarding constraint attachments. I can get at
> constraints using the getOwnedRules() methods on UML2 Classes and
> Packages. This, however, seems to only reflect containment, rather than
> "attachment". The actual constraint attachment is labeled in the
> properties window as a <Reference>, but I have not found the
> corresponding class in the code, nor any way to get at them.
>
> Any help would be greatly appreciated. Thanks in advance.
>
Re: Constraint Attachments [message #627132 is a reply to message #477922] Mon, 03 November 2008 17:11 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Eric,

Have a look at the getConstrainedElements() method in the Constraint
interface.

If you need to find the constraints associated with an element, the
CacheAdapter maintains a cross-reference index that you can use to find
the Constraints that reference the element.

HTH,

Christian

Eric wrote:
> Hello,
>
> I have a question regarding constraint attachments. I can get at
> constraints using the getOwnedRules() methods on UML2 Classes and
> Packages. This, however, seems to only reflect containment, rather than
> "attachment". The actual constraint attachment is labeled in the
> properties window as a <Reference>, but I have not found the
> corresponding class in the code, nor any way to get at them.
>
> Any help would be greatly appreciated. Thanks in advance.
>
Previous Topic:Constraint Attachments
Next Topic:Missing property in UML::Class::Kernel::PackageableElement
Goto Forum:
  


Current Time: Sat Apr 20 01:11:33 GMT 2024

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

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

Back to the top