UML Modeling Layer

com.ibm.xtools.uml.msl.internal.redefinition
Class RedefRegionUtil

java.lang.Object
  extended by com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
      extended by com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
          extended by com.ibm.xtools.uml.msl.internal.redefinition.RedefRegionUtil

public class RedefRegionUtil
extends RedefUtil


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
RedefUtil.ElementWithRedefinitionContext, RedefUtil.IRedefintionContextAccessor
 
Nested classes/interfaces inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
RedefInternalUtil.ContainmentTester
 
Field Summary
 
Fields inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
CONTEXT_HINT, EDIT_REQUEST_PARAM_SUPRESS_UI, redefUtilInstance, REFACTORING_ROOT_FRAGMENT_REMOVAL
 
Fields inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
defaultContainmentTester, EMPTY_BEHAVIOR_BODY, uml2
 
Constructor Summary
RedefRegionUtil()
           
 
Method Summary
static List getAllSubvertices(Region region, EObject contextHint)
          Utility method to get the set of Inherited + Local - Redefined vertices
protected static List getAllSubvertices(Region fragment, Set visited, Set excluded)
          Local method to get the set of Inherited + Local - Redefined vertices
static List getAllTransitions(Region region, EObject contextHint)
          Utility method to get the set of Inherited + Local - Redefined transitions
protected static List getAllTransitions(Region fragment, Set visited, Set excluded)
           
protected static List getInheritedSubvertices(Region fragment, Set visited)
          Utility method for returning the set of "inherited" vertices for a given Region
protected static List getInheritedTransitions(Region fragment, Set visited)
           
static List getLocalSubvertices(Region region)
          use it instead of calling region.getSubvertices() directly
static List getLocalTransitions(Region region)
          use it instead of calling region.getTransitions() directly
 
Methods inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
canRedefine, canRedefine, canReinherit, canReinheritViewTarget, changeRedefinitionRoot, copyAllRedefinableContent, copyLocalRedefinableContent, copySharedContent, getAdapterForEditPart, getAffectedFilesFromContextHint, getAllStructuralFeatureContent, getContainingStateMachine, getContextHint, getContextHintMap, getContextualFragment, getContextualFragment, getInheritanceTree, getInheritedContent, getInstance, getLocalContext, getLocalContextFromHint, getLocalContextFromHint, getLocalContextIfExists, getLocalFragment, getRedefinableFeatures, getRedefinedElement, getRedefinedElementOrSuperClass, getRedefinitions, getRedefinitionStructuralFeature, getRedefinitionTree, getReferencesTargets, getReferenceTarget, getReferenceTarget, getRootFragment, getSharedFeatures, getStereotypeValue, getSubclasses, getValue, isEventBrokerRedefinitionAware, isExcluded, isExcluded, isFragmentRemovalRefactoring, isInheritable, isInherited, isLocal, isRedefinitionContextValid, isRedefinitionStructuredFeature, isStereotypePropertyRedefinable, isStereotypeValueInherited, isUISuppressed, isUMLRedefinitionStructuralFeature, isValueLocal, markFragmentRemovalRefactoring, normalizeContextHint, redefine, redefine, reinherit, removeFragment, separate, setRedefinition, setSupressUIParam, unexclude
 
Methods inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
filterBySF, findBody, findBody, findOwner, findOwner, findSubclasses, findSubclasses, getContainedElement, getContextChain, getExclusionSupport, getRedefSupport, retargetReferences, retargetReferencesDownTheContextChain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedefRegionUtil

public RedefRegionUtil()
Method Detail

getInheritedSubvertices

protected static List getInheritedSubvertices(Region fragment,
                                              Set visited)
Utility method for returning the set of "inherited" vertices for a given Region

Parameters:
fragment - the region
Returns:
List of inherited vertices or null

getAllSubvertices

protected static List getAllSubvertices(Region fragment,
                                        Set visited,
                                        Set excluded)
Local method to get the set of Inherited + Local - Redefined vertices

Parameters:
fragment - the region
Returns:
list with vertices (never null)

getLocalSubvertices

public static List getLocalSubvertices(Region region)
use it instead of calling region.getSubvertices() directly

Parameters:
region -
Returns:

getLocalTransitions

public static List getLocalTransitions(Region region)
use it instead of calling region.getTransitions() directly

Parameters:
region -
Returns:

getAllSubvertices

public static List getAllSubvertices(Region region,
                                     EObject contextHint)
Utility method to get the set of Inherited + Local - Redefined vertices

Parameters:
context - the state
Returns:
list with regions (never null)

getInheritedTransitions

protected static List getInheritedTransitions(Region fragment,
                                              Set visited)

getAllTransitions

protected static List getAllTransitions(Region fragment,
                                        Set visited,
                                        Set excluded)

getAllTransitions

public static List getAllTransitions(Region region,
                                     EObject contextHint)
Utility method to get the set of Inherited + Local - Redefined transitions

Parameters:
context - the state
Returns:
list with transitions (never null)

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.