Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » org.eclipse.ocl.uml.impl.BagTypeImpl not contained in the resource
org.eclipse.ocl.uml.impl.BagTypeImpl not contained in the resource [message #624615] Mon, 03 September 2007 07:04
Krzysztof Kaczmarski is currently offline Krzysztof KaczmarskiFriend
Messages: 88
Registered: July 2009
Member
Hi All,

(Forgive me sending a copy to OCL news since I don't know who could
help here.)

I continue to discover problems with OCL types and their integration
with UML models. Perhaps someone could help me with this:

when I change "UML getting started" example to use OCL collection type
I cannot serialize the model correctly to a file. I receive IOException:

The object 'org.eclipse.ocl.uml.impl.BagTypeImpl@88e2dd (name:
<unset>, visibility: <unset>) (isLeaf: false, visibility: public,
isAbstract: false) (startPosition: -1, endPosition: -1,
typeStartPosition: -1, typeEndPosition: -1)' is not contained in a
resource.

An example use in the code looks like this:
sequence.createVariable( "TEST_VAR",
org.eclipse.ocl.uml.UMLFactory.eINSTANCE.createBagType());

What could be the possible problem here?
ocl, ocl.ecore and ocl.uml are included in the classpath.
Maybe this is somehow connected to the previous problem I asked about
concerning reading OCL primitive tyeps from oclstdlib.uml.

Regards,
Krzysztof Kaczmarski
Previous Topic:ocl standard lib primitive types
Next Topic:questions while applying extension
Goto Forum:
  


Current Time: Fri Apr 26 11:23:36 GMT 2024

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

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

Back to the top