Altova UModel 2024 Basic Edition

Template Usage in Operations and Properties

Accueil Préc Haut Suivant

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.

© 2017-2023 Altova GmbH