Home » Modeling » UML2 » CMOF primitive type references
|
Re: CMOF primitive type references [message #476825 is a reply to message #476804] |
Thu, 03 January 2008 23:05 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Dave,
Technically, I don't think the primitive types are merged into the CMOF
namespace, so I'm not sure it's correct to reference them from there. I
would expect references to the UML standard primitive types to be handled,
though, so if you open a bug report, we'll look into it. Thanks!
Kenn
"Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
news:fku3ct$aa0$1@build.eclipse.org...
> When opening a .cmof model in the UML editor, or generating Ecore from
> cmof, what URIs should be used for primitive type references? In the
> latest SBVR cmof model from OMG, the primtive types are defined as:
>
> http://schema.omg.org/spec/UML/2.0/uml.xml#Boolean
>
> These are not resolved when opening or transforming the model and the
> resulting types are null. I also believe that this is an error in the
> SBVR cmof model; it should not refer to the UML metamodel. So, I looked
> at the format used when an .ecore model is saved to EMOF, and this type of
> primitive URI is used:
>
> http://schema.omg.org/spec/mof/2.0/emof.xmi#Boolean
>
> So, I would expect that this should be the correct format used in CMOF:
>
> http://schema.omg.org/spec/mof/2.0/cmof.xmi#Boolean
>
> But the current resource loader for .cmof does not recognize this.
> As a current workaround, I changed the cmof file to use primitive URIs
> like this:
>
> pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolea n
>
>
|
|
|
Re: CMOF primitive type references [message #625849 is a reply to message #476804] |
Thu, 03 January 2008 23:05 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Dave,
Technically, I don't think the primitive types are merged into the CMOF
namespace, so I'm not sure it's correct to reference them from there. I
would expect references to the UML standard primitive types to be handled,
though, so if you open a bug report, we'll look into it. Thanks!
Kenn
"Dave Carlson" <dcarlson@xmlmodeling.com> wrote in message
news:fku3ct$aa0$1@build.eclipse.org...
> When opening a .cmof model in the UML editor, or generating Ecore from
> cmof, what URIs should be used for primitive type references? In the
> latest SBVR cmof model from OMG, the primtive types are defined as:
>
> http://schema.omg.org/spec/UML/2.0/uml.xml#Boolean
>
> These are not resolved when opening or transforming the model and the
> resulting types are null. I also believe that this is an error in the
> SBVR cmof model; it should not refer to the UML metamodel. So, I looked
> at the format used when an .ecore model is saved to EMOF, and this type of
> primitive URI is used:
>
> http://schema.omg.org/spec/mof/2.0/emof.xmi#Boolean
>
> So, I would expect that this should be the correct format used in CMOF:
>
> http://schema.omg.org/spec/mof/2.0/cmof.xmi#Boolean
>
> But the current resource loader for .cmof does not recognize this.
> As a current workaround, I changed the cmof file to use primitive URIs
> like this:
>
> pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolea n
>
>
|
|
|
Goto Forum:
Current Time: Fri Apr 26 00:11:17 GMT 2024
Powered by FUDForum. Page generated in 0.02961 seconds
|