Une image contenant texte, signe

Description générée automatiquement

JSON Tags

 

Overview

Tags may be:

·       Tags defined on stereotypes

·       Local tags (that is they are tags locally defined on model elements rather than tags that are present because a stereotype is applied)

·       Tags present because a stereotype is applied

 

All types of tag use the same custom JSON objects which has the following attributes:

·       type = “Tag”

·       tagType = [type of tag] *

·       tagValue (Optional)

·       tagValues (Optional, only for tags with multiplicity)

·       tagMultiplicity (multiplicity of tag, optional – default is 1)

 

*Could be primitive types or references to other model elements such as types or new term stereotypes. Only the full path is required, the importer will check that location for either a stereotype or a type with that name.  

 

A close up of a text

Description automatically generated

 

A close-up of a computer screen

Description automatically generated

 

A close up of text

Description automatically generated

 

A close up of a text

Description automatically generated

Tags with Multiplicity

For tags that have multiplicity, there are two ways to specify the values:

 

Model Element Tags

If the tag is typed by a model element, then create a tagValues array. The array should contain strings which are references to model elements (metaclass is not required as this is taken from the tagType).

 

A white background with black text

Description automatically generated

Primitive Tags

For non-model element tags (or tags typed by Enumerated Types) simply use a comma separated list of values:

A close up of text

Description automatically generated

A close up of a computer screen

AI-generated content may be incorrect.