svn commit: r17530 - trunk/src: argouml-core-model-euml/src/org/argouml/model/euml argouml-core-model-mdr/src/org/argouml/model/mdr argouml-core-model/src/org/argouml/model
Thomas Neustupny <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: thn
Date: 2009-11-23 09:48:15-0800
New Revision: 17530
Modified:
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java
trunk/src/argouml-core-model/src/org/argouml/model/Facade.java
Log:
UML2: adding isAProfileApplication method
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=17530&r1=17529&r2=17530
==============================================================================
--- 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-11-23 09:48:15-0800
@@ -101,6 +101,7 @@
import org.eclipse.uml2.uml.ParameterDirectionKind;
import org.eclipse.uml2.uml.PrimitiveType;
import org.eclipse.uml2.uml.Profile;
+import org.eclipse.uml2.uml.ProfileApplication;
import org.eclipse.uml2.uml.Property;
import org.eclipse.uml2.uml.Pseudostate;
import org.eclipse.uml2.uml.PseudostateKind;
@@ -1884,6 +1885,10 @@
return handle instanceof Profile;
}
+ public boolean isAProfileApplication(Object handle) {
+ return handle instanceof ProfileApplication;
+ }
+
public boolean isAProperty(Object handle) {
return handle instanceof Property;
}
Modified: trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java?view=diff&pathrev=17530&r1=17529&r2=17530
==============================================================================
--- trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java (original)
+++ trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java 2009-11-23 09:48:15-0800
@@ -592,6 +592,11 @@
return false;
}
+ public boolean isAProfileApplication(Object handle) {
+ throw new NotImplementedException(
+ "There are no profile application objects in UML 1.x");
+ }
+
public boolean isAProperty(Object handle) {
throw new NotImplementedException(
"There are no UML Property objects in UML 1.x");
Modified: trunk/src/argouml-core-model/src/org/argouml/model/Facade.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/Facade.java?view=diff&pathrev=17530&r1=17529&r2=17530
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/Facade.java (original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/Facade.java 2009-11-23 09:48:15-0800
@@ -804,7 +804,15 @@
* @return true if handle is a Profile
*/
boolean isAProfile(Object handle);
-
+
+ /**
+ * Recognizer for ProfileApplication. In UML 2 only.
+ *
+ * @param handle candidate
+ * @return true if handle is a ProfileApplication
+ */
+ boolean isAProfileApplication(Object handle);
+
/**
* Recognizer for Property. UML 2 only.
*
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2423499
To unsubscribe from this discussion, e-mail: [[email protected]].