Example When you have a type with type variables represented in the model, you can create a parameterized type for Java. For this you must create an empty UML Classifier of the same type as the template classifier (type with type variables). Then create a UML Template Binding and create a UML Template Parameter Substitution for the UML Template Parameters. To create a “java.util.List<String>” type, you must create a UML Interface first, with a UML Template Parameter representing “java.util.List”. Then create another UML Interface and connect it with the List interface with UML Template Binding. Note that to draw a UML Template Binding, the client element must have at least one UML Template Parameter created. You must open the UML Template Binding specification dialog and create a UML Template Parameter Substitution for the appropriate UML Template Parameter. |