Package com.nomagic.magicdraw.uml
Class Refactoring.RelationReversing
- java.lang.Object
 - 
- com.nomagic.magicdraw.uml.Refactoring.RelationReversing
 
 
- 
- Enclosing class:
 - Refactoring
 
@OpenApiAll public static class Refactoring.RelationReversing extends java.lang.ObjectReverses direction of a relationship. Switches relation source with target. An example how to reverse a relationship:// We have an arbitrary element which represents a relationship. Element element = ...; // Relationship reversing should be wrapped with session create/close calls. SessionManager sessionManager = SessionManager.getInstance(); sessionManager.createSession("Reverse relation"); // Reverse the relationship. Refactoring.RelationReversing.reverseRelationDirection(element); // Close the session. sessionManager.closeSession(); 
- 
- 
Constructor Summary
Constructors Constructor Description RelationReversing() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidreverseRelationDirection(Element relation)Reverses direction of a relationship. 
 - 
 
- 
- 
Method Detail
- 
reverseRelationDirection
public static void reverseRelationDirection(Element relation)
Reverses direction of a relationship. Switches relation source with target.- Parameters:
 relation- element which represents a relation element.
 
 - 
 
 -