org.mockcentral.editor.nodes.expectation_group
Class MockableMethodsTableModelBuilder

java.lang.Object
  extended by org.mockcentral.editor.nodes.expectation_group.MockableMethodsTableModelBuilder

public class MockableMethodsTableModelBuilder
extends java.lang.Object

A class for building a MockCentralTableModel containing MockableMethod instances.

Author:
David Hutchinson

Constructor Summary
MockableMethodsTableModelBuilder(IMethodsListEditor methodsListEditor)
          Creates a new instance.
 
Method Summary
 MockCentralTableModel<MockableMethod> getTableModel(java.lang.Class<?> clazz, boolean includeObjectMethods, boolean allowOverloads)
          Returns a new MockCentralTableModel containing the available Method instances to use to automatically generate Mock Object method expectations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockableMethodsTableModelBuilder

public MockableMethodsTableModelBuilder(IMethodsListEditor methodsListEditor)
Creates a new instance.

Parameters:
methodsListEditor - the IMethodsListEditor.
Method Detail

getTableModel

public MockCentralTableModel<MockableMethod> getTableModel(java.lang.Class<?> clazz,
                                                           boolean includeObjectMethods,
                                                           boolean allowOverloads)
Returns a new MockCentralTableModel containing the available Method instances to use to automatically generate Mock Object method expectations.

Parameters:
clazz - the Class of the interface used for the Mock Object.
includeObjectMethods - whether to include methods from java.lang.Object.
allowOverloads - whether overloaded methods should be added to the model.
Returns:
a new MockCentralTableModel containing the available Method instances to use to automatically generate Mock Object method expectations.