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




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


Class containing a template operation


Operation1<T>(in T):T


Using wildcards




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