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 int[] umlOperationParameters
           
static java.lang.String[] umlOperations
          Holds the list of valid UML2 operations
static java.lang.String[] umlProposals
           
 
Constructor Summary
UML2_MOFScriptUtil()
           
 
Method Summary
static java.util.Set getKeywords(org.eclipse.emf.ecore.EObject forObject)
           
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
static java.lang.Object getValue(org.eclipse.emf.ecore.EObject forObject, java.lang.Object stereotype, java.lang.String name)
           
static boolean hasKeyword(org.eclipse.emf.ecore.EObject forObject, java.lang.String name)
           
static java.lang.Boolean hasValue(org.eclipse.emf.ecore.EObject forObject, java.lang.Object stereotype, java.lang.String name)
           
 
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


umlOperationParameters

public static final int[] umlOperationParameters

umlProposals

public static final java.lang.String[] umlProposals
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:

getValue

public static java.lang.Object getValue(org.eclipse.emf.ecore.EObject forObject,
                                        java.lang.Object stereotype,
                                        java.lang.String name)
                                 throws MofScriptExecutionException
Parameters:
forObject -
stereotype -
name -
Returns:
Throws:
MofScriptExecutionException

hasValue

public static java.lang.Boolean hasValue(org.eclipse.emf.ecore.EObject forObject,
                                         java.lang.Object stereotype,
                                         java.lang.String name)
                                  throws MofScriptExecutionException
Parameters:
forObject -
stereotype -
name -
Returns:
Throws:
MofScriptExecutionException

getKeywords

public static java.util.Set getKeywords(org.eclipse.emf.ecore.EObject forObject)
Parameters:
forObject -
Returns:

hasKeyword

public static boolean hasKeyword(org.eclipse.emf.ecore.EObject forObject,
                                 java.lang.String name)
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: