Author: thn
Date: 2010-06-07 00:18:55-0700
New Revision: 18437

Modified:
   
trunk/src/argouml-core-model/src/org/argouml/model/AbstractCoreHelperDecorator.java
   trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java
   trunk/src/argouml-core-model/src/org/argouml/model/CoreHelper.java

Log:
UML2: extending model API with Artifact and Manifestation related methods

Modified: 
trunk/src/argouml-core-model/src/org/argouml/model/AbstractCoreHelperDecorator.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/AbstractCoreHelperDecorator.java?view=diff&pathrev=18437&r1=18436&r2=18437
==============================================================================
--- 
trunk/src/argouml-core-model/src/org/argouml/model/AbstractCoreHelperDecorator.java
 (original)
+++ 
trunk/src/argouml-core-model/src/org/argouml/model/AbstractCoreHelperDecorator.java
 2010-06-07 00:18:55-0700
@@ -8,6 +8,7 @@
  *
  * Contributors:
  *    tfmorris
+ *    Thomas Neustupny
  
*******************************************************************************
  *
  * Some portions of this file was previously release using the BSD License:
@@ -93,6 +94,10 @@
         return impl.getSupertypes(generalizableElement);
     }
 
+    public Collection getUtilizedElements(Object artifact) {
+        return impl.getUtilizedElements(artifact);
+    }
+
     public Collection getAssociateEndsInh(Object classifier1) {
         return impl.getAssociateEndsInh(classifier1);
     }
@@ -371,6 +376,10 @@
         impl.addLink(handle, link);
     }
 
+    public void addManifestation(Object handle, Object m) {
+        impl.addManifestation(handle, m);
+    }
+
     public void addMethod(Object handle, Object m) {
         impl.addMethod(handle, m);
     }

Modified: trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java?view=diff&pathrev=18437&r1=18436&r2=18437
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java 
(original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java 
2010-06-07 00:18:55-0700
@@ -8,6 +8,7 @@
  *
  * Contributors:
  *    tfmorris
+ *    Thomas Neustupny
  
*******************************************************************************
  *
  * Some portions of this file was previously release using the BSD License:
@@ -640,6 +641,17 @@
 
 
     /**
+     * Builds a manifestation of an element for an artifact.
+     *
+     * @param utilizedElement is the packageable element
+     * @return manifestation
+     * TODO: This needs an extra parameter to specify the model/extent where
+     * the new element should be created.
+     */
+    Object buildManifestation(Object utilizedElement);
+
+
+    /**
      * Builds a method with a given name.
      *
      * @param name is the given name

Modified: trunk/src/argouml-core-model/src/org/argouml/model/CoreHelper.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/CoreHelper.java?view=diff&pathrev=18437&r1=18436&r2=18437
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/CoreHelper.java  
(original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/CoreHelper.java  
2010-06-07 00:18:55-0700
@@ -7,7 +7,7 @@
  * http://www.eclipse.org/legal/epl-v10.html
  *
  * Contributors:
- *    thn
+ *    Thomas Neustupny
  
*******************************************************************************
  *
  * Some portions of this file was previously release using the BSD License:
@@ -78,6 +78,13 @@
      */
     Collection getSupertypes(Object generalizableElement);
 
+    /**
+     * Return all utilized element of the manifestations of a given artifact.
+     *
+     * @param artifact the artifact you want to have the utilized elements for
+     * @return a collection of the manifestations
+     */
+    Collection getUtilizedElements(Object artifact);
 
     /**
      * Return all AssociationEnds of a given Classifier plus all 
@@ -713,6 +720,14 @@
     void addLink(Object handle, Object link);
 
     /**
+     * Add a manifestation to an artifact.
+     *
+     * @param handle is the artifact
+     * @param manifestation is the manifestation
+     */
+    void addManifestation(Object handle, Object manifestation);
+
+    /**
      * Add a method to an Operation and copy the values of the Operation's
      * visibility and scope attributes to the Method.
      *

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to