svn commit: r18429 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2010-06-03 05:30:38-0700
New Revision: 18429

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java

Log:
a Behavior has a specification

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java?view=diff&pathrev=18429&r1=18428&r2=18429
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java	2010-06-03 05:30:38-0700
@@ -975,8 +975,11 @@
     }
 
     public Object getSpecification(Object object) {
-        // In UML2 the metaclass Method does not exists
-        throw new NotYetImplementedException();
+        if (!(object instanceof Behavior)) {
+            throw new IllegalArgumentException(
+                    "'object' must be instance of Behavior"); //$NON-NLS-1$
+        }
+        return ((Behavior) object).getSpecification();
     }
 
     public Collection<Element> getSubtypes(Object cls) {

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2616419

To unsubscribe from this discussion, e-mail: [[email protected]].
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.