Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » multiple 'primitive types'
multiple 'primitive types' [message #5342] Tue, 13 February 2007 14:36 Go to next message
Eclipse User
Originally posted by: chaves.inf.ufsc.nospam.br

I noticed that there two families of primitive types defined in OCL for
UML2: one in ocl-uml::types (PrimitiveInteger, PrimitiveBoolean, etc)
and another in oclstdlib (Integer, Boolean, etc).

Is this something mandated by the UML/OCL specs? If not, what is the
rationale behind this design decision (IOW: what is each group for)?

Thanks!

Rafael
Re: multiple 'primitive types' [message #5393 is a reply to message #5342] Tue, 13 February 2007 18:19 Go to previous messageGo to next message
Eclipse User
Originally posted by: cdamus.ca.ibm.com

Hi, Rafael,

Where do you find the ocl-uml::types package? As far as I can see in the
org.eclipse.ocl.uml package, the only primitive types that are defined are
those in the oclstdlib.uml library model. OCL only defines the
PrimitiveType metaclass, of which the oclstdlib Integer, Boolean, etc. are
instances.

Which build do you have?

Cheers,

Christian


Rafael Chaves wrote:

> I noticed that there two families of primitive types defined in OCL for
> UML2: one in ocl-uml::types (PrimitiveInteger, PrimitiveBoolean, etc)
> and another in oclstdlib (Integer, Boolean, etc).
>
> Is this something mandated by the UML/OCL specs? If not, what is the
> rationale behind this design decision (IOW: what is each group for)?
>
> Thanks!
>
> Rafael
Re: multiple 'primitive types' [message #6893 is a reply to message #5393] Tue, 13 February 2007 23:01 Go to previous messageGo to next message
Rafael Chaves is currently offline Rafael Chaves
Messages: 362
Registered: July 2009
Senior Member
Hi Christian,

I have build I200702011837. The model containing the ocl-uml::types
package is OCLUML.uml (in org.eclipse.ocl.uml_1.1.0.v200702011837.jar).

So should I just ignore that file?

Thanks,

Rafael
Re: multiple 'primitive types' [message #6916 is a reply to message #6893] Wed, 14 February 2007 08:53 Go to previous message
Eclipse User
Originally posted by: cdamus.ca.ibm.com

Hi, Rafael,

I think I know what has happened. That I-build has a version of the
OCLUML.uml that isn't yet ready for consumption. The latest available OCL
build has an OCLUML.uml that corresponds better with OCLUML.ecore.

However, I learned just yesterday that the Ecore-to-UML mapping for EMF
2.3's generics is in doubt, so probably the latest OCLUML.uml isn't
actually a valid UML model (it is generated from the OCLUML.ecore; in M6 I
plan to do it the other way around). So, depending on how you are using
it, you may want to take care for now.

HTH,

Christian

Rafael Chaves wrote:

> Hi Christian,
>
> I have build I200702011837. The model containing the ocl-uml::types
> package is OCLUML.uml (in org.eclipse.ocl.uml_1.1.0.v200702011837.jar).
>
> So should I just ignore that file?
>
> Thanks,
>
> Rafael
Previous Topic:OCL Performance
Next Topic:Update to "Implementing Model Integrity in EMF with MDT OCL" Article
Goto Forum:
  


Current Time: Fri Jul 25 13:45:26 EDT 2014

Powered by FUDForum. Page generated in 0.07623 seconds