Shortcut for subpackages? [message #1064905] |
Fri, 21 June 2013 11:10  |
Eclipse User |
|
|
|
Hello, I have a very basic question: is it possible, in a QVTO script, to define 'shortcut' names for subpackages? I'm writing a transformation but I end up with very long names, like
CIM::IEC61968::AssetInfo::PowerTransformerInfo
CIM::IEC61970::Topology::TopologicalNode
This produces some very bad-looking code.
Thanks a lot!
Daniele Pala
|
|
|
|
|
Re: Shortcut for subpackages? [message #1067425 is a reply to message #1067422] |
Mon, 08 July 2013 11:19  |
Eclipse User |
|
|
|
Hi
It looks as if fragment URIs are not well supported by the modelType
syntax. Please raise a Bugzilla.
Since your http: //iec.ch/TC57/2010/CIM-schema-cim15#AssetInfo is a
fudge rather actually a fragment identifier, I recommend using some
other character such as ~ to avoid confusing some unfortunate maintainer
later.
Regards
Ed Willink
On 08/07/2013 15:57, Daniele Pala wrote:
> Hi, thanks for your reply! It works, with this syntax:
>
> modeltype AssetInfo uses "http:
> //iec.ch/TC57/2010/CIM-schema-cim15#AssetInfo";
>
> I then have to define a new metamodel mapping in the project settings:
>
> Source model URI:
> http: //iec.ch/TC57/2010/CIM-schema-cim15#AssetInfo
>
> Target model URI:
> platform:/resource/atlantide2cim.bundle/models/cim15.ecore#//IEC61968/AssetInfo
>
> I don't know if there is another syntax avoiding the metamodel mapping
> stuff...
>
> Thanks again,
> Daniele Pala
|
|
|
Powered by
FUDForum. Page generated in 0.03704 seconds