Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Primitive Type reuse
Primitive Type reuse [message #476845] Sat, 12 January 2008 09:24 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 676
Registered: July 2009
Senior Member
Hi,

The "Getting Started with UML2" Article mentions creation of
PrimitiveTypes. The types created there are for that
one and only model. The UML Superstructure on PrimitiveTypes:

A number of primitive types have been defined for use in the
specification of the UML metamodel. These include primitive types such
as Integer, Boolean, and String. These types are reused by both MOF and
UML, and may potentially be reused also in user models. Tool vendors,
however, typically provide their own libraries of data types to be used
when modeling with UML.

Making the UML2 project similar to a tool vendor I'd like to ask if
reusable primitive types librabry is available from the UML2 Project? If
not, how would I reuse the PrimitiveTypes defined in the UML Metamodel
itself?

Felix
Re: Primitive Type reuse [message #476848 is a reply to message #476845] Mon, 14 January 2008 11:44 Go to previous message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Hi Felix,

The UML2 Project does define the primitive types required for the UML
metamodel and they are available for your reuse. From the UML Editor you
can use "Load Resource.." and the URI
"pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml" to access these
primitive types.

You can also access this programatically. The pathmap is avialable as a
constant in UMLResource.UML_PRIMITIVE_TYPES_LIBRARY_URI

Hope that helps,
Tas
Re: Primitive Type reuse [message #625896 is a reply to message #476845] Mon, 14 January 2008 11:44 Go to previous message
Tas Frangoullides is currently offline Tas FrangoullidesFriend
Messages: 195
Registered: July 2009
Senior Member
Hi Felix,

The UML2 Project does define the primitive types required for the UML
metamodel and they are available for your reuse. From the UML Editor you
can use "Load Resource.." and the URI
"pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml" to access these
primitive types.

You can also access this programatically. The pathmap is avialable as a
constant in UMLResource.UML_PRIMITIVE_TYPES_LIBRARY_URI

Hope that helps,
Tas
Previous Topic:Navigability Semantics of Associations
Next Topic:Reapplying a profile after its has be re-defined
Goto Forum:
  


Current Time: Tue Apr 23 14:42:48 GMT 2024

Powered by FUDForum. Page generated in 0.03614 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top