Une image contenant texte, signe

Description générée automatiquement

JSON Stereotypes

 

Creating Sterotypes

 

This custom JSON object is for creating stereotypes (typically in a read-write profile but may also be in packages) rather than applying stereotypes to other model elements.

A group of black and white text

Description automatically generated

Json stereotypes have the follow attributes:

·       type = “Stereotype”

·       appliesTo = [comma separated list of metaclasses] 

·       isNewTerm (Boolean, optional) *

*If isNewTerm is used then appliesTo should be a single metaclass. Rhapsody does not allow new terms to be applicable t more than one metaclass.

 

A screen shot of a computer code

Description automatically generated

Applying Stereotypes

 

To apply a stereotype to an element, the element should have an appliedStereotypes array. These elements have the following attributes:

·       type = “Stereotype”

·       fullPathName = full path to the stereotype to apply

A close-up of a computer code

AI-generated content may be incorrect.