Properties common to all types

You can set some properties on any sequence, choice, or terminal types defined in the abstract syntax.

The following table lists the properties that you can set on the types defined in the abstract syntax:

Table 1. Common properties
Property Values Meaning Default
newline true or false True if a newline is inserted before the element. false
indent signed integer Level of indent of the element. 0
style String Specifies the name of a style to be used to display the element in the rule editor. The definition of a style is contained in property files. default, which is the predefined default style

menuText

(guided editor only)

String The text to display in a menu when this element appears in a choice. The menuText property is used only when this element appears in a choice. The name of the element itself between brackets: <choice1>
type name of a vocabulary concept Specifies the type of the element. The type must be the name of a known concept in the vocabulary.  
cardinality single or multiple Specifies the cardinality of the element, that is, whether this element represents a single value or a list of values. single
verbalization.article no, definite, indefinite or quantitative

Defines the article to use when verbalizing this element:

no = no article

definite = a definite article ("the book")

indefinite = an indefinite article ("a book")

quantitative = an article for a quantity of objects ("all books")

 
verbalization.plural boolean Specifies whether or not the verbalization of this element uses the plural ("the books", "books"). false
verbalization.partitive boolean Specifies whether or not the verbalization of this element uses the partitive mode ("of a book"). false
groupFilter list of comma-separated words Specifies the list of groups that are valid for this element. Only elements that have the group property set to one of the words in the list is offered in choices after this point.  
group word Specifies the group for this element.  
placeholder boolean Determines whether or not to use a placeholder in the text when this element appears in the text but has not yet been filled. false
placeholder.text text, with optional placeholder {term}

Defines the term to use as a placeholder.

By default, the placeholder is the type of the element: if age is greater than <a number>.

If this property is defined, the provided term is used instead.

Example:

placeholder.text = value

set X to <value>

Note: the square brackets < > are automatically added. Do not include them in the property value.

 
placeholder.text.plural boolean Defines the placeholder to use when the verbalization context is plural.  
recursive (guided editor only) boolean In the Guided editor, specifies whether or not the options include only choices compatible with the expected type, or if they include all the choices for recursive editing.  
expression boolean Specifies if this abstract syntax type is an abstract syntax expression, that is, if it has a type.  
semanticAction Java™ callback Defines a semantic action to apply when building a syntax node of this type (see semantic actions).  
overrideSemanticAction boolean Defines whether or not the semantic action associated with this element overrides the semantic action defined for the corresponding type (see semantic actions).  
conceptInfoGetter Java callback Defines the Java callback that is used while building the syntax tree to retrieve the ConceptInfo (type and cardinality) of this syntax node.