| How to override keywords/built-in types in metamodel? [message #886181]
||Thu, 14 June 2012 11:49
| Gunnar Arndt
Registered: June 2012
I've been using ATL for just a few days now in order to create a transformer between two Ecore metamodels, namely OTX as the target models (generated from the standardized ISO XML schema). It's been working fine so far, and the documentation on eclipse.org has proven helpful and compact.|
Now, I have the following problem: OTX specifies several data types available in ATL as well, for instance String, Float and Integer.
How can I create a variable of type otx!String in a rule?
Currently, I receive the following warning:
Metamodel contains several classifiers with same name: String
otxOutParameter : otx!OutParameterDeclaration(
realisation <- otxDeclarationRealisation,
name <- 'out'
otxDeclarationRealisation : otx!DeclarationRealisation(),
otxType : otx!String -- mismatched input 'String' expecting NAME
Any help would be greatly apreciated.
Powered by FUDForum
. Page generated in 0.03116 seconds