PerfectJPattern - Visitor Design Pattern (original) (raw)

Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.

Componentized Visitor Pattern

PerfectJPattern's componentized version of the Visitor Pattern differs from the original GoF version in that:

UML Class Design

Example