Home » Archived » M2M (model-to-model transformation) » [QVTO] Black Box questions
|
Re: [QVTO] Black Box questions [message #487176 is a reply to message #487111] |
Tue, 22 September 2009 10:27 |
Eclipse User |
|
|
|
Originally posted by: dvorak.radek.gmail.com
Hi Derek,
The current black-box support does not maintain QVT concrete syntax
along with the library Java class. QVTO creates the QVT AST representation
at runtime, based on the Java class and registration via the black-box unit
extension point. IOW, not by parsing a concrete syntax in a *.qvto file.
The feature you mention is gonna be added by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=289982.
The approach without concrete syntax is still useful for cases where you
want to define constructs which are not available via the QVTO concrete
syntax.
For instances, generic operations on collection types.
Regards,
/Radek
On Tue, 22 Sep 2009 01:22:16 +0200, Derek Palma <derek.palma@gmail.com>
wrote:
> Hi,
>
> I am looking at integrating some java code using the black box
> interface. I installed the BB example and see the UtilitiesLibrary.java
> class. Is there a corresponding QVTO transform file for this? I poked
> around in the QVT tests and saw a great example of a BB class called
> AnnotatedJavaLibray.java. I would love to get the transform file for
> this since it is packed with many interesting cases and would serve as a
> good reference. I did find some transformation for BB tests but nothing
> that matched the AnnotatedJavaLibrary. I am just trying to make sure I
> have a complete concrete example before i proceed so I don't waste time
> struggling with java method signatures for QVT. Regardless, it looks
> pretty straight forward...
>
> Thanks
> Derek
|
|
|
Re: [QVTO] Black Box questions [message #487214 is a reply to message #487176] |
Tue, 22 September 2009 13:13 |
Derek Palma Messages: 141 Registered: July 2009 |
Senior Member |
|
|
Thanks Radek.
Actually, I am just looking for examples, so given a Java file that acts as
a Library, I'd like to have a QVTO file which references it, just to have
concrete syntax examples of the different kinds of invocations from QVTO.
Derek
"radek dvorak" <dvorak.radek@gmail.com> wrote in message
news:op.u0nlzgnv12y5f2@kliste.local...
> Hi Derek,
>
> The current black-box support does not maintain QVT concrete syntax
> along with the library Java class. QVTO creates the QVT AST representation
> at runtime, based on the Java class and registration via the black-box
> unit
> extension point. IOW, not by parsing a concrete syntax in a *.qvto file.
>
> The feature you mention is gonna be added by
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=289982.
>
> The approach without concrete syntax is still useful for cases where you
> want to define constructs which are not available via the QVTO concrete
> syntax.
> For instances, generic operations on collection types.
>
> Regards,
> /Radek
>
>
> On Tue, 22 Sep 2009 01:22:16 +0200, Derek Palma <derek.palma@gmail.com>
> wrote:
>
>> Hi,
>>
>> I am looking at integrating some java code using the black box
>> interface. I installed the BB example and see the UtilitiesLibrary.java
>> class. Is there a corresponding QVTO transform file for this? I poked
>> around in the QVT tests and saw a great example of a BB class called
>> AnnotatedJavaLibray.java. I would love to get the transform file for
>> this since it is packed with many interesting cases and would serve as a
>> good reference. I did find some transformation for BB tests but nothing
>> that matched the AnnotatedJavaLibrary. I am just trying to make sure I
>> have a complete concrete example before i proceed so I don't waste time
>> struggling with java method signatures for QVT. Regardless, it looks
>> pretty straight forward...
>>
>> Thanks
>> Derek
|
|
|
Re: [QVTO] Black Box questions [message #487226 is a reply to message #487214] |
Tue, 22 September 2009 14:00 |
Eclipse User |
|
|
|
Originally posted by: dvorak.radek.gmail.com
Hi Derek,
Java implementation of the library you pointed out:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.qvtoml/tests/org.eclipse.m2m.tests.qvt.oml/src/org/ eclipse/m2m/tests/qvt/oml/bbox/AnnotatedJavaLibrary.java?roo t=Modeling_Project&view=markup
A test transformation that references the library:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.qvtoml/tests/org.eclipse.m2m.tests.qvt.oml/parserTe stData/models/blackboxlib_annotation_java/blackboxlib_annota tion_java.qvto?revision=1.7&root=Modeling_Project&vi ew=markup
Regards,
/Radek
On Tue, 22 Sep 2009 15:13:50 +0200, Derek Palma <derek.palma@gmail.com>
wrote:
> Thanks Radek.
>
> Actually, I am just looking for examples, so given a Java file that acts
> as a Library, I'd like to have a QVTO file which references it, just to
> have concrete syntax examples of the different kinds of invocations from
> QVTO.
>
> Derek
>
> "radek dvorak" <dvorak.radek@gmail.com> wrote in message
> news:op.u0nlzgnv12y5f2@kliste.local...
>> Hi Derek,
>>
>> The current black-box support does not maintain QVT concrete syntax
>> along with the library Java class. QVTO creates the QVT AST
>> representation
>> at runtime, based on the Java class and registration via the black-box
>> unit
>> extension point. IOW, not by parsing a concrete syntax in a *.qvto file.
>>
>> The feature you mention is gonna be added by
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=289982.
>>
>> The approach without concrete syntax is still useful for cases where you
>> want to define constructs which are not available via the QVTO concrete
>> syntax.
>> For instances, generic operations on collection types.
>>
>> Regards,
>> /Radek
>>
>>
>> On Tue, 22 Sep 2009 01:22:16 +0200, Derek Palma <derek.palma@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I am looking at integrating some java code using the black box
>>> interface. I installed the BB example and see the
>>> UtilitiesLibrary.java class. Is there a corresponding QVTO transform
>>> file for this? I poked around in the QVT tests and saw a great example
>>> of a BB class called AnnotatedJavaLibray.java. I would love to get the
>>> transform file for this since it is packed with many interesting cases
>>> and would serve as a good reference. I did find some transformation
>>> for BB tests but nothing that matched the AnnotatedJavaLibrary. I am
>>> just trying to make sure I have a complete concrete example before i
>>> proceed so I don't waste time struggling with java method signatures
>>> for QVT. Regardless, it looks pretty straight forward...
>>>
>>> Thanks
>>> Derek
>
|
|
|
Goto Forum:
Current Time: Wed Jan 15 03:45:03 GMT 2025
Powered by FUDForum. Page generated in 0.03069 seconds
|