Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » query Instance specification
query Instance specification [message #58696] Sun, 15 June 2008 04:35
Eclipse UserFriend
Originally posted by: asma.charfi.com

Hi,
I have problem with Instance specification:

in M2 UML (in console), I can not get my instance specification's slots:
self.slot.value.stringValue() give {}
in M2 Ecore, query works : self.slot.value.stringValue() give my slots value
when I chose slot us context:
in M2 UML self.value.stringValue() works very well
I tried self.name (evaluated on instancespecification in UML M2 level) but
it did not work although in ECORE M2 level it works.

How to get InstanceSpecification name/slots in UML ?

thank you
Re: query Instance specification [message #58721 is a reply to message #58696] Sat, 14 June 2008 23:01 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-4+TCuhnmrJo0CqAkzhY+
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Asma,

This is a bug in the OCL Interactive Console example (not, happily, the
OCL interpreter). See the following bug for details and a patch that
will fix you up:

https://bugs.eclipse.org/237205

Cheers,

Christian


On Sat, 2008-06-14 at 21:35 -0700, charfi asma wrote:

> Hi,
> I have problem with Instance specification:
>
> in M2 UML (in console), I can not get my instance specification's slots:
> self.slot.value.stringValue() give {}
> in M2 Ecore, query works : self.slot.value.stringValue() give my slots value
> when I chose slot us context:
> in M2 UML self.value.stringValue() works very well
> I tried self.name (evaluated on instancespecification in UML M2 level) but
> it did not work although in ECORE M2 level it works.
>
> How to get InstanceSpecification name/slots in UML ?
>
> thank you
>
>
>

--=-4+TCuhnmrJo0CqAkzhY+
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.16.0">
</HEAD>
<BODY>
Hi, Asma,<BR>
<BR>
This is a bug in the OCL Interactive Console example (not, happily, the OCL interpreter).&nbsp; See the following bug for details and a patch that will fix you up:<BR>
<BR>
<A HREF="https://bugs.eclipse.org/bugs/show_bug.cgi?id=237205">https://bugs.eclipse.org/237205</A><BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Sat, 2008-06-14 at 21:35 -0700, charfi asma wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi,</FONT>
<FONT COLOR="#000000">I have problem with Instance specification:</FONT>

<FONT COLOR="#000000">in M2 UML (in console), I can not get my instance specification's slots: </FONT>
<FONT COLOR="#000000">self.slot.value.stringValue() give {}</FONT>
<FONT COLOR="#000000">in M2 Ecore, query works : self.slot.value.stringValue() give my slots value</FONT>
<FONT COLOR="#000000">when I chose slot us context:</FONT>
<FONT COLOR="#000000">in M2 UML self.value.stringValue() works very well</FONT>
<FONT COLOR="#000000">I tried self.name (evaluated on instancespecification in UML M2 level) but </FONT>
<FONT COLOR="#000000">it did not work although in ECORE M2 level it works.</FONT>

<FONT COLOR="#000000">How to get InstanceSpecification name/slots in UML ?</FONT>

<FONT COLOR="#000000">thank you</FONT>



</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-4+TCuhnmrJo0CqAkzhY+--
Previous Topic:deleteElement when variables and operations have the same names
Next Topic:oclIstTypeOf and oclIsKindOf
Goto Forum:
  


Current Time: Fri Apr 26 05:23:11 GMT 2024

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

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

Back to the top