org.perfectjpattern.core.behavioral.visitor
Class PrintVisitor

java.lang.Object
  extended by org.perfectjpattern.core.behavioral.visitor.AbstractVisitor<ICarPart>
      extended by org.perfectjpattern.core.behavioral.visitor.PrintVisitor
All Implemented Interfaces:
IVisitor<ICarPart>

public class PrintVisitor
extends AbstractVisitor<ICarPart>

Concrete Visitor implementation that exemplifies the case where your Visitor can directly extend PerfectJPattern's base reusable AbstractVisitor implementation

Version:
$Revision: 1.0 $Date: Jun 8, 2008 11:57:41 PM $
Author:
Giovanni Azua
 

Constructor Summary
PrintVisitor()
           
 
Method Summary
protected static void setLogger(org.slf4j.Logger aLogger)
           
 void visitBody(Body aBody)
          Visit Body
 void visitCar(Car aCar)
          Visit Car
 void visitEngine(Engine anEngine)
          Visit Engine
 void visitWheel(Wheel aWheel)
          Visit Wheel
 
Methods inherited from class org.perfectjpattern.core.behavioral.visitor.AbstractVisitor
reusableVisit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintVisitor

public PrintVisitor()
Method Detail

visitWheel

public void visitWheel(Wheel aWheel)
Visit Wheel

Parameters:
aWheel -

visitEngine

public void visitEngine(Engine anEngine)
Visit Engine

Parameters:
anEngine -

visitBody

public void visitBody(Body aBody)
Visit Body

Parameters:
aBody -

visitCar

public void visitCar(Car aCar)
Visit Car

Parameters:
aCar -

setLogger

protected static void setLogger(org.slf4j.Logger aLogger)


Copyright © 2007-2009. All Rights Reserved.