Eclipse Community Forums
Forum Search:

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

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
"java.net.MalformedURLException: 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(),
UMLPackage.Literals.PACKAGE);
return package_;
}

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


Current Time: Tue Jul 22 19:38:16 EDT 2014

Powered by FUDForum. Page generated in 0.01429 seconds