Visitor Design Pattern

Todays chautauqua:
The Visitor Design Pattern is applicable in conditions wherever a clear seperation of the algorithm and the data structure is necessary! For example, the quiotix HTMLScrubber allows developers to extend the basic parser and instead implement algorithms that work on the HTML document. To be more specific, the algorithm is *visited* by the HTML document :).

Advertisements