com.agical.rmock.core.expectation.section
Class OverridableSection

java.lang.Object
  extended by com.agical.rmock.core.expectation.section.OverridableSection
All Implemented Interfaces:
Section, Visitable

public class OverridableSection
extends java.lang.Object
implements Section


Constructor Summary
OverridableSection(Section proxiedSection)
           
 
Method Summary
 boolean accept(ExpectationVisitor expectationVisitor, boolean available)
          accepts a visitor
 void add(Visitable visitable)
          Adds an expectaion or subsection to this section
 boolean canMatch()
           
 java.lang.String getDescription()
           
 Section getProxiedSection()
           
 java.lang.String getType()
           
 boolean isSatisfied()
           
 void overrideWith(Section overridingSection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverridableSection

public OverridableSection(Section proxiedSection)
Method Detail

add

public void add(Visitable visitable)
Description copied from interface: Section
Adds an expectaion or subsection to this section

Specified by:
add in interface Section
Parameters:
visitable - The visitable to add

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Section
Returns:
a description of this section

getType

public java.lang.String getType()
Specified by:
getType in interface Section
Returns:
the type of section (ordered, unordered etc)

accept

public boolean accept(ExpectationVisitor expectationVisitor,
                      boolean available)
Description copied from interface: Visitable
accepts a visitor

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

canMatch

public boolean canMatch()
Specified by:
canMatch in interface Visitable
Returns:
true if this visitable can match

isSatisfied

public boolean isSatisfied()
Specified by:
isSatisfied in interface Visitable
Returns:
true if this visitable is satisfied

overrideWith

public void overrideWith(Section overridingSection)

getProxiedSection

public Section getProxiedSection()


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