MultiplicityTemplate

Labs

class MultiplicityTemplate

Description

A multiplicity [lower..upper] or [upper]: the template form of the bracketed clause of a feature declaration, built by bounds().

Not an ExpressionTemplate: the grammar admits only an integer literal, * or a feature reference as a bound, where an expression position admits any expression. lower is None in the one-bound form, so [1] and [1..1] stay apart, as their texts do. Equality is structural over the bound templates, a referenced feature compared by element_id as ReferenceTemplate compares it.

These are the bounds as written. The evaluated bounds – integers, the unbounded * as syside.query.UNBOUNDED – are syside.query.multiplicity_bounds’s.

Inheritance:

Members defined in MultiplicityTemplate (2 members)

lower

RW

upper

RW

Attributes

lower: syside.experimental.expressions.BoundTemplate | None = None
upper: syside.experimental.expressions.BoundTemplate = None

Used by