ETL Transformation incase of more than one package [message #1094980] |
Mon, 26 August 2013 09:26  |
Eclipse User |
|
|
|
Hello,
I am using ETL for model transformation. I have two meta models. However, one of them has more than one package. I am not sure how to access the classes of this metamodel. Here is a small example:
@namespace(uri="model1", prefix="model1")
package model1;
abstract class PlaceHolder
{
}
@namespace(uri="model1/abc/1.0", prefix="model1.abc")
package abc
{
class PlaceHolder
{
}
@namespace(uri="model1/abc/def/1.0", prefix="model1.abc.def")
package def
{
class PlaceHolder
{
}
@namespace(uri="model1/abc/def/main/1.0", prefix="model1.abc.def.main")
package main
{
class PlaceHolder
{
}
@namespace(uri="model1/abc/def/main/types/1.0", prefix="model1.abc.def.main.types")
package types
{
class Atom extends Component
{
attr String name ;
}
}}}
could you please tell me if the following is the correct way of writing it:
rule model1_to_model2
transform m1:model1!Atom
to m2:model2!Block
{
m2.identity=m1.name;
}
the consufion I have is in line : transform m1:model1!Atom
Since the class Atom actually belongs to package types which is nested, so I was not sure how to access this class.
I will be very grateful if someone can kindly help me out.
Sincere regards,
Chandrakana
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03836 seconds