org.qi4j.functional
Interface Visitor<T,ThrowableType extends java.lang.Throwable>

All Known Subinterfaces:
Databases.ResultSetVisitor, HierarchicalVisitor<NODE,LEAF,ThrowableType>
All Known Implementing Classes:
HierarchicalVisitorAdapter

public interface Visitor<T,ThrowableType extends java.lang.Throwable>

Generic Visitor interface.


Method Summary
 boolean visit(T visited)
          Visit an instance of T
 

Method Detail

visit

boolean visit(T visited)
              throws ThrowableType extends java.lang.Throwable
Visit an instance of T

Parameters:
visited - the visited instance
Returns:
true if the visitor pattern should continue, false if it should be aborted
Throws:
ThrowableType - if an exception occurred during processing. Any client call that initiated the visiting should get the exception in order to handle it properly.
ThrowableType extends java.lang.Throwable