Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » ECore Cardinality & Optionality Issue
ECore Cardinality & Optionality Issue [message #657269] Wed, 02 March 2011 09:51 Go to next message
Dharam  is currently offline Dharam Friend
Messages: 18
Registered: December 2010
Junior Member
Hello,

Relation :- Ident_ST "Has_type" Datatype
Cardinality :- (M : 1)
Optionality :- (M : M)


Relation : Datatype "Is_of_Identifier" Ident_ST
Cardinality :- (1 : M)
Optionality :- (M : O)


For 2nd relation, structtype can't have any identifier. So jst want
to create ((structtype) is Datatype). But it gives me error on validating at this step.
Is_of_Identifier must have some value.


Here Has_type & Is_of_Identifier is EReference & left as well right parts are Classes. For both references containment & container attributes are false. I also don't want to set Opposite.

Conceptually above both are different associations.

[Updated on: Wed, 02 March 2011 09:52]

Report message to a moderator

Re: ECore Cardinality & Optionality Issue [message #657390 is a reply to message #657269] Wed, 02 March 2011 15:38 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Dharam,

Comments below.

Dharam wrote:
> Hello,
>
> Relation :- Ident_ST "Has_type" Datatype
> Cardinality :- (M : 1)
> Optionality :- (M : M)
>
>
> Relation : Datatype "Is_of_Identifier" Ident_ST
> Cardinality :- (1 : M)
> Optionality :- (M : O)
What does this notation correspond to in Ecore? Upper and lower bound I
suppose, but those have only a single value each.
>
>
> For 2nd relation, structtype can't have any identifier.
What's structtype?
> So jst want
> to create structtype(Datatype). But it gives me error on validating at
> this step. Is_of_Identifier must have some value.
>
>
> Here Has_type & Is_of_Identifier is EReference & left as well right
> parts are Classes. For both references containment & container
> attributes are false. I also don't want to set Opposite.
> Conceptually above both are different associations.
Can you describe what you have in Ecore so I'm not left wondering what
your notation maps to?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF Spreadsheet Model
Next Topic:Option to omit using org.eclipse.emf.ecore.util.Switch
Goto Forum:
  


Current Time: Tue Apr 23 08:21:20 GMT 2024

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

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

Back to the top