|
Re: Creating collections with at least one item [message #229474 is a reply to message #229464] |
Tue, 12 May 2009 08:41 |
|
Hi,
I think that you could do it by this way :
- for at least one service : in ecore, you can specify the lower bound of
your element
- for initialing : in gmfmap, on your node mapping you can create a
feature seq initializer
another idea to have at least one service anytime : using validation
Hope it would help you.
Aurélien Pupier
Josip Maras wrote:
> Hi everybody,
> Is there an easy way to create the following functionality:
> I'm modeling components that have a collection of services. Is there a way
> to specify somewhere (in the gmfmap, gmfgraph, ecore, genmodel...) that
> this collection has to have at least one item (service) - so when i'm
> creating a component it automatically adds one service, and that in any
> time at least one service has to exisit??
> Thank you
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03006 seconds