org.eclipse.mofscript.runtime.uml2Extensions
Class UML2_MOFScriptUtil
java.lang.Object
org.eclipse.mofscript.runtime.uml2Extensions.UML2_MOFScriptUtil
public class UML2_MOFScriptUtil
- extends java.lang.Object
Utility class for UML2
- Author:
- jol
Method Summary |
static void |
applyProfile(java.lang.Object umlmdl,
java.lang.Object profile)
|
static void |
applyStereotype(org.eclipse.emf.ecore.EObject forObject,
org.eclipse.emf.ecore.EObject stereotype)
|
static org.eclipse.uml2.uml.Profile |
getAppliedProfile(java.lang.Object umlmdl,
java.lang.String pName)
|
static java.util.List<org.eclipse.uml2.uml.Profile> |
getAppliedProfiles(java.lang.Object umlmdl)
|
static java.util.List |
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.List |
getStereoTypes(org.eclipse.emf.ecore.EObject forObject)
returns the stereotypes for a UML2 element |
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)
|
static void |
setValue(org.eclipse.emf.ecore.EObject forObject,
org.eclipse.emf.ecore.EObject stereotype,
java.lang.String property,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
umlModelProposals
public static final java.lang.String[] umlModelProposals
UML2_MOFScriptUtil
public UML2_MOFScriptUtil()
applyProfile
public static void applyProfile(java.lang.Object umlmdl,
java.lang.Object profile)
- Parameters:
umlmdl
- profile
-
getAppliedProfiles
public static java.util.List<org.eclipse.uml2.uml.Profile> getAppliedProfiles(java.lang.Object umlmdl)
- Parameters:
umlmdl
-
- Returns:
getAppliedProfile
public static org.eclipse.uml2.uml.Profile getAppliedProfile(java.lang.Object umlmdl,
java.lang.String pName)
- Parameters:
umlmdl
- pName
-
- Returns:
applyStereotype
public static void applyStereotype(org.eclipse.emf.ecore.EObject forObject,
org.eclipse.emf.ecore.EObject stereotype)
- Parameters:
forObject
- stereotype
-
setValue
public static void setValue(org.eclipse.emf.ecore.EObject forObject,
org.eclipse.emf.ecore.EObject stereotype,
java.lang.String property,
java.lang.String value)
- Parameters:
forObject
- stereotype
- property
- value
-
getStereoTypes
public static java.util.List 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.List 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: