Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Syntax for use of ecore types within HUTN (HUTN syntax)
Syntax for use of ecore types within HUTN [message #878747] Tue, 29 May 2012 17:21 Go to previous message
Chris Holmes is currently offline Chris Holmes
Messages: 2
Registered: May 2012
Junior Member
I have a minimal model expressed in EMF:
package ThingWrappers;

class ThingWrapper {
attr String name = "";
val ecore.EClassifier thing;
}

I define the attribute 'thing' on class ThingWrapper to be of type ecore.EClassifier such that it may accommodate actual things of any type within the EClassifier hierarchy. I would like to create a test model using HUTN to instantiate the model:

@Spec {
metamodel "ThingWrappers" {
nsUri: "ThingWrappers"
}
metamodel "ecore" {
nsUri: "<link to ecore metamodel>"
}
}

ThingWrappers {
ThingWrapper "TW1" {
name: "My Thing Wrapper"
thing: EBoolean#true
}
}

What's the correct syntax for assigning the Boolean value 'true' to 'thing'?

Thanks in advance ...
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:[ETL] 'group' keyword
Next Topic:"Special" usecase, reuse same element in different diagrams
Goto Forum:
  


Current Time: Thu May 23 13:15:18 EDT 2013

Powered by FUDForum. Page generated in 0.01620 seconds