Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » one input model and variable number of output models(one input model and variable number of output model)
one input model and variable number of output models [message #1160284] Mon, 28 October 2013 23:37 Go to next message
BaiChuan Nie is currently offline BaiChuan Nie
Messages: 5
Registered: September 2013
Junior Member
I build a model for a whole software system with UML,and now I want to transform the UML model to xhtml model.
I have made the xhtml.ecore,but the number of xhtml model is variable.One <<config>><class> mapping one Form.However,I don't know how to generate variable number of output models.

I suppose this result:

one uml model as input model , mutiple xhtml files are generated!
Re: one input model and variable number of output models [message #1160524 is a reply to message #1160284] Tue, 29 October 2013 03:17 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 3844
Registered: July 2009
Senior Member
Hi

One reasonable way to achieve this would be to map from a UML input
model to a Set of XHTML output models.

The OMG QVTo grammar would appear to allow Set(XHTML) as the output
type; however Eclipse QVTo doesn't.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=420585 raised.

For now, one solution might be to define a trivial MultiXHTML model that
uses EMF's capability to break compositions across multiple files so
that each child XHTML is in a separate file. (I've not used this
capability so cannot offer further advice.)

Regards

Ed Willink


On 29/10/2013 04:37, BaiChuan Nie wrote:
> I build a model for a whole software system with UML,and now I want to
> transform the UML model to xhtml model.
> I have made the xhtml.ecore,but the number of xhtml model is
> variable.One <<config>><class> mapping one Form.However,I don't know
> how to generate variable number of output models.
>
> I suppose this result:
>
> one uml model as input model , mutiple xhtml files are generated!
Previous Topic:metamodel declaration & UML profile
Next Topic:Writing it as extension for QVTo in Java
Goto Forum:
  


Current Time: Sat Apr 19 13:27:16 EDT 2014

Powered by FUDForum. Page generated in 0.02883 seconds