Properties of a multiple element of a sequence type
You can assign certain properties to a multiple element in a sequence type.
When an element in a sequence is a multiple (that is, its maxOccurs property is set to unbounded), you can define the following properties:
| Property | Values | Meaning | Default |
|---|---|---|---|
| separator | String or element name | The text used as a separator when this type is used in a multiple. | none |
| separatorNewline (guided editor only) |
true or false | True if the separator must be preceded with a newline | false |
| separatorIndent (guided editor only) |
signed integer | The level of indentation of the separator when separatorNewline is true. | 0 |
| generatorText (guided editor only) |
String | The text to be displayed as the generator text instead of the arrow icon. | arrow icon |
| generatorNewline (guided editor only) |
true or false | True if the generator token should be preceded with a newline. | false |
| generatorIndent (guided editor only) |
signed integer | The level of indentation of the generator when generatorNewline is true. | 0 |
| label (guided editor only) |
String | The name of the element as it should appear in the “Delete...”, “Cut...”, and “Copy...” items of the pop-up menu in the guided editor. | none |
You use the separator property to define a text to be used when this sequence is used in a multiple list. The value of this property is some text, which is inserted between each occurrence of the type in the list.
Example
The following definition inserts a comma between each item in a collection.
<T-collection>.<item>.separator = ,