com.ibm.xtools.uml.msl.internal.redefinition
Class RedefInternalUtil
java.lang.Object
com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
- Direct Known Subclasses:
- RedefUtil
public class RedefInternalUtil
- extends Object
|
Method Summary |
protected static List |
filterBySF(EList inheritedMembers,
EReference slot)
|
static String |
findBody(RedefinableElement el,
EObject contextHint,
String language,
EReference[] containmentSlots,
EAttribute langSlot,
EAttribute bodySlot,
RedefInternalUtil.ContainmentTester containmentTester)
|
static String |
findBody(RedefinableElement el,
EObject contextHint,
String language,
EReference containmentSlot,
EAttribute langSlot,
EAttribute bodySlot,
RedefInternalUtil.ContainmentTester containmentTester)
|
static RedefinableElement |
findOwner(RedefinableElement el,
EObject contextHint,
String language,
EReference[] containmentSlots,
EAttribute langSlot,
EAttribute bodySlot,
RedefInternalUtil.ContainmentTester containmentTester)
|
static RedefinableElement |
findOwner(RedefinableElement el,
EObject contextHint,
String language,
EReference containmentSlot,
EAttribute langSlot,
EAttribute bodySlot,
RedefInternalUtil.ContainmentTester containmentTester)
|
protected static Collection |
findSubclasses(Classifier clazz)
|
protected static void |
findSubclasses(Classifier clazz,
Collection retVal)
|
static EObject |
getContainedElement(EObject el,
EReference[] containmentSlots,
RedefInternalUtil.ContainmentTester containmentTester)
This method will find the given contained element starting from the el reference and traversing
the EStructuralFeatures contained in the containmentSlots parameter. |
static List |
getContextChain(Classifier context)
|
protected static IExclusionSupport |
getExclusionSupport()
|
protected static IRedefSupport |
getRedefSupport()
|
static void |
retargetReferences(Element oldTarget,
Element newTarget,
boolean copyRedefReferences)
|
static void |
retargetReferencesDownTheContextChain(Element oldTarget,
Element newTarget)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_BEHAVIOR_BODY
public static final String EMPTY_BEHAVIOR_BODY
- See Also:
- Constant Field Values
uml2
protected static final UMLPackage uml2
defaultContainmentTester
public static RedefInternalUtil.ContainmentTester defaultContainmentTester
RedefInternalUtil
public RedefInternalUtil()
getRedefSupport
protected static IRedefSupport getRedefSupport()
getExclusionSupport
protected static IExclusionSupport getExclusionSupport()
getContextChain
public static List getContextChain(Classifier context)
findOwner
public static RedefinableElement findOwner(RedefinableElement el,
EObject contextHint,
String language,
EReference containmentSlot,
EAttribute langSlot,
EAttribute bodySlot,
RedefInternalUtil.ContainmentTester containmentTester)
findOwner
public static RedefinableElement findOwner(RedefinableElement el,
EObject contextHint,
String language,
EReference[] containmentSlots,
EAttribute langSlot,
EAttribute bodySlot,
RedefInternalUtil.ContainmentTester containmentTester)
findBody
public static String findBody(RedefinableElement el,
EObject contextHint,
String language,
EReference containmentSlot,
EAttribute langSlot,
EAttribute bodySlot,
RedefInternalUtil.ContainmentTester containmentTester)
findBody
public static String findBody(RedefinableElement el,
EObject contextHint,
String language,
EReference[] containmentSlots,
EAttribute langSlot,
EAttribute bodySlot,
RedefInternalUtil.ContainmentTester containmentTester)
getContainedElement
public static EObject getContainedElement(EObject el,
EReference[] containmentSlots,
RedefInternalUtil.ContainmentTester containmentTester)
- This method will find the given contained element starting from the el reference and traversing
the
EStructuralFeatures contained in the containmentSlots parameter. The containementTester
will determine if the identified element is valid or not.
- Parameters:
el - The redefined element to start fromcontainmentSlots - The set of structural features to traverse to find the expected root elementcontainmentTester - A tester object to determine if the correct element is found
- Returns:
- The found EObject or
null if one could not be found.
retargetReferencesDownTheContextChain
public static void retargetReferencesDownTheContextChain(Element oldTarget,
Element newTarget)
retargetReferences
public static void retargetReferences(Element oldTarget,
Element newTarget,
boolean copyRedefReferences)
findSubclasses
protected static void findSubclasses(Classifier clazz,
Collection retVal)
findSubclasses
protected static Collection findSubclasses(Classifier clazz)
filterBySF
protected static List filterBySF(EList inheritedMembers,
EReference slot)
© Copyright IBM Corp. 2009. All rights reserved.