Hide Comments

Cardinality is the measure of the number of elements in a set. In RAPID-ML™, Cardinality indicators are used in conjunction with Data Structure properties and when modeling Data Structure realizations in Resource API definitions.

Syntax

(<property-definition>|<property-name>)(<cardinality-symbol> | <cardinality-spec>)

Examples

// Applied after the types of properties within a structure

otherNames : string*

addresses : as reference to Address[1..*]

// Applied after the Names of properties in a Property Set defined in a Collection Resource or Object Resource

with all properties including

filingID!

addresses[1..*]

Parameters

Field Name

Type

Description

<property-definition>

Primitive Property or Reference Property

In a property definition, the Cardinality follows the property type.

<property-name>

SName(Primitive Property)or SName(Reference Property)

In a Property Set, the Cardinality follows the property name.

<cardinality-symbol>

Cardinality symbol

A single-character symbol indicating the Cardinality in short form. See Notation table below.

<cardinality-spec>

Cardinality expression

A square bracket-delimited expression indicating the Cardinality in long form.  See Notation table below.

Child Elements

Not applicable.

Parent Elements

Not applicable.

Discussion

Notation

Symbol

Long Form

Description

Omitted ("")

N/A

zero or one

?

[0..1]

zero or one

*

[0..*]

zero or more

!

[1..1]

exactly one

+

[1..*]

one or more

Created with Help & Manual 6 and styled with Premium Pack Version 2.51 © by EC Software