Template Usage in Operations and Properties

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Projects and Code Engineering > UML Templates  >

Template Usage in Operations and Properties

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.

© 2019 Altova GmbH