|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
com.ibm.xtools.uml.msl.internal.redefinition.RedefTransitionUtil
public class RedefTransitionUtil
| 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 | |
|---|---|
RedefTransitionUtil()
|
|
| Method Summary | |
|---|---|
static void |
excludeTrigger(Trigger trigger,
Transition trans,
EObject contextHint)
Excludes the given trigger from this transition's contextual fragment |
static List |
getAllTriggers(Transition transition,
EObject contextHint)
Utility method to get the set of Inherited + Local - Redefined Triggers |
static Behavior |
getEffect(Transition transition,
EObject contextHint)
Utility method to get the Effect |
static String |
getEffectCode(Transition t,
EObject contextHint,
String language)
Utility method to get a local or inherited effect code for the given transition and given language |
static Constraint |
getGuard(Transition transition,
EObject contextHint)
Utility method to get the Guard |
static Map |
getGuardCode(Transition t,
EObject contextHint)
Utility method to get a local or inherited guard code for the given transition and all languages |
static String |
getGuardCode(Transition t,
EObject contextHint,
String language)
Utility method to get a local or inherited guard code for the given transition and given language |
static List |
getGuardLanguages(Transition t,
EObject contextHint)
|
static TransitionKind |
getKind(Transition fragment)
|
static Behavior |
getLocalEffect(Transition transition)
Use it instead of calling transition.getEffect() directly |
static Constraint |
getLocalGuard(Transition transition)
use it instead of calling transition.getGuard() directly |
static Vertex |
getLocalSource(Transition transition)
Use it instead of calling transition.getSource() directly |
static Vertex |
getLocalTarget(Transition transition)
use it instead of calling transition.getTarget() directly |
static List |
getLocalTriggers(Transition transition)
Use it instead of calling transition.getTriggers() directly |
static Vertex |
getSource(Transition transition,
EObject contextHint)
Returns the transition source taking into account redefinition |
static Vertex |
getTarget(Transition transition,
EObject contextHint)
Returns the transition target taking into account redefinition |
static Constraint |
getTriggerGuard(Trigger trigger,
EObject contextHint)
Utility method to get the Trigger Guard |
static String |
getTriggerGuardCode(Trigger trigger,
EObject contextHint,
String language)
Utility method to get a local or inherited guard code for the given trigger and given language |
static boolean |
isEffectInherited(Transition t,
EObject contextHint,
String language)
Utility method - is the effect code inherited for the given transition and given language |
static boolean |
isEffectRedefined(Transition t,
EObject contextHint,
String language)
Determines if the Effect's OpaqueBehavior body is redefined in this context |
static boolean |
isExcluded(Trigger trigger,
Transition trans,
EObject contextHint)
Determines if the given trigger is exluded for the given transition |
static boolean |
isGuardInherited(Transition t,
EObject contextHint,
String language)
Utility method - is the guard code inherited for the given transition and given language |
static boolean |
isGuardRedefined(Transition t,
EObject contextHint,
String language)
Determines if the Guard's OpaqueExpresion's body is redefined in this context |
static boolean |
isTriggerGuardInherited(Trigger trigger,
EObject contextHint)
Utility method - is the guard inherited for the given trigger |
static boolean |
isTriggerGuardLocal(Trigger trigger,
EObject contextHint,
String language)
Utility method - is the guard local for the given trigger and given language |
static boolean |
isTriggerGuardRedefined(Trigger trigger,
EObject contextHint,
String language)
Utility method - is the guard redefined for the given trigger |
static void |
removeEffect(Transition t,
EObject contextHint,
String language)
Utility method to remove transition effect code. |
static void |
removeGuard(Transition t,
EObject contextHint,
String language)
Utility method to remove transition guard code. |
static void |
setRedefinedTransition(Transition redefining,
Transition redefined)
|
static void |
setSource(Transition t,
Vertex v)
Sets transition source. |
static void |
setTarget(Transition t,
Vertex v)
Sets transition target. |
static void |
unexcludeTrigger(Trigger trigger,
Transition trans,
EObject contextHint)
Unexcludes (re-inherit) the given trigger from the transition's contextual fragment. |
| 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 |
|---|
public RedefTransitionUtil()
| Method Detail |
|---|
public static Constraint getLocalGuard(Transition transition)
transition -
public static Constraint getGuard(Transition transition,
EObject contextHint)
t - the transition
public static Constraint getTriggerGuard(Trigger trigger,
EObject contextHint)
trigger -
public static Behavior getLocalEffect(Transition transition)
transition -
public static Behavior getEffect(Transition transition,
EObject contextHint)
t - the transition
public static Vertex getLocalSource(Transition transition)
transition -
public static Vertex getSource(Transition transition,
EObject contextHint)
contextHint - Local context for Transition sourcet - The transition
public static Vertex getLocalTarget(Transition transition)
transition -
public static Vertex getTarget(Transition transition,
EObject contextHint)
contextHint - Local context for Transition targett - The transition
public static List getLocalTriggers(Transition transition)
transition -
public static List getAllTriggers(Transition transition,
EObject contextHint)
transition - the transition
public static boolean isGuardInherited(Transition t,
EObject contextHint,
String language)
transition - language -
public static boolean isGuardRedefined(Transition t,
EObject contextHint,
String language)
t - contextHint - language -
public static boolean isEffectRedefined(Transition t,
EObject contextHint,
String language)
t - contextHint - language -
public static boolean isTriggerGuardInherited(Trigger trigger,
EObject contextHint)
trigger -
public static boolean isTriggerGuardLocal(Trigger trigger,
EObject contextHint,
String language)
trigger -
public static boolean isTriggerGuardRedefined(Trigger trigger,
EObject contextHint,
String language)
trigger -
public static String getGuardCode(Transition t,
EObject contextHint,
String language)
transition - language -
public static Map getGuardCode(Transition t,
EObject contextHint)
transition -
public static List getGuardLanguages(Transition t,
EObject contextHint)
t - contextHint -
public static String getTriggerGuardCode(Trigger trigger,
EObject contextHint,
String language)
transition - language -
public static boolean isEffectInherited(Transition t,
EObject contextHint,
String language)
transition - language -
public static void setSource(Transition t,
Vertex v)
t - v -
public static void setTarget(Transition t,
Vertex v)
t - v -
public static String getEffectCode(Transition t,
EObject contextHint,
String language)
transition - language -
public static void removeGuard(Transition t,
EObject contextHint,
String language)
t - contextHint - language -
public static void removeEffect(Transition t,
EObject contextHint,
String language)
t - contextHint - language -
public static boolean isExcluded(Trigger trigger,
Transition trans,
EObject contextHint)
trigger - - The trigger in questioncontextHint - - Either the transition's view (if available)
true if the trigger is considered excluded in the given context. false otherwise.
public static void excludeTrigger(Trigger trigger,
Transition trans,
EObject contextHint)
trigger - The trigger to excludecontextHint - The redefinition context hint
public static void unexcludeTrigger(Trigger trigger,
Transition trans,
EObject contextHint)
trigger - trans - redefinitionHint - public static TransitionKind getKind(Transition fragment)
fragment - - any (redefining or not) Transition fragment
public static void setRedefinedTransition(Transition redefining,
Transition redefined)
|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||