com.ibm.xtools.uml.rt.core
Class RTModelOperations

java.lang.Object
  extended by com.ibm.xtools.uml.rt.core.RTModelOperations

public class RTModelOperations
extends java.lang.Object

A facade class for common model operations

Author:
gsturov

Constructor Summary
RTModelOperations()
           
 
Method Summary
static void changeSource(Element relationship, Element oldSource, Element newSource)
          Changes source of given UML2 relationship element
static void changeTarget(Element relationship, Element oldTarget, Element newTarget)
          Changes target of given UML2 relationship element
static Element createElement(Element container, IElementType type)
          Creates a UML2 element in the given container
static Element createRelationship(Element container, Element source, Element target, IElementType type)
          Creates a UML2 relationship element in the given container
static void destroy(Element element)
          Destroys given UML2 element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTModelOperations

public RTModelOperations()
Method Detail

createElement

public static Element createElement(Element container,
                                    IElementType type)
Creates a UML2 element in the given container

Parameters:
container -
type -
Returns:

createRelationship

public static Element createRelationship(Element container,
                                         Element source,
                                         Element target,
                                         IElementType type)
Creates a UML2 relationship element in the given container

Parameters:
container -
source -
target -
type -
Returns:

destroy

public static void destroy(Element element)
Destroys given UML2 element

Parameters:
element -

changeSource

public static void changeSource(Element relationship,
                                Element oldSource,
                                Element newSource)
Changes source of given UML2 relationship element

Parameters:
relationship -
oldSource -
newSource -

changeTarget

public static void changeTarget(Element relationship,
                                Element oldTarget,
                                Element newTarget)
Changes target of given UML2 relationship element

Parameters:
relationship -
oldSource -
newSource -