OCL + eGenericType [message #880508] |
Sat, 02 June 2012 02:48  |
Eclipse User |
|
|
|
Hi,
By using the CompleteOCL editor v3.1.2, I want to set a parameter with a generic data type (templetable).
But I do not know how to do it ...
def: getCountECT01(birthTimeInterval: ISODatatypes::IVL<TS>, (...)
in this example, the data type ISODatatypes::IVL is a templetable:
<eGenericType eClassifier="ecore:EClass ../../ISODIS21090.ecore#//ISODatatypes/IVL">
<eTypeArguments eClassifier="ecore:EClass ../../ISODIS21090.ecore#//ISODatatypes/TS"/>
</eGenericType>
Now, the CompleteOCL editor does not accept this syntax ...
My question is how can I use templetable data types in an OCL expression ?
thank you for your help.
|
|
|
Re: OCL + eGenericType [message #880518 is a reply to message #880508] |
Sat, 02 June 2012 03:06  |
Eclipse User |
|
|
|
Hi
Generic/templated types are one of a number of problems that must be
sorted out while aligning UML and OCL.
Currently they are not supported by the OCL specification.
The underlying implementation for the new Eclipse OCL pivot model has
templated type support and they may be used for OCLinEcore declarations.
So. Today, you cannot use templated types in Essential OCL expressions
or Complete OCL. You may in OclInEcore declarations.
Regards
Ed Willink
On 02/06/2012 07:48, D O wrote:
> Hi,
>
> By using the CompleteOCL editor v3.1.2, I want to set a parameter with
> a generic data type (templetable).
>
> But I do not know how to do it ...
>
> def: getCountECT01(birthTimeInterval: ISODatatypes::IVL<TS>, (...)
>
> in this example, the data type ISODatatypes::IVL is a templetable:
> <eGenericType eClassifier="ecore:EClass
> ../../ISODIS21090.ecore#//ISODatatypes/IVL">
> <eTypeArguments eClassifier="ecore:EClass
> ../../ISODIS21090.ecore#//ISODatatypes/TS"/>
> </eGenericType>
>
> Now, the CompleteOCL editor does not accept this syntax ...
>
> My question is how can I use templetable data types in an OCL
> expression ?
>
> thank you for your help.
|
|
|
Powered by
FUDForum. Page generated in 0.05671 seconds