Altova UModel 2025 Professional Edition

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.

t-sig-2

Substituting/binding formal parameters

vector <T->int>

 

Create bindings using the class name

a_float_vector:vector<T->float>

 

Binding multiple templates simultaneously

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

 

Using wildcards ? as parameters (Java 5.0)

vector<T->?>

 

Constraining wildcards - upper bounds (UModel extension)

vector<T->?>aBaseClass>

 

Constraining wildcards - lower bounds (UModel extension)

vector<T->?<aDerivedClass>

© 2018-2024 Altova GmbH