org.mockcentral.editor.nodes.expectation
Class ExpectationNode

java.lang.Object
  extended by org.mockcentral.editor.nodes.MockCentralNode
      extended by org.mockcentral.editor.nodes.expectation.ExpectationNode
All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>

public class ExpectationNode
extends MockCentralNode

A MockCentralNode class representing a method to be called on a Mock Object.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.mockcentral.editor.nodes.MockCentralNode
children, deleted, element, nodeDescription, nodeModel, nodeProblemManager, nodeView, parentNode
 
Constructor Summary
ExpectationNode()
          Creates a new instance, creating and assigning the node model.
 
Method Summary
 int compareTo(java.lang.Object o)
          Comparable interface method that enables sorting of instances within a parent ExpectationGroupNode.
 void createNodeDescription()
          Creates the node description value.
 MockCentralNodeType getMockCentralNodeType()
          Returns the MockCentralNodeType value identifying the type for this node.
 
Methods inherited from class org.mockcentral.editor.nodes.MockCentralNode
activateChildNode, getChildNodeOfName, getChildren, getElement, getNodeDescription, getNodeModel, getNodeProblemManager, getNodeView, getParentNode, getPath, initializeComponents, isDeleted, setDeleted, setElement, setParentNode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpectationNode

public ExpectationNode()
Creates a new instance, creating and assigning the node model.

Method Detail

getMockCentralNodeType

public MockCentralNodeType getMockCentralNodeType()
Description copied from class: MockCentralNode
Returns the MockCentralNodeType value identifying the type for this node.

Specified by:
getMockCentralNodeType in class MockCentralNode
Returns:
the MockCentralNodeType value identifying the type for this node.

compareTo

public int compareTo(java.lang.Object o)
Comparable interface method that enables sorting of instances within a parent ExpectationGroupNode.

Parameters:
o - the instance for comparison.
Returns:
the comparison result.

createNodeDescription

public void createNodeDescription()
Description copied from class: MockCentralNode
Creates the node description value.

Specified by:
createNodeDescription in class MockCentralNode