org.perfectjpattern.example.datamodel.visitor
Class ToStringVisitor
java.lang.Object
org.perfectjpattern.core.behavioral.visitor.AbstractVisitor<Object>
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
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToStringVisitor
public ToStringVisitor()
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.