| |
| | [No title] |
 | | Solution The solution proposed by Builder Pattern is to see the XML Parser as a director, which sends events to a builder, that is a handler that is expected to interpret each event as a step in the construction of a product, the QuadTree. |
 | | Structure In the general structure of the Builder Pattern, as originally explained in the Gang of Four book, the Director is a generic name for any class in charge of sending prime matter to the Builder; similarly, the API between director and builder is characterized with a generalized buildPart() method. |
 | | Figure 9.3 SAX Builder by Inheritance In this, the most common case, you must write the builder from scratch and the idea behind using a Builder interface is to be able to exchange it in the future with others like it. |
| st-www.cs.uiuc.edu /users/johnson/xmlpatterns/Processing/Builder.doc (1160 words) |
|