[ETL/EOL][newbie] Dealing with EFeatureMapEntry? [message #572237] |
Mon, 03 August 2009 09:33 |
Darren Messages: 40 Registered: September 2009 |
Member |
|
|
Hello all,
I'm trying to transform data from a model based on an XSD to one based on
my own meta-model. I'm having difficult with EFeatureMapEntry and wondered
if anyone has any experience of transforming these relationships?
In more detail I have an element that contains 4 different sub-elements.
The order of these is important and I am assuming it is defined in the
EFeatureMapEntry relationship.
I have tried something like this:
for (x in v.element.group){
if(x.isTypeOf(XMLMetaModel!XMLElement){
var z := x.equivalent();
-- Do stuff for this type
}
if(x.isTypeOf(XMLMetaModel!XMLElement2){
var z := x.equivalent();
-- Do stuff for this type
}
}
However the if statements for the 4 element types are never entered. Is
there an operation for returning an elements type? i.e.
x.type().println(), or should this be approached another way?
Thanks, Darren
|
|
|
Powered by
FUDForum. Page generated in 0.02840 seconds