🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators OclCollectionType
Created by Stephanie on 2025-01-08 · Last edited by Peter.byaruhanga on 2026-01-24.

If you have a type "Thing" and want the collection type for that : Thing.OclCollectiontype.asstring - this will give you "Collection(Thing)"

Example

Given class Car. We can use this.

Car.OclCollectiontype.asstring

this returns

Collection(Car)