Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » can't find set method but got a get
can't find set method but got a get [message #418893] Thu, 01 May 2008 07:40 Go to next message
gary s thompson is currently offline gary s thompsonFriend
Messages: 92
Registered: July 2009
Member
Dear All

I have a class which has a reference and i seem to have a get method but
no set method but I can't see why...

here is a fragment of the ecore file
<eClassifiers xsi:type="ecore:EClass" name="X"
eSuperTypes="#//gggg/eee/fff/hhh">
<eStructuralFeatures xsi:type="ecore:EReference" name="Y"
upperBound="-1" eType="#//xxx/yyy/zzz/AAAA/Y"/>


at the end I am generating the model with a genmodel that has

Supress EMF Types=true
Supress Interfaces=true


does anyone have any ideas?


regards
gary
Re: can't find set method but got a get [message #418898 is a reply to message #418893] Thu, 01 May 2008 11:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Gary,

Comments below.

gary wrote:
> Dear All
> I have a class which has a reference and i seem to have a get method
> but no set method but I can't see why...
>
> here is a fragment of the ecore file
> <eClassifiers xsi:type="ecore:EClass" name="X"
> eSuperTypes="#//gggg/eee/fff/hhh">
> <eStructuralFeatures xsi:type="ecore:EReference" name="Y"
> upperBound="-1" eType="#//xxx/yyy/zzz/AAAA/Y"/>
It's a multi-valued feature so you'll only have a getter that returns a
list and you can modify that list directly, i.e., use
add/remove/addAll/removeAll/clear/set to change its state.
>
>
> at the end I am generating the model with a genmodel that has
> Supress EMF Types=true
> Supress Interfaces=true
>
>
> does anyone have any ideas?
>
>
> regards
> gary


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to Populate the Problems View after calling MarkerUtil.createMarkers()
Next Topic:using Set classes for unique reference lists
Goto Forum:
  


Current Time: Fri Mar 29 14:00:02 GMT 2024

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

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

Back to the top