org.argouml.model.uml
Class CopyHelper

java.lang.Object
  |
  +--org.argouml.model.uml.CopyHelper

public final class CopyHelper
extends java.lang.Object

Utility class to facilitate copying model elements.

Since:
0.13.2

Field Summary
protected static Category cat
           
 
Method Summary
 MModelElement copy(MModelElement element, MNamespace ns)
          Make a copy of element.
static CopyHelper getHelper()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static Category cat
Method Detail

getHelper

public static CopyHelper getHelper()

copy

public MModelElement copy(MModelElement element,
                          MNamespace ns)
Make a copy of element. This function may fail and return null for any of the following reasons: 1. No copy function is known for element's type. 2. The copy function fails or throws.

Parameters:
element - is the element to copy.
Returns:
a copy of element, or null.


ArgoUML © 1996-2003 (20030919)ArgoUML Project HomeArgoUML Cookbook