org.sintef.mofscript.uml2Extensions.runtime
Class UML2_MOFScriptUtil

java.lang.Object
  extended by org.sintef.mofscript.uml2Extensions.runtime.UML2_MOFScriptUtil

public class UML2_MOFScriptUtil
extends java.lang.Object

Utility class for UML2

Author:
jol

Field Summary
static java.lang.String[] umlOperations
          Holds the list of valid UML2 operations
 
Constructor Summary
UML2_MOFScriptUtil()
           
 
Method Summary
static org.eclipse.emf.ecore.EObject getStereoType(org.eclipse.emf.ecore.EObject forObject, java.lang.String name)
          returns a named stereotype for a uml2 element
static java.util.Set getStereoTypes(org.eclipse.emf.ecore.EObject forObject)
          returns the stereotypes for a UML2 element
static java.util.List getStereoTypesFromAnnotation(org.eclipse.emf.ecore.EObject forObject, org.eclipse.emf.ecore.resource.ResourceSet rSet)
          Returns a stereotype defined by an annotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

umlOperations

public static final java.lang.String[] umlOperations
Holds the list of valid UML2 operations

Constructor Detail

UML2_MOFScriptUtil

public UML2_MOFScriptUtil()
Method Detail

getStereoTypes

public static java.util.Set getStereoTypes(org.eclipse.emf.ecore.EObject forObject)
returns the stereotypes for a UML2 element

Parameters:
forObject -
Returns:

getStereoType

public static org.eclipse.emf.ecore.EObject getStereoType(org.eclipse.emf.ecore.EObject forObject,
                                                          java.lang.String name)
returns a named stereotype for a uml2 element

Parameters:
forObject -
name -
Returns:

getStereoTypesFromAnnotation

public static java.util.List getStereoTypesFromAnnotation(org.eclipse.emf.ecore.EObject forObject,
                                                          org.eclipse.emf.ecore.resource.ResourceSet rSet)
Returns a stereotype defined by an annotation

Parameters:
forObject -
rSet -
Returns: