Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UMLPrimitiveTyes
UMLPrimitiveTyes [message #619924] Sat, 09 June 2007 21:41
Andrew Carton is currently offline Andrew CartonFriend
Messages: 104
Registered: July 2009
Senior Member

I'm trying to read a UML file and transform the UMLPrimitiveTypes into
other types defined by another profile. I can not figure out how to
compare an element to a UMLPrimitiveType (for example
UMLPrimitiveType::Boolean). There only seems to be a eProxyURI to get at.

I tried using the UMLProfile tutorial. I get the error
" unknown protocol: pathmap" when I try
to retrieve this.

Here is the code:

Model umlLibrary = (Model)
fileManager.load(URI.createURI(UMLResource.UML_PRIMITIVE_TYP ES_LIBRARY_URI));

Package load(URI uri)
Package package_ = null;
package_ = (Package) EcoreUtil.getObjectByType(resource.getContents(),
return package_;

Previous Topic:Determine accessible Types
Next Topic:Connecting DSL-eCore w/ UML2
Goto Forum:

Current Time: Fri Jun 22 23:12:37 GMT 2018

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

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

Back to the top