Transforming Ecore diagrams with mediniQVT [message #1695593] |
Sun, 17 May 2015 11:56  |
Eclipse User |
|
|
|
Dear Community, i dont know if this is the place of this post
I have the MoDisco Java metamodel and i need transform a plus sign in the source model in a minus sign in the target model. Is it functionally possible?
The code por this part is the following:
relation InfixExpression2InfixExpression {
tvl : String;
tvr : String;
checkonly domain sourcemodel s: java::InfixExpression {
leftOperand = sLOperand : java::NumberLiteral {
tokenValue = tvl
},
rightOperand = sROperand : java::NumberLiteral {
tokenValue = tvr
},
operator = java::InfixExpressionKind::PLUS
};
enforce domain targetmodel t: java1::InfixExpression {
leftOperand = tLOperand : java1::NumberLiteral {
tokenValue = tvl
},
rightOperand = tROperand : java1::NumberLiteral {
tokenValue = tvr
},
operator = java1::InfixExpressionKind::MINUS
};
}
I attach the qvt file.
I recieve the following error at the transformation execution.
Exception occured in transformation
The value 'PLUS' is not a valid enumerator of 'InfixExpressionKind'
I don't understand what is wrong.
I hope you can help me.
Thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04588 seconds