Search Results for

    Show / Hide Table of Contents

    About Stereotype Definitions

    Stereotypes can only be created and applied in Intent Architect Designers if their Stereotype Definitions are accessible. These Definitions need to be created first and can often be found when a Module is installed in your Application. They offer a blueprint that Intent Architect can recognize when trying to apply them.

    How the base properties of Stereotype Definitions look like

    Property Value Description
    Target Mode Elements of Type Only allows the Stereotype to be applied on Elements found in the Target property.
    Elements that reference Only allows the Stereotype to be applied on Elements' attributes/fields or associations that reference the Elements found in the Target property.
    All elements No constraints on where the Stereotype can be applied.
    Target Elements found in Designer The Element types upon which the Stereotype Definition may be applied.
    Apply mode Manually The user has to explicitly apply a Stereotype on a Target Element.
    On element created When a Target Element is created, the Stereotype is automatically applied but it can be removed.
    Always The Stereotype exists permanently on any Target Element and cannot be removed (as long as the Stereotype Definition exists).
    Icon Formatted Text Change the icon for the Stereotype by pressing the button with an ellipses.
    Display Icon Check box When selected, the Stereotype's icon will appear in the tree node and visual modellers for elements on which it is applied.
    Display Text Function Using the Javascript language, write a formatted text string that will be used by the Designer to add a Display Text where available. Example: return `[${properties["Router Link"].value}]`.
    Order Number Each Stereotype can be ordered according to this numerical value (in ascending order) in the Properties panel located on the right hand side in Intent Architect within a designer.

    Stereotype Properties

    Stereotypes Definitions allow any number of Properties to be added to them. Property names must be unique per Stereotype Definition. By default Stereotype Definition Properties have their Control Type set to Text Box which allows capturing of free text, but there are many other Control Types which can be selected.

    How the properties of Stereotype Definition Properties look like

    Property Type Description
    Name Text Specify a friendly name for the Property, spaces and punctuation are allowed.
    Control Type Type Allows the Property to capture a single line of free text that represents a string. See here for more detail.
    Default Value Control Type Value Specify a default value in for this Property depending on the Control Type specified.
    Placeholder Text Specify a description for this Property's input field which a user of the Stereotype can see which describes what is expected.
    Is Active Function Javascript Write a script that returns true/false in order to determine if the Property will be visible/hidden or not. By default this will be Active.
    Is Required Function Javascript Write a script that returns true/false in order to determine if the a value is required for this Property which is validated by Intent Architect. By default this will not be required.

    Control Types

    Text Box

    Allows the Property to capture a single line of free text that represents a string.

    Property of type Text Box featured on a Stereotype

    Number

    Allows only the capture of a Numerical integer value for this Property.

    Property of type Number featured on a Stereotype

    Checkbox

    Presents a checkbox to capture a boolean value for the Property.

    Property of type Checkbox featured on a Stereotype

    Text Area

    Allows the Property to capture multiple-lines of free text that represents a string.

    Property of type Text Area featured on a Stereotype

    Select/Multi-select

    Options

    Provides an additional Options field where the Developer can specify explicit options which can be selected for that Stereotype Property.

    Example of the Option Select Property type

    Property of type Select Options featured on a Stereotype

    Lookup element

    Provides an additional Lookup types field where the Developer can select Element types in order to make the Property a dropdown control that features instances of those Element types.

    Example of the Element Select Property type

    Property of type Select Element Lookup featured on a Stereotype

    Lookup Children

    Provides additional Root Type Function and Lookup types fields where a Developer can determine which Element type's "child elements" can be selected. Use the Lookup types to select the Child-Element to be selected and specify the function to evaluate how to determine the Parent-Element in the Root Type Function field.

    Example of selecting Enum Literals from a previously selected Enum:

    Example of the Element Select Property type

    Example of the Child Element Select Property type

    Root Type Function expression:

    return properties['Enum Selection'].value;
    

    Property of type Select Child Element Lookup featured on a Stereotype

    Javascript Function

    Exposes the Property as a Javascript type field where the Developer can use the built in Javascript editor to define a script which can be leveraged by other Stereotype Properties or Designer elements.

    Property of type Javascript featured on a Stereotype

    Icon

    Exposes the Property as a standard Icon selector which acts in the same manner as the Icon property found on the Stereotype Definition itself.

    Property of type Icon featured on a Stereotype

    See also

    • How to use Stereotypes
    • Edit this page
    ☀
    ☾
    In this article
    Back to top Copyright © 2017-, Intent Software Pte Ltd.