Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » QVT : Element Name Filtering
QVT : Element Name Filtering [message #535696] Tue, 25 May 2010 06:04
Eclipse UserFriend
Hi,

Trying to do a basic transformation using QVT. But not sure how does class name filtering happens as far as ecore model is concerned.

Have a sample instance file which looks something like where

<?xml version="1.0" encoding="UTF-8"?>
<myDsl:Namespace xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:myDsl="http://www.xtext.org/example/mydsl/MyDsl">
<elements>
<case name="Name">
</case>
</elements>
</myDsl:Namespace>

The main method of QVT file is as:
main() {
source.rootObjects()[Namespace] -> map NamespaceToNS();
}

But this context does not get evaluated. But if i use Element as class name then this is evaluated & it moves to the map context. I tried few logging statement to see what is the class name by using self.metaClassName() which gives Namespace. Hence not sure whether missing somewhere on the syntax front or the way ecore model instance file is parsed in some different way.

Thanks.
Vishal

Previous Topic:[ATL] UML model with UML profile as input
Next Topic:packagedElement <-Sequence{p.packagedelement}
Goto Forum:
  


Current Time: Thu Jun 19 19:03:35 EDT 2025

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

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

Back to the top