 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: UML2 Model Validation
Posted: Aug 25, 2009 - 04:58 PM
|
|
Registered Member

Joined: Jul 26, 2009
Posts: 9
|
|
I have a basic UML2 class diagram with a single class, class does not contain any attributes or operations; UML modeil passes validation. If I add an attribute of a Primitive type, in this case boolean and run a model validdation, I receive the following validation error: | Quote: | | A PackageImport is needed from ATM or one of its parents to UMLPrimitiveTypes, because of the Property relation between ATM and Boolean |
Prior to adding the attribute I imported Primitive types and selected <Primitive Type> Boolean from the list. Can you steer me to a solution?
Thanks, |
_________________ Jules Walker
|
| |
|
|
|
 |
|
|
Post subject: RE: UML2 Model Validation
Posted: Aug 25, 2009 - 07:11 PM
|
|
Registered Member

Joined: Jul 26, 2009
Posts: 9
|
|
Tried several different approaches in regards to Primitive Types used in UML model:
Imported Primitive Types, any primitive type imported and used results in an invalid model. Only generated primitives allow for a valid model.
Generated UML Primitive Types: This provides a valid model when assigning Boolean to a property; however, this is the Boolean object, not the primitive boolean. Java code generated from this class correct
| Code: | public class ATM {
public Boolean userAuthenticated;
} |
Generated Java Primitive Types: This provides a valid model when assigning boolean to a property; however, generated java code is incorrect
| Code: | import boolean; //Incorrect statement
public class ATM {
public boolean userAuthenticated;
} |
I am new to UML, so may not fully understand the difference for imported verses generated types. Not a lot of material on the MyEclipse website in regards to UML2 models... |
_________________ Jules Walker
|
| |
|
|
|
 |
|
|
Post subject: RE: UML2 Model Validation
Posted: Aug 27, 2009 - 01:54 PM
|
|
Registered Member

Joined: Jul 26, 2009
Posts: 9
|
|
My apologies for not posting system information in the initial post, system installation details:
*** Date:
Thursday, August 27, 2009 8:53:49 AM EDT
** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_13
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.5
Build id: 7.5-20090609
*** Eclipse details:
MyEclipse Enterprise Workbench
Version: 7.5
Build id: 7.5-20090609
Eclipse Plug-in Development Environment
Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
Build id: M20080703-0800
Eclipse Platform
Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
Build id: M20090211-1700
Eclipse Graphical Editing Framework GEF
Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
Build id: 200809101400
Eclipse RCP
Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
Build id: M20090211-1700
Eclipse Java Development Tools
Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
Build id: M20090211-1700
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 7.5\myeclipse.exe
-name
Myeclipse
--launcher.library
C:\Program Files\Genuitec\MyEclipse 7.5\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Program Files\Genuitec\MyEclipse 7.5\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-clean
-configuration
configuration
-vm
C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll |
_________________ Jules Walker
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 15, 2009 - 02:27 AM
|
|
Registered Member

Joined: Aug 27, 2009
Posts: 11
|
|
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |