svn commit: r17415 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Thomas Neustupny <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: thn
Date: 2009-10-19 10:03:04-0700
New Revision: 17415
Modified:
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Log:
implementing facade methods for some stereotype related methods
Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java?view=diff&pathrev=17415&r1=17414&r2=17415
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java (original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java 2009-10-19 10:03:04-0700
@@ -637,9 +637,16 @@
}
public Collection getExtendedElements(Object handle) {
- ((Stereotype) handle).getExtendedMetaclasses();
- throw new NotYetImplementedException();
-
+ if (!(handle instanceof Stereotype)) {
+ throw new IllegalArgumentException();
+ }
+ EList<Class> eList = ((Stereotype) handle).getExtendedMetaclasses();
+ ArrayList<Class> list = new ArrayList<Class>();
+ Iterator iter = eList.iterator();
+ while (iter.hasNext()) {
+ list.add((Class) iter.next());
+ }
+ return list;
}
public Collection getExtenders(Object handle) {
@@ -1315,8 +1322,10 @@
}
public Collection getTagDefinitions(Object handle) {
- throw new NotYetImplementedException();
-
+ if (!(handle instanceof Stereotype)) {
+ throw new IllegalArgumentException();
+ }
+ return getAttributes(handle);
}
public String getTagOfTag(Object handle) {
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2409045
To unsubscribe from this discussion, e-mail: [[email protected]].