Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Limiting access to generated collections
Limiting access to generated collections [message #800059] Thu, 16 February 2012 16:32
Hayden Marchant is currently offline Hayden MarchantFriend
Messages: 12
Registered: November 2009
Junior Member
I am using ECORE to generate a model that will be exposed as a Public API to our users.

I would like to make the access to the collections read-only, so that when a client calls parent.getChildren() and gets a List<Child> back, it will NOT be possible to modify that list. In our implementation classes, which API users will not have access to, we WOULD like to have full modify access to these list features. So I'm looking to have option of generating 2 impl methods for accessing list, but exposing only 1 of them in the interface.

How could we accomplish such a design? I've been searching high and low for examples/documentation on this level of generation capabilities with no luck so far.
Previous Topic:Is Ecore tools development dead ?
Next Topic:Association class
Goto Forum:
  


Current Time: Fri Apr 19 17:02:35 GMT 2024

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

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

Back to the top