UML Modeling Layer

com.ibm.xtools.uml.msl.internal.metamorphose
Class MorphUtil

java.lang.Object
  extended by com.ibm.xtools.uml.msl.internal.metamorphose.MorphUtil

public class MorphUtil
extends Object

Morph utility class Handles preserving morphed element IDs


Constructor Summary
MorphUtil()
           
 
Method Summary
static EObject metamorphose(EObject eObject, EClass newClass, boolean inPlace, EObjectUtil.MetamorphoseHandler handler, boolean bMaintainID)
          Calls another metamorphose method to do the metamorphose and re-assigns the original ID to the new element if required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorphUtil

public MorphUtil()
Method Detail

metamorphose

public static EObject metamorphose(EObject eObject,
                                   EClass newClass,
                                   boolean inPlace,
                                   EObjectUtil.MetamorphoseHandler handler,
                                   boolean bMaintainID)
Calls another metamorphose method to do the metamorphose and re-assigns the original ID to the new element if required.

Parameters:
handler, - a MetamorphoseHandler or null to use the default MorphStereotypesHandler
See Also:
EObjectUtil.metamorphose(EObject eObject, final EClass newClass, boolean inPlace, MetamorphoseHandler handler)

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.