svn commit: r19503 - 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

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2011-05-24 04:54:43-0700
New Revision: 19503

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.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:
Port recognizers

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=19503&r1=19502&r2=19503
==============================================================================
--- 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	2011-05-24 04:54:43-0700
@@ -2268,6 +2268,10 @@
         return handle instanceof PackageImport;
     }
 
+    public boolean isAPort(Object handle) {
+        return handle instanceof Port;
+    }
+
     public boolean isAPrimitiveType(Object handle) {
         return handle instanceof PrimitiveType;
     }

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java?view=diff&pathrev=19503&r1=19502&r2=19503
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java	2011-05-24 04:54:43-0700
@@ -365,6 +365,8 @@
             o = UMLFactory.eINSTANCE.createState();
         } else if (elementType == metaTypes.getFinalState()) {
             o = UMLFactory.eINSTANCE.createFinalState();
+        } else if (elementType == metaTypes.getPort()) {
+            o = UMLFactory.eINSTANCE.createPort();
         } else if (elementType == metaTypes.getRegion()) {
             o = UMLFactory.eINSTANCE.createRegion();
         } else if (elementType == metaTypes.getPseudostate()) {

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=19503&r1=19502&r2=19503
==============================================================================
--- 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	2011-05-24 04:54:43-0700
@@ -632,6 +632,14 @@
             instanceof org.omg.uml.behavioralelements.commonbehavior.Object;
     }
 
+    public boolean isAPackage(Object handle) {
+        return handle instanceof UmlPackage;
+    }
+
+    public boolean isAPackageImport(Object handle) {
+        return handle instanceof Permission;
+    }
+    
     public boolean isAParameter(Object handle) {
         return handle instanceof Parameter;
     }
@@ -640,12 +648,8 @@
         return handle instanceof Partition;
     }
 
-    public boolean isAPackageImport(Object handle) {
-        return handle instanceof Permission;
-    }
-    
-    public boolean isAPackage(Object handle) {
-        return handle instanceof UmlPackage;
+    public boolean isAPort(Object handle) {
+        return false;
     }
 
     public boolean isAPrimitiveType(Object handle) {

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=19503&r1=19502&r2=19503
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/Facade.java	(original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/Facade.java	2011-05-24 04:54:43-0700
@@ -983,6 +983,14 @@
     boolean isAPackage(Object handle);
 
     /**
+     * Recognizer for Port.
+     *
+     * @param handle candidate
+     * @return true if handle is a Port
+     */
+    boolean isAPort(Object handle);
+    
+    /**
      * Recognizer for PrimitiveType.
      *
      * @param handle candidate

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

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.