|
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.RedefClassifierUtil
public class RedefClassifierUtil
| 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 | |
|---|---|
RedefClassifierUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
contains(EncapsulatedClassifier clazz,
Port port)
|
static List |
getAllConnectors(StructuredClassifier context)
Utility method to get the set of Inherited + Local - Redefined ports |
protected static List |
getAllConnectors(StructuredClassifier context,
Set visited,
Set excluded)
Local method to get the set of Inherited + Local - Redefined ports |
static List |
getAllPorts(EncapsulatedClassifier context)
Utility method to get the set of Inherited + Local - Redefined ports |
protected static List |
getAllPorts(EncapsulatedClassifier context,
Set visited,
Set excluded)
Local method to get the set of Inherited + Local - Redefined ports |
static List |
getAllRoles(StructuredClassifier context)
Utility method to get the set of Inherited + Local - Redefined roles |
protected static List |
getAllRoles(StructuredClassifier context,
Set visited,
Set excluded)
Local method |
protected static List |
getInheritedConnectors(StructuredClassifier context,
Set visited)
Utility method for returning the set of inherited connectors for a given classifier |
protected static List |
getInheritedPorts(EncapsulatedClassifier context,
Set visited)
Utility method for returning the set of inherited ports for a given classifier |
protected static List |
getInheritedRoles(StructuredClassifier context,
Set visited)
Returns the list of inherited roles for the given context |
static List |
getLocalConnectors(StructuredClassifier context)
use it instead of calling context.getOwnedConnectors() directly |
static List |
getLocalPorts(EncapsulatedClassifier context)
use it instead of calling context.getOwnedPorts() directly |
static List |
getLocalRoles(StructuredClassifier context)
Use it instead of calling context.getRoles() directly |
static boolean |
isLocal(StructuredClassifier context,
Feature feature)
Utility method - is the property local to the classifier (i.e. not inherited) |
static void |
setRole(ConnectorEnd sourceConnectorEnd,
ConnectableElement connectable)
Sets the connector end reference taking redefinitions into account. |
| 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 RedefClassifierUtil()
| Method Detail |
|---|
protected static List getInheritedRoles(StructuredClassifier context,
Set visited)
context - the classifier
protected static List getAllRoles(StructuredClassifier context,
Set visited,
Set excluded)
context - the classifiervisited - to avoid circular inheritance revisits
public static List getLocalRoles(StructuredClassifier context)
context -
public static List getAllRoles(StructuredClassifier context)
context - class for which to get the set of roles
public static boolean isLocal(StructuredClassifier context,
Feature feature)
context - p -
protected static List getInheritedPorts(EncapsulatedClassifier context,
Set visited)
context - the classifier
protected static List getAllPorts(EncapsulatedClassifier context,
Set visited,
Set excluded)
context - class for which to get the set of ports
public static List getLocalPorts(EncapsulatedClassifier context)
context -
public static List getAllPorts(EncapsulatedClassifier context)
context - class for which to get the set of ports
protected static List getInheritedConnectors(StructuredClassifier context,
Set visited)
context - the classifier
protected static List getAllConnectors(StructuredClassifier context,
Set visited,
Set excluded)
context - class for which to get the set of ports
public static List getLocalConnectors(StructuredClassifier context)
context -
public static List getAllConnectors(StructuredClassifier context)
context - class for which to get the set of ports
public static void setRole(ConnectorEnd sourceConnectorEnd,
ConnectableElement connectable)
ConnectorEnd.setRole(ConnectableElement)
sourceConnectorEnd - connectable -
public static boolean contains(EncapsulatedClassifier clazz,
Port port)
clazz - port -
|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||