Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » eContainer()
eContainer() [message #47112] Thu, 20 December 2007 00:44 Go to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080507090508040802040906
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

hi,

I have my own ecore metamodel like the one attached.


Can I use the method eContainer() from EObject to check if e.g. Text is
contained by the 'Model' (root object)?

-stefan



--------------080507090508040802040906
Content-Type: image/png;
name="Screenshot-1.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="Screenshot-1.png"

iVBORw0KGgoAAAANSUhEUgAAAeUAAADlCAIAAADiJXiBAAAAAXNSR0IArs4c 6QAAAAZiS0dE
AP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cMFAAr Ox4fv7MAACAA
SURBVHja7d13WFNXAwbwNwkJW1myBEQRcUKtW8Fd996Ke1fF8dU6QFFRxKp1 VnHWUfdELWrd
qy7EbetEnCyZCoQAyfdHMCBTECuB9/f4+JCTey/h5p73nnvuyYlAoVCAiP5z AoGAO0Gt/ffh
qcGdTvStXH0r405QU/UtJf/9LxVyvxMRqQXmNRGRemB/CFFJJwgP/O3mnqgP 0VEfYgx1ShmX
Mh73fS+FaS3umSL3Tv1nXea8u6LueGu60GtEUei/PhG45ti9M0425UrraCtL YhMSA4KCOtf8
oVWt0XybclLfUlLM7zfy7opaH53cCcXPicA1foH+nWvVdbJ2NNIz0RBqpMhT giKempc23Hpx
H4AiG9nnOtr4Vtm9e2GDEvV+sT+EqKQ28MMDj90709rxOxeHxs3sW6rKXeya nn58IlkuO3Tr
ZGvrOjl1jLw8v3Htqg2Bd/6JkyrKlHds0nXUiLH99TXyfRl9up31hpr7dnrX y9daZ1/ElZ1W
rqS9ZbzfSFRCLQ/YXdnSrJKFnTKsTz06vuLsr3/eOwTA3tRBT1PX0cZy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ZtReW+R2SWoyqYqpaqsApO92 34xK3HJto8OX
XXkQFdG85uD8fPWH5NmF/b3H2Vn6EzfN7LUkJEa3TLk6nRZ0y3WzTZdefTd3 pO+oFqoZbT5n
OwKhzogtgQk9HAf1nLJr3yIAa1d2nenRda5y8p3Zx8Z3tFUume23KSrnR/S+ vkQiBDTtFm39
X6ferS51eOpcRien19nQWtum5+ldSxrm8reEv34hyDier6yNllCQ8Sl5SmLI o8sbpvhbtF6l
ryEArKa0sF42cELtNR6lPtydP/2q05TraaeZ7MoznBctZ/d0mNG3i+2KhXUc zCKfBvpv9HLf
8Y+klLOuhnDbrmMjWlaXhj86uWWhOh5p/LqMYtOAK0Sc7ym7ncL5nnLe57mM 5/ucz8sAEAg0
SpnbNeo6dtK0Ucph5vLkkLUTBh7864pMYtZ4wKzZ7gM/jufLvlz1+UaFPN5v wbhde/1fRXzQ
N7ev37bPnLnTAbw4PHeG12/PwuJN7et2HO21fmJz1XxyuUw7962ONx5+RTwQ mNfMa+LxxsOP
eZ0/vOVCRKQeOD4kt9M1dwIpscFLzGtWUSKiz8X+ECIi5jURETGviYiY10RE VBRpgAMhiIjU
Iq+L/QhzIrXDJhTl2L4moqKDTSjKCfuviYiY10REVHgEvPjKZqd88VcUUrHE ykLf1v8BD+ar
okLYPowAAAAASUVORK5CYII=
--------------080507090508040802040906--
Re: eContainer() [message #47145 is a reply to message #47112] Thu, 20 December 2007 13:19 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Stefan,

You can use eContainer() only if your model EClasses explicitly specialize
EObject (either directly or indirectly). Implementing EObject at the Java
level is insufficient, as OCL only considers the model.

Of course, this would change if and when

https://bugs.eclipse.org/bugs/show_bug.cgi?id=152003

is implemented.

So, if you had

Control ------|> EObject

then you would be OK. But, then, you would be introducing an EClass into
your model solely for the purpose of OCL. Possibly a better solution would
be to give the Composite::children reference an eOpposite?

Cheers,

Christian


SKuhn wrote:

> hi,
>
> I have my own ecore metamodel like the one attached.
>
>
> Can I use the method eContainer() from EObject to check if e.g. Text is
> contained by the 'Model' (root object)?
>
> -stefan
Previous Topic:left-hand-side evaluation of OCL expression: request for advice
Next Topic:java.lang.NoClassDefFoundError: org/eclipse/ocl/internal/parser/OCLParser
Goto Forum:
  


Current Time: Sun Dec 21 21:03:19 GMT 2014

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

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