org.mockcentral.editor.nodes.expectation_group
Class MockableMethod

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

public class MockableMethod
extends java.lang.Object

Simple bean class used for display within MockCentralTableModel instances that display mockable interface Methods or mocked non-interface pseudo-methods. In the latter case the method field may be null, and the model can derive it's display value from the methodName field.

Author:
David Hutchinson

Constructor Summary
MockableMethod()
           
 
Method Summary
 java.lang.reflect.Method getMethod()
          Returns the Method.
 java.lang.String getMethodName()
          Returns the method name.
 void setMethod(java.lang.reflect.Method method)
          Sets the Method.
 void setMethodName(java.lang.String methodName)
          Sets the method name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockableMethod

public MockableMethod()
Method Detail

getMethodName

public java.lang.String getMethodName()
Returns the method name.

Returns:
the method name.

setMethodName

public void setMethodName(java.lang.String methodName)
Sets the method name.

Parameters:
methodName - the method name to set.

getMethod

public java.lang.reflect.Method getMethod()
Returns the Method.

Returns:
the Method.

setMethod

public void setMethod(java.lang.reflect.Method method)
Sets the Method.

Parameters:
method - the Method to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object