|
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.RedefStateUtil
public class RedefStateUtil
| 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 | |
|---|---|
RedefStateUtil()
|
|
| Method Summary | |
|---|---|
static List |
getAllConnectionPoints(State state,
EObject contextHint)
Utility method to get the set of Inherited + Local - Redefined Connection Points |
static List |
getAllPublicConnectionPoints(State state,
EObject contextHint)
Utility method to get the set of Inherited + Local - Redefined _PUBLIC_ Connection Points |
static List |
getAllRegions(State state,
EObject contextHint)
Utility method to get the set of Inherited + Local - Redefined regions |
static Behavior |
getDoActivity(State state,
EObject contextHint)
Utility method to get the Do Activity |
static String |
getDoActivityCode(State state,
EObject contextHint,
String language)
Utility method to get a local or inherited "do activity" code for the given state and given language |
static Behavior |
getEntry(State state,
EObject contextHint)
Utility method to get the Entry Activity |
static String |
getEntryCode(State state,
EObject contextHint,
String language)
Utility method to get a local or inherited entry code for the given state and given language |
static Behavior |
getExit(State state,
EObject contextHint)
Utility method to get the Exit Activity |
static String |
getExitCode(State state,
EObject contextHint,
String language)
Utility method to get a local or inherited exit code for the given state and given language |
protected static List |
getInheritedRegions(State context,
Set visited)
Utility method for returning the set of "inherited" regions for a given state |
static List |
getLocalConnectionPoints(State state)
Use it instead of calling state.getConnectionPoints() directly |
static Behavior |
getLocalDoActivity(State state)
Use it instead of calling state.getDoActivity() directly |
static Behavior |
getLocalEntry(State state)
Use it instead of calling state.getEntry() directly |
static Behavior |
getLocalExit(State state)
use it instead of calling state.getExit() directly |
static List |
getLocalRegions(State state)
Use it instead of calling state.getRegions() directly |
static boolean |
isComposite(State state,
EObject contextHint)
|
static boolean |
isDoActivityInherited(State state,
EObject contextHint,
String language)
Utility method - is the "do activity" code inherited for the given state and given language |
static boolean |
isDoActivityRedefined(State state,
EObject contextHint,
String language)
Utility method - is the "do activity" code redefined for the given state and given language in the given context |
static boolean |
isEntryInherited(State state,
EObject contextHint,
String language)
Utility method - is the entry code inherited for the given state and given language |
static boolean |
isEntryRedefined(State state,
EObject contextHint,
String language)
Utility method - is the entry code redefined for the given state and given language in the given context |
static boolean |
isExitInherited(State state,
EObject contextHint,
String language)
Utility method - is the exit code inherited for the given state and given language |
static boolean |
isExitRedefined(State state,
EObject contextHint,
String language)
Utility method - is the exit code redefined for the given state and given language in the given context |
static boolean |
isOrthogonal(State state,
EObject contextHint)
|
static boolean |
isSimple(State state,
EObject contextHint)
|
static boolean |
localIsComposite(State state)
Use it instead of calling state.isComposite() directly |
static boolean |
localIsOrthogonal(State state)
Use it instead of calling state.isOrthogonal() directly |
static boolean |
localIsSimple(State state)
Use it instead of calling state.isSimple() directly |
static void |
removeDoActivityCode(State state,
EObject contextHint,
String language)
Utility method to remove state "do activity" code. |
static void |
removeEntryCode(State state,
EObject contextHint,
String language)
Utility method to remove state entry code. |
static void |
removeExitCode(State state,
EObject contextHint,
String language)
Utility method to remove state exit code. |
| 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 RedefStateUtil()
| Method Detail |
|---|
public static List getLocalConnectionPoints(State state)
state -
public static List getAllConnectionPoints(State state,
EObject contextHint)
context - the State
public static List getAllPublicConnectionPoints(State state,
EObject contextHint)
context - the State
protected static List getInheritedRegions(State context,
Set visited)
context - the state
public static List getLocalRegions(State state)
state -
public static List getAllRegions(State state,
EObject contextHint)
context - the state
public static boolean localIsSimple(State state)
state -
public static boolean isSimple(State state,
EObject contextHint)
public static boolean localIsComposite(State state)
state -
public static boolean isComposite(State state,
EObject contextHint)
public static boolean localIsOrthogonal(State state)
state -
public static boolean isOrthogonal(State state,
EObject contextHint)
public static Behavior getLocalEntry(State state)
state -
public static Behavior getEntry(State state,
EObject contextHint)
context - the state
public static Behavior getLocalDoActivity(State state)
state -
public static Behavior getDoActivity(State state,
EObject contextHint)
context - the state
public static Behavior getLocalExit(State state)
state -
public static Behavior getExit(State state,
EObject contextHint)
context - the state
public static boolean isEntryInherited(State state,
EObject contextHint,
String language)
state - language -
public static boolean isEntryRedefined(State state,
EObject contextHint,
String language)
state - contextHint - language -
true if the entry code is redefined in this context
public static boolean isExitInherited(State state,
EObject contextHint,
String language)
state - language -
public static boolean isExitRedefined(State state,
EObject contextHint,
String language)
state - contextHint - language -
true if the exit code is redefined in this context
public static boolean isDoActivityInherited(State state,
EObject contextHint,
String language)
state - language -
public static boolean isDoActivityRedefined(State state,
EObject contextHint,
String language)
state - contextHint - language - the language to use, or null to use the currently active language
true if the do activity code is redefined in this context
public static String getEntryCode(State state,
EObject contextHint,
String language)
state - language - the language to use, or null to use the currently active language
public static String getExitCode(State state,
EObject contextHint,
String language)
state - language - the language to use, or null to use the currently active language
public static String getDoActivityCode(State state,
EObject contextHint,
String language)
state - language -
public static void removeEntryCode(State state,
EObject contextHint,
String language)
t - contextHint - language -
public static void removeExitCode(State state,
EObject contextHint,
String language)
t - contextHint - language -
public static void removeDoActivityCode(State state,
EObject contextHint,
String language)
t - contextHint - language -
|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||