|
Re: [QVTO] [message #494946 is a reply to message #494620] |
Tue, 03 November 2009 11:07 |
Eclipse User |
|
|
|
Originally posted by: dvorak.radek.gmail.com
Hi Youssef,
Would be great if you can provide a code snippet producing the error.
Typically, this is reported for an object instantiation when the compiler
is not
able to determine the model extent (associated with an [out] model
parameter)
in which the new object should live.
Regards,
/Radek
On Sun, 01 Nov 2009 11:32:57 +0100, Youssef <aitlaydi.youssef@gmail.com>
wrote:
> Hallo, by the transformation from UML::Package to XSD::XSDschema, I
> become the following error : "Cannot infer model extent for the type
> 'xsd::XSDSchema'. Specify extent explicitly". I don't know what does
> mean. please help me.
> thanks!
>
|
|
|
|
Re: [QVTO] [message #495963 is a reply to message #495901] |
Fri, 06 November 2009 19:11 |
Eclipse User |
|
|
|
Originally posted by: dvorak.radek.gmail.com
Hi Youssef,
You declare 2 input model parameters, so the compiler complains it can't
find an output model extent where to create new objects.
Note that your second model parameter does not specify direction kind,
taking [in] by default.
I admit, it is a bad message ;). we have to improve that.
Regards,
/Radek
On Fri, 06 Nov 2009 16:07:25 +0100, Youssef <aitlaydi.youssef@gmail.com>
wrote:
> Hallo Radek,
>
> thank you for your answer.
> a code seems:
> modeltype UML "strict" uses 'http://www.eclipse.org/uml2/3.0.0/UML';
> modeltype XSD "strict" uses 'http://www.eclipse.org/xsd/2002/XSD';
>
>
> transformation uml2xsd(in uml:UML, xsd:XSD);
>
> main() {
> uml.objectsOfType(UML::Package) -> map package2schema();
> }
>
> mapping UML::Package::package2schema() : XSD::XSDSchema {
> // here the error
> // Cannot infer model extent for the type
> 'xsd::XSDSchema'. Specify extent explicitly
> }
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03228 seconds