public final class RTModelOperations
extends java.lang.Object
| Constructor and Description |
|---|
RTModelOperations() |
| Modifier and Type | Method and Description |
|---|---|
static void |
changeSource(org.eclipse.uml2.uml.Element relationship,
org.eclipse.uml2.uml.Element oldSource,
org.eclipse.uml2.uml.Element newSource)
Changes the source of the given UML2 relationship element.
|
static void |
changeTarget(org.eclipse.uml2.uml.Element relationship,
org.eclipse.uml2.uml.Element oldTarget,
org.eclipse.uml2.uml.Element newTarget)
Changes the target of the given UML2 relationship element.
|
static org.eclipse.uml2.uml.Generalization |
createCapsuleGeneralization(RTCapsule specific,
RTCapsule general,
boolean excludeNew)
Creates a generalization between capsules.
|
static org.eclipse.uml2.uml.Element |
createElement(org.eclipse.uml2.uml.Element container,
org.eclipse.gmf.runtime.emf.type.core.IElementType type)
Creates a UML2 element in the given container.
|
static org.eclipse.uml2.uml.Element |
createRelationship(org.eclipse.uml2.uml.Element container,
org.eclipse.uml2.uml.Element source,
org.eclipse.uml2.uml.Element target,
org.eclipse.gmf.runtime.emf.type.core.IElementType type)
Creates a UML2 relationship element in the given container.
|
static void |
destroy(org.eclipse.uml2.uml.Element element)
Destroys the given UML2 element.
|
static void |
destroyCapsuleGeneralization(RTCapsule specific,
RTCapsule general,
boolean absorbOld)
Destroys a generalization between capsules.
|
public static org.eclipse.uml2.uml.Element createElement(org.eclipse.uml2.uml.Element container,
org.eclipse.gmf.runtime.emf.type.core.IElementType type)
container - type - public static org.eclipse.uml2.uml.Element createRelationship(org.eclipse.uml2.uml.Element container,
org.eclipse.uml2.uml.Element source,
org.eclipse.uml2.uml.Element target,
org.eclipse.gmf.runtime.emf.type.core.IElementType type)
container - source - target - type - public static void destroy(org.eclipse.uml2.uml.Element element)
element - public static void changeSource(org.eclipse.uml2.uml.Element relationship,
org.eclipse.uml2.uml.Element oldSource,
org.eclipse.uml2.uml.Element newSource)
relationship - oldSource - newSource - public static void changeTarget(org.eclipse.uml2.uml.Element relationship,
org.eclipse.uml2.uml.Element oldTarget,
org.eclipse.uml2.uml.Element newTarget)
relationship - oldSource - newSource - public static org.eclipse.uml2.uml.Generalization createCapsuleGeneralization(RTCapsule specific, RTCapsule general, boolean excludeNew)
To create generalizations between regular classes
use createRelationship(Element, Element, Element, IElementType).
specific - The specialization class that will inherit from 'general'general - The 'super' class that will be the target of the generalizationexcludeNew - Whether all newly inherited content should be excludedGeneralizationRTModelOperations#createRelationship(Element, Element, Element, IElementType)}public static void destroyCapsuleGeneralization(RTCapsule specific, RTCapsule general, boolean absorbOld)
To destroy generalizations between regular classes,
use destroy(Element).
specific - The specialization class that will inherit from 'general'general - The 'super' class that will be the target of the generalizationabsorbOld - Whether all inherited content should be retained as local content