org.perfectjpattern.example.datamodel.visitor
Class ToStringVisitor

java.lang.Object
  extended by org.perfectjpattern.core.behavioral.visitor.AbstractVisitor<Object>
      extended by org.perfectjpattern.example.datamodel.visitor.ToStringVisitor
All Implemented Interfaces:
IVisitor<Object>

public class ToStringVisitor
extends AbstractVisitor<Object>

Visits any data model type and provides generating a String representation

Version:
$ $Date: Dec 6, 2008 6:25:02 PM $
Author:
Giovanni Azua
 

Constructor Summary
ToStringVisitor()
           
 
Method Summary
 String getResult()
          Returns the result
protected  void setResult(String anResult)
          Sets the result
 void visitCustomer(Customer aCustomer)
           
 void visitMovie(Movie aMovie)
           
 void visitOrder(Order anOrder)
           
 void visitProduct(Product aProduct)
           
 
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

ToStringVisitor

public ToStringVisitor()
Method Detail

visitCustomer

public void visitCustomer(Customer aCustomer)

visitOrder

public void visitOrder(Order anOrder)

visitProduct

public void visitProduct(Product aProduct)

visitMovie

public void visitMovie(Movie aMovie)

getResult

public final String getResult()
Returns the result

Returns:
the result

setResult

protected final void setResult(String anResult)
Sets the result

Parameters:
anResult - the result to set


Copyright © 2007-2009. All Rights Reserved.