svn commit: r15527 - trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2008-08-09 10:40:38-0700
New Revision: 15527

Modified:
   trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java

Log:
Added comment to explain the rationale for this code. 

I do not want my effort to look this up to be wasted.

Modified: trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java?view=diff&rev=15527&p1=trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java&p2=trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java&r1=15526&r2=15527
==============================================================================
--- trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java	(original)
+++ trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreHelperMDRImpl.java	2008-08-09 10:40:38-0700
@@ -1695,6 +1695,15 @@
                 && VisibilityKindEnum.VK_PUBLIC.equals(me.getVisibility());
     }
     
+    /**
+     * This code enforces WFR [4] of a GeneralizableElement, 
+     * according OMG UML 1.4.2 standard page 59:
+     * 
+     * [4]The parent must be included in the Namespace 
+     * of the GeneralizableElement.
+     * self.generalization->forAll(g |
+     *   self.namespace.allContents->includes(g.parent) )
+     */
     private boolean isValidNamespace(
             GeneralizableElement generalizableElement,
             Namespace namespace) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.