🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators OclCollectionType

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

Example

Given the class Car, we can use this.

Car.OclCollectiontype.asstring

This returns

Collection(Car)