org.jupe.synchronisation
Class Util

java.lang.Object
  extended by org.jupe.synchronisation.Util

public final class Util
extends java.lang.Object

Author:
Michael Pradel

Method Summary
static org.eclipse.uml2.uml.Type findOrCreateType(java.lang.String absoluteName, JupeProject jupeProject)
          Helper method to find a type in the UML2 model, or cause its propagation from the source to the UML2 model (that means, it will be created in the UML2 model).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findOrCreateType

public static org.eclipse.uml2.uml.Type findOrCreateType(java.lang.String absoluteName,
                                                         JupeProject jupeProject)
Helper method to find a type in the UML2 model, or cause its propagation from the source to the UML2 model (that means, it will be created in the UML2 model).

That method clues together two layers of the Jupe architecture: Source and UML2.

It is expected that the absoluteName is a validated type name.

Parameters:
absoluteName - The absolute name of the type to get from the UML2 model.
jupeProject - The current Jupe project.
Returns:
The UML2 element of the type.