org.mockcentral.editor.nodes.expectation_group
Class ExpectationGroupDataBean

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

public class ExpectationGroupDataBean
extends java.lang.Object

A bean class storing data used to create the JDOM Element corresponding to a group of method expectations.

Author:
David Hutchinson

Constructor Summary
ExpectationGroupDataBean()
           
 
Method Summary
 java.util.List<MockableMethod> getMethods()
          Returns the List of MockableMethod instances.
 org.mockcentral.server.MockMethodType getMockMethodType()
          Returns the MockMethodType for the group of expectations.
 SignaturePartElementCreationStrategy getParamsStrategy()
          Returns the parameters SignaturePartElementCreationStrategy for the group of expectations.
 MockObjectDataBean getParent()
          Returns the parent MockObjectDataBean.
 SignaturePartElementCreationStrategy getResultStrategy()
          Returns the result SignaturePartElementCreationStrategy for the group of expectations.
 java.lang.String getThrowableClassName()
          Returns the throwableClassName for the group of expectations.
 boolean isGenerateDefaultToStringMethod()
          Returns the value for whether to generate a default toString() method.
 boolean isIncludeObjectMethods()
          Returns the value for whether to include java.lang.Object methods in the selectable list.
 void setGenerateDefaultToStringMethod(boolean generateDefaultToStringMethod)
          Sets the value for whether to generate a default toString() method.
 void setIncludeObjectMethods(boolean includeObjectMethods)
          Sets the value for whether to include java.lang.Object methods in the selectable list.
 void setMethods(java.util.List<MockableMethod> methods)
          Sets the List of MockableMethod instances.
 void setMockMethodType(org.mockcentral.server.MockMethodType mockMethodType)
          Sets the MockMethodType for the group of expectations.
 void setParamsStrategy(SignaturePartElementCreationStrategy paramsStrategy)
          Sets the parameters SignaturePartElementCreationStrategy for the group of expectations.
 void setParent(MockObjectDataBean parent)
          Sets the parent MockObjectDataBean.
 void setResultStrategy(SignaturePartElementCreationStrategy resultStrategy)
          Sets the result SignaturePartElementCreationStrategy for the group of expectations.
 void setThrowableClassName(java.lang.String throwableClassName)
          Sets the throwableClassName for the group of expectations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpectationGroupDataBean

public ExpectationGroupDataBean()
Method Detail

getMethods

public java.util.List<MockableMethod> getMethods()
Returns the List of MockableMethod instances.

Returns:
the List of MockableMethod instances.

setMethods

public void setMethods(java.util.List<MockableMethod> methods)
Sets the List of MockableMethod instances.

Parameters:
methods - the List to set.

setMockMethodType

public void setMockMethodType(org.mockcentral.server.MockMethodType mockMethodType)
Sets the MockMethodType for the group of expectations.

Parameters:
mockMethodType - the MockMethodType for the group of expectations.

getMockMethodType

public org.mockcentral.server.MockMethodType getMockMethodType()
Returns the MockMethodType for the group of expectations.

Returns:
the MockMethodType for the group of expectations.

setParamsStrategy

public void setParamsStrategy(SignaturePartElementCreationStrategy paramsStrategy)
Sets the parameters SignaturePartElementCreationStrategy for the group of expectations.

Parameters:
paramsStrategy - the parameters SignaturePartElementCreationStrategy for the group of expectations.

getParamsStrategy

public SignaturePartElementCreationStrategy getParamsStrategy()
Returns the parameters SignaturePartElementCreationStrategy for the group of expectations.

Returns:
the parameters SignaturePartElementCreationStrategy for the group of expectations.

setResultStrategy

public void setResultStrategy(SignaturePartElementCreationStrategy resultStrategy)
Sets the result SignaturePartElementCreationStrategy for the group of expectations.

Parameters:
resultStrategy - the result SignaturePartElementCreationStrategy for the group of expectations.

getResultStrategy

public SignaturePartElementCreationStrategy getResultStrategy()
Returns the result SignaturePartElementCreationStrategy for the group of expectations.

Returns:
the result SignaturePartElementCreationStrategy for the group of expectations.

setThrowableClassName

public void setThrowableClassName(java.lang.String throwableClassName)
Sets the throwableClassName for the group of expectations.

Parameters:
throwableClassName - for the group of expectations.

getThrowableClassName

public java.lang.String getThrowableClassName()
Returns the throwableClassName for the group of expectations.

Returns:
the throwableClassName for the group of expectations.

isGenerateDefaultToStringMethod

public boolean isGenerateDefaultToStringMethod()
Returns the value for whether to generate a default toString() method.

Returns:
the value for whether to generate a default toString() method.

setGenerateDefaultToStringMethod

public void setGenerateDefaultToStringMethod(boolean generateDefaultToStringMethod)
Sets the value for whether to generate a default toString() method.

Parameters:
generateDefaultToStringMethod - the value to set.

isIncludeObjectMethods

public boolean isIncludeObjectMethods()
Returns the value for whether to include java.lang.Object methods in the selectable list.

Returns:
the value for whether to include java.lang.Object methods in the selectable list.

setIncludeObjectMethods

public void setIncludeObjectMethods(boolean includeObjectMethods)
Sets the value for whether to include java.lang.Object methods in the selectable list.

Parameters:
includeObjectMethods - the value to set.

getParent

public MockObjectDataBean getParent()
Returns the parent MockObjectDataBean.

Returns:
the parent MockObjectDataBean.

setParent

public void setParent(MockObjectDataBean parent)
Sets the parent MockObjectDataBean.

Parameters:
parent - the MockObjectDataBean to set.