com.agical.rmock.core
Interface Visitable

All Known Subinterfaces:
Expectation, ModifiableExpectation, Section
All Known Implementing Classes:
AnyOrderSection, ExpectationImpl, OrderedSection, OverridableSection, StackedSection

public interface Visitable

Common interface for visitable objects (sections and expectations).

(c) Agical AB 2005

Author:
brolund

Method Summary
 boolean accept(ExpectationVisitor expectationVisitor, boolean available)
          accepts a visitor
 boolean canMatch()
           
 boolean isSatisfied()
           
 

Method Detail

accept

boolean accept(ExpectationVisitor expectationVisitor,
               boolean available)
accepts a visitor

Parameters:
expectationVisitor - the visitor to accept.
available - true if this visitable is considered available by its container
Returns:

canMatch

boolean canMatch()
Returns:
true if this visitable can match

isSatisfied

boolean isSatisfied()
Returns:
true if this visitable is satisfied


Copyright © 2005-2009 Agical AB. All Rights Reserved.