OCL expr as an initializer [message #625344] |
Wed, 31 October 2007 08:20 |
Krzysztof Kaczmarski Messages: 88 Registered: July 2009 |
Member |
|
|
Hi All,
in the OCL standard description there is an information that OCL
expression may be used as an initialization expression for UML class
attributes. I suppose that in such case Property's defaultValue is set
to ExpressionInOCL object.
My question is how are the types and values mapped between OCL and
UML. If we have a Property that is a collection ( dogs:Dog[0..*] ) are
the values from a resulting OCL matched automatically?
This question has a little deeper meaning for me. If we use
ExpressionInOCL as a ValueSpecification in a UML Action (for example
ValueSpecificationAction) and we need to use OutputPin and ObjectFlow
to actually consume resulting values. How is the OCL collection
interpreted then?
Thanks in advance,
Krzysztof
|
|
|
Powered by
FUDForum. Page generated in 0.03145 seconds