Template Binding

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

Home >  Projects and Code Engineering > UML Templates  >

Template Binding

Template binding involves the substitution of the formal parameters by actual values, i.e. the template is instantiated. UModel automatically generates anonymously bound classes, when this binding occurs. Bindings can be defined in the class name field as shown below.


Substituting/binding formal parameters

vector <T->int>


Create bindings using the class name



Binding multiple templates simultaneously

Class5:vector<T->int, map<KeyType->int, ValueType<T->int>


Using wildcards ? as parameters (Java 5.0)



Constraining wildcards - upper bounds (UModel extension)



Constraining wildcards - lower bounds (UModel extension)


© 2019 Altova GmbH