org.mockcentral.editor.nodes.mockobject
Class MockObjectDataBean

java.lang.Object
  extended by org.mockcentral.editor.nodes.mockobject.MockObjectDataBean

public class MockObjectDataBean
extends java.lang.Object

Bean class used to store and retrieve data used to construct the JDOM Element for a MockObjectNode.

Author:
David Hutchinson

Constructor Summary
MockObjectDataBean()
           
 
Method Summary
 ExpectationGroupDataBean getExpectationGroupBean()
          Returns the ExpectationGroupDataBean defining any method expectations for the Mock Object.
 java.lang.String getInterfaceName()
          Returns the interface name.
 java.lang.String getJndiName()
          Returns the JNDI name.
 java.lang.String getMockObjectName()
          Returns the Mock Object name.
 MockObjectModel getNodeModel()
          Returns the associated MockObjectModel.
 boolean isEnableBinding()
          Returns the value for whether JNDI binding should be enabled.
 boolean isOpenExpectationGroupPage()
          Returns whether the editor should open the expectation group page after an edit.
 void setEnableBinding(boolean enableBinding)
          Sets the value for whether JNDI binding should be enabled.
 void setExpectationGroupBean(ExpectationGroupDataBean expectationGroupBean)
          Sets the ExpectationGroupDataBean defining any method expectations for the Mock Object.
 void setInterfaceName(java.lang.String interfaceName)
          Sets the interface name.
 void setJndiName(java.lang.String jndiName)
          Sets the JNDI name.
 void setMockObjectName(java.lang.String mockObjectName)
          Sets the Mock Object name.
 void setNodeModel(MockObjectModel nodeModel)
          Sets the associated MockObjectModel.
 void setOpenExpectationGroupPage(boolean openExpectationGroupPage)
          Sets whether the editor should open the expectation group page after an edit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockObjectDataBean

public MockObjectDataBean()
Method Detail

getNodeModel

public MockObjectModel getNodeModel()
Returns the associated MockObjectModel.

Returns:
the associated MockObjectModel.

setNodeModel

public void setNodeModel(MockObjectModel nodeModel)
Sets the associated MockObjectModel.

Parameters:
nodeModel - the MockObjectModel to set.

getMockObjectName

public java.lang.String getMockObjectName()
Returns the Mock Object name.

Returns:
the Mock Object name.

setMockObjectName

public void setMockObjectName(java.lang.String mockObjectName)
Sets the Mock Object name.

Parameters:
mockObjectName - the Mock Object name to set.

getInterfaceName

public java.lang.String getInterfaceName()
Returns the interface name.

Returns:
the interface name.

setInterfaceName

public void setInterfaceName(java.lang.String interfaceName)
Sets the interface name.

Parameters:
interfaceName - the interface name to set.

isEnableBinding

public boolean isEnableBinding()
Returns the value for whether JNDI binding should be enabled.

Returns:
the value for whether JNDI binding should be enabled.

setEnableBinding

public void setEnableBinding(boolean enableBinding)
Sets the value for whether JNDI binding should be enabled.

Parameters:
enableBinding - the value for whether JNDI binding should be enabled to set.

getJndiName

public java.lang.String getJndiName()
Returns the JNDI name.

Returns:
the JNDI name.

setJndiName

public void setJndiName(java.lang.String jndiName)
Sets the JNDI name.

Parameters:
jndiName - the JNDI name to set.

getExpectationGroupBean

public ExpectationGroupDataBean getExpectationGroupBean()
Returns the ExpectationGroupDataBean defining any method expectations for the Mock Object.

Returns:
the ExpectationGroupDataBean.

setExpectationGroupBean

public void setExpectationGroupBean(ExpectationGroupDataBean expectationGroupBean)
Sets the ExpectationGroupDataBean defining any method expectations for the Mock Object.

Parameters:
expectationGroupBean - the ExpectationGroupDataBean to set.

isOpenExpectationGroupPage

public boolean isOpenExpectationGroupPage()
Returns whether the editor should open the expectation group page after an edit.

Returns:
whether the editor should open the expectation group page after an edit.

setOpenExpectationGroupPage

public void setOpenExpectationGroupPage(boolean openExpectationGroupPage)
Sets whether the editor should open the expectation group page after an edit.

Parameters:
openExpectationGroupPage - whether the editor should open the expectation group page after an edit.