Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF] Lower bound 0 vs lower bound 1 of Reference
[EMF] Lower bound 0 vs lower bound 1 of Reference [message #1745050] Tue, 04 October 2016 13:42
Marco Sgura is currently offline Marco SguraFriend
Messages: 5
Registered: September 2016
Junior Member

I started recently with EMF and i have a doubt:

If i have class diagram like this:

A -----> B

In the generated code of A i see:

protected B b;

with lower bound = 0 or with lower bound = 1. So in the new Eclipse instance started to populate the model, initial value of property B in an instance of A is not set, then i can set it with a reference to B or return it to initial value. So are there any differences between lower bound = 0 and lower bound = 1 of reference? In the case of lower bound = 1 i was expecting to be able to create an instance of A only then an instance of B to have a value consistent with lower bound constraint.

Thank you all.

[Updated on: Tue, 04 October 2016 13:47]

Report message to a moderator

Previous Topic:Unordered list of children
Next Topic:[Teneo] Containment Reference to Abstract Class with TABLE_PER_CLASS
Goto Forum:

Current Time: Wed Jun 23 10:00:39 GMT 2021

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

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

Back to the top