[QVTO] Accessing a EFeatureMapEntry [message #546835] |
Wed, 14 July 2010 08:03  |
Eclipse User |
|
|
|
Hi,
I am try to read the value of an EFeatureMapEntry.
In the query below, I first query the type 'DataType1' which has a
EFeatureMap and I request the first entry (using ->at(1)).
query XLS::DataType1::toData() : ECORE::EFeatureMapEntry {
log("QUERY: Data", self.mixed->at(1));
return self.mixed->at(1);
}
The log on this reports the following type: data:ecore.xml.type:text
then, I use the result to get the value as a String.
I try to convert to a Sequence and get the second index which is
supposed to be the value in the EFeatureMapEntry but this doesn't work.
It seems overcomplicated anyway.
query XLS::CellType::toCell() : String {
log("QUERY: Cell", self);
return self.data->toData()->asSequence()->at(2).oclAsType(String);
}
Any ideas to access the EFeatureMapEntry?
thanks, Christophe
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04167 seconds