Altova UModel 2025 Basic Edition

Template Usage in Operations and Properties

Home Prev Top Next

Operation returning a bound template

Class1

Operation1():vector<T->int>

 

Parameter T is bound to "int". Operation1 returns a vector of ints.

 

Class containing a template operation

Class1

Operation1<T>(in T):T

 

Using wildcards

Class1

Property1:vector<T->?>

 

This class contains a generic vector of unspecified type (? is the wildcard).

Typed properties can be displayed as associations as follows:

Right click a property and select Show | PropertyX as Association, or

Drag a property onto the diagram background.

© 2018-2024 Altova GmbH