Home

 

Facade transformation

Open the transform.tma file in RAD75PatternsFacadeTransform. The transformation defines:

Attributes: name (of the interface), package (base package), systemProjName (underlying project with the model)

Derived attributes: facadeDirectory (folders from package), facadeVarname (variable for the interface), ifcPackage (package of interface), implClass (implementation class name), implPackage (package of implementation), and projectName (generated project)

Elements: entity (to define model objects), and operation (to define the methods of the interface)

Creates: Project, .classpath, .project, Bank.java (interface), ITSOBank.java (implementation)

The template files (templates\facade) include:

classpath.jet: .classpath template

project.jet: .project template

Bank.java.jet: interface template

ITSOBank.java.jet: implementation template
ibm.com/redbooks