Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more methods for managing stereotypes in Cameo 19.0 SP4 #9

Open
agarciadom opened this issue Oct 12, 2022 · 1 comment
Open

Add more methods for managing stereotypes in Cameo 19.0 SP4 #9

agarciadom opened this issue Oct 12, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@agarciadom
Copy link
Member

Cameo/MagicDraw 2021x expose an appliedStereotype feature for accessing the stereotypes applied to an element, but this is not available from Cameo 19.0 SP4. One alternative would be to define a number of Model methods to cover for this gap:

  • Model.applyStereotype(object, stereotype)
  • Model.getAppliedStereotypes(object).
  • Model.hasStereotype(object, stereotype)
  • Model.removeStereotype(object, stereotype)
@agarciadom agarciadom added enhancement New feature or request priority:high High priority task labels Oct 12, 2022
@agarciadom agarciadom changed the title Add more methods for managing profiles in Cameo 19.0 SP4 Add more methods for managing stereotypes in Cameo 19.0 SP4 Oct 12, 2022
@abhijeetgauravm
Copy link

Use utility class com.nomagic.uml2.ext.jmi.helpers.StereotypesHelper to work with profiles, stereotypes, tagged values.

@agarciadom agarciadom removed the priority:high High priority task label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants