org.argouml.model.uml
Class CopyHelper

java.lang.Object
  extended byorg.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 org.apache.log4j.Category cat
           
 
Method Summary
 ru.novosoft.uml.foundation.core.MModelElement copy(ru.novosoft.uml.foundation.core.MModelElement element, ru.novosoft.uml.foundation.core.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 org.apache.log4j.Category cat
Method Detail

getHelper

public static CopyHelper getHelper()

copy

public ru.novosoft.uml.foundation.core.MModelElement copy(ru.novosoft.uml.foundation.core.MModelElement element,
                                                          ru.novosoft.uml.foundation.core.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 (20030829)ArgoUML Project HomeArgoUML Cookbook