UML Modeling Layer

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

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.RedefStateMachineUtil

public class RedefStateMachineUtil
extends RedefUtil


Nested Class Summary
static class RedefStateMachineUtil.Regions
           
 
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
RedefStateMachineUtil()
           
 
Method Summary
static List getAllConnectionPoints(StateMachine sm, EObject contextHint)
          Utility method to get the set of Inherited + Local - Redefined Connection Points
protected static List getAllConnectionPoints(StateMachine context, Set visited)
          Local method to get the set of Inherited + Local - Redefined points
static List getAllRegions(StateMachine sm, EObject contextHint)
          Utility method to get the set of Inherited + Local - Redefined regions
protected static List getAllRegions(StateMachine context, Set visited, Set excluded)
          Local method to get the set of Inherited + Local - Redefined regions
protected static List getInheritedConnectionPoints(StateMachine context, Set visited)
          Utility method for returning the set of "inherited" connection points for a given state machine
protected static List getInheritedRegions(StateMachine context, Set visited)
          Utility method for returning the set of "inherited" regions for a given state machine
static List getLocalConnectionPoints(StateMachine stateMachine)
          Use it instead of calling stateMachine.getConnectionPoints() directly
static List getLocalRegions(StateMachine stateMachine)
          Use it instead of calling stateMachine.getRegions() 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

RedefStateMachineUtil

public RedefStateMachineUtil()
Method Detail

getInheritedRegions

protected static List getInheritedRegions(StateMachine context,
                                          Set visited)
Utility method for returning the set of "inherited" regions for a given state machine

Parameters:
context - the statemachine
Returns:
List of inherited regions or null

getAllRegions

protected static List getAllRegions(StateMachine context,
                                    Set visited,
                                    Set excluded)
Local method to get the set of Inherited + Local - Redefined regions

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

getLocalRegions

public static List getLocalRegions(StateMachine stateMachine)
Use it instead of calling stateMachine.getRegions() directly

Parameters:
stateMachine -
Returns:

getAllRegions

public static List getAllRegions(StateMachine sm,
                                 EObject contextHint)
Utility method to get the set of Inherited + Local - Redefined regions

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

getInheritedConnectionPoints

protected static List getInheritedConnectionPoints(StateMachine context,
                                                   Set visited)
Utility method for returning the set of "inherited" connection points for a given state machine

Parameters:
context - the statemachine
Returns:
List of inherited connection points or null

getAllConnectionPoints

protected static List getAllConnectionPoints(StateMachine context,
                                             Set visited)
Local method to get the set of Inherited + Local - Redefined points

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

getLocalConnectionPoints

public static List getLocalConnectionPoints(StateMachine stateMachine)
Use it instead of calling stateMachine.getConnectionPoints() directly

Parameters:
stateMachine -
Returns:

getAllConnectionPoints

public static List getAllConnectionPoints(StateMachine sm,
                                          EObject contextHint)
Utility method to get the set of Inherited + Local - Redefined Connection Points

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

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.