svn commit: r13241 - branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/UMLUtil.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: b00__1
Date: 2007-08-04 03:30:45-0700
New Revision: 13241
Modified:
branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/UMLUtil.java
Log:
Add javadoc
Modified: branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/UMLUtil.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/UMLUtil.java?view=diff&rev=13241&p1=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/UMLUtil.java&p2=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/UMLUtil.java&r1=13240&r2=13241
==============================================================================
--- branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/UMLUtil.java (original)
+++ branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/UMLUtil.java 2007-08-04 03:30:45-0700
@@ -46,6 +46,13 @@
*/
public class UMLUtil extends org.eclipse.uml2.uml.util.UMLUtil {
+ /**
+ * Getter for the attributes of a Type
+ *
+ * @param type
+ * The Type that owns the attributes
+ * @return the attributes or null
+ */
public static EList<Property> getOwnedAttributes(Type type) {
if (type instanceof AssociationClass) {
return ((AssociationClass) type).getOwnedAttributes();
@@ -56,10 +63,28 @@
}
}
+ /**
+ * Getter for the operations of a Type
+ *
+ * @param type
+ * The Type that owns the operations
+ * @return the operations or null
+ */
public static EList<Operation> getOwnedOperations(Type type) {
return org.eclipse.uml2.uml.util.UMLUtil.getOwnedOperations(type);
}
+ /**
+ * Copy a tree of UML elements into a destination location
+ *
+ * @param modelImplementation
+ * the eUML model implementation
+ * @param source
+ * the tree of UML elements to be copied
+ * @param destination
+ * the destination container
+ * @return the root of the newly copied tree of UML elements or null
+ */
public static Element copy(EUMLModelImplementation modelImplementation,
Element source, Element destination) {
Command copyToClipboard = CopyToClipboardCommand.create(