public class PCMServices extends Object
| Constructor and Description |
|---|
PCMServices() |
| Modifier and Type | Method and Description |
|---|---|
EObject |
editPCMRandomVariable(EObject pcmRandomVariable,
String expressionString)
Sets the given string as a specification on the
PCMRandomVariable . |
Collection<EStructuralFeature> |
getParameters(org.modelversioning.emfprofile.Stereotype stereotype)
Returns the
EStructuralFeatures that define the Stereotype`s parameters. |
Collection<org.modelversioning.emfprofileapplication.ProfileImport> |
getProfileImports(EObject eObject)
Returns the
Profiles on the given EObject. |
Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> |
getRoleApplications(EObject eObject)
|
Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> |
getStereotypeApplications(EObject eObject) |
Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> |
getStereotypeApplicationsWithoutRoles(EObject eObject) |
boolean |
hasRoles(EObject object)
Returns, whether the given
StereotypableElement has roles applied. |
boolean |
isRole(org.modelversioning.emfprofileapplication.StereotypeApplication stereotypeApplication) |
boolean |
isSystemRole(org.modelversioning.emfprofileapplication.StereotypeApplication stereotypeApplication) |
void |
queryAndSetParameterValue(EStructuralFeature parameter,
EObject owningEObject)
Queries an
String literal from the user and uses
setParameterValue(EStructuralFeature, EObject, String) to set the value. |
void |
setParameterValue(EStructuralFeature parameter,
EObject owningEObject,
String valueLiteral)
Sets the value of the
EStructuralFeature on the given EObject to the parsed
value literal. |
public Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> getStereotypeApplications(EObject eObject)
StereotypeAPI.getStereotypeApplications(EObject)public boolean isRole(org.modelversioning.emfprofileapplication.StereotypeApplication stereotypeApplication)
ArchitecturalTemplateAPI.isRole(Stereotype)public boolean isSystemRole(org.modelversioning.emfprofileapplication.StereotypeApplication stereotypeApplication)
ArchitecturalTemplateAPI.isSystemRole(Stereotype)public void queryAndSetParameterValue(EStructuralFeature parameter, EObject owningEObject)
String literal from the user and uses
setParameterValue(EStructuralFeature, EObject, String) to set the value.parameter - the parameter to setowningEObject - the object for which the feature will be setpublic void setParameterValue(EStructuralFeature parameter, EObject owningEObject, String valueLiteral)
EStructuralFeature on the given EObject to the parsed
value literal.parameter - the feature to setowningEObject - the object for which the feature will be setvalueLiteral - the literal representing the new valuepublic Collection<EStructuralFeature> getParameters(org.modelversioning.emfprofile.Stereotype stereotype)
EStructuralFeatures that define the Stereotype`s parameters.stereotype - the Stereotypepublic Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> getRoleApplications(EObject eObject)
eObject - object to get roles forArchitecturalTemplateAPI.getRoleApplications(EObject)public Collection<org.modelversioning.emfprofileapplication.StereotypeApplication> getStereotypeApplicationsWithoutRoles(EObject eObject)
public Collection<org.modelversioning.emfprofileapplication.ProfileImport> getProfileImports(EObject eObject)
Profiles on the given EObject.eObject - object to get profiles forArchitecturalTemplateAPI#getProfiles(EObject)public boolean hasRoles(EObject object)
StereotypableElement has roles applied.object - object to testpublic EObject editPCMRandomVariable(EObject pcmRandomVariable, String expressionString)
PCMRandomVariable . For this it first
parses it to prevent any errors.pcmRandomVariable - the random variableexpression - the expression