Constraint Attachments [message #477922] |
Mon, 03 November 2008 16:59 |
Eric 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 <Reference>, 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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.23928 seconds