org.mockcentral.editor.nodes.expectation_group
Class ExpectationGroupElementBuilder

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

public class ExpectationGroupElementBuilder
extends java.lang.Object

A class used to build a JDOM Element for the group of method expectation for a Mock Object definition.

Author:
David Hutchinson

Constructor Summary
ExpectationGroupElementBuilder()
           
 
Method Summary
static org.jdom.Element createExpectationGroupElement(ExpectationGroupDataBean bean)
          Returns a new JDOM Element for the group of method expectation for a Mock Object definition.
static java.util.List<MockCentralNode> createExpectationNodeList(ExpectationGroupDataBean bean)
          Returns a list containing the new expectation nodes built using the supplied ExpectationGroupDataBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpectationGroupElementBuilder

public ExpectationGroupElementBuilder()
Method Detail

createExpectationNodeList

public static java.util.List<MockCentralNode> createExpectationNodeList(ExpectationGroupDataBean bean)
Returns a list containing the new expectation nodes built using the supplied ExpectationGroupDataBean.

Parameters:
bean - the ExpectationGroupDataBean containing any number of child ExpectationDataBean instances used to build the node list.
Returns:
a list containing the new expectation nodes built using the supplied ExpectationGroupDataBean.

createExpectationGroupElement

public static org.jdom.Element createExpectationGroupElement(ExpectationGroupDataBean bean)
Returns a new JDOM Element for the group of method expectation for a Mock Object definition.

Parameters:
bean - the ExppectationGroupElementDataBean from which to obtain the data.
Returns:
a new JDOM Element for the group of method expectation for a Mock Object definition.