The UML Profile for Framework Architectures

B.2 Template Method pattern tags

Figure B.2 shows the static structure of the Factory Method pattern (Gamma et al. 1995) annotated with UML-F tags. Table B.2 summarizes the Factory Method pattern UML-F tags. Factory Method is based on the Unification construction principle.

Figure B.2. Structure of the Template Method pattern annotated with UML-F tags.

Table B.2. Definition of the UML-F Template Method pattern tags.

Tags

TemplateM AbstractClass , TemplateM ConcreteClass ,

TemplateM templateM , TemplateM-primitiveOp , and TemplateM-primitiveOp

Apply to

As shown in Fig. B.1:

Class ( TemplateM AbstractClass , TemplateM ConcreteClass )

Method ( TemplateM templateM , TemplateM-primitiveOp , TemplateM-primitiveOp )

Type String.
Expansion

The Template Method pattern is based on the Unification principle and therefore its tags expand as follows:

TemplateM AbstractClass to Unif TH ,

TemplateMethod templateM to Unif-t , and

TemplateM primitiveOp to Unif h .

Категории