org.mockcentral.editor.nodes.mockobject
Class MockObjectNode

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

public class MockObjectNode
extends MockCentralNode

A MockCentralNode class representing a Mock Object, reflected in a JDOM Element with the name "mockObjectSetup".

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.mockcentral.editor.nodes.MockCentralNode
children, deleted, element, nodeDescription, nodeModel, nodeProblemManager, nodeView, parentNode
 
Constructor Summary
MockObjectNode()
          Creates a new instance, assigning a new MockObjectModel to the inherited nodeModel field.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this node to another by comparing the Mock Object name values.
 void createNodeDescription()
          Creates a description for this node.
 MockCentralNodeType getMockCentralNodeType()
          Returns the MockCentralNodeType value identifying the type for this node.
 void setElement(org.jdom.Element element)
          Sets the jdom Element represented by this node, invokes the createNodeDescription method to create the toString value and iterates through the content of the Element to create the list of child nodes.
 
Methods inherited from class org.mockcentral.editor.nodes.MockCentralNode
activateChildNode, getChildNodeOfName, getChildren, getElement, getNodeDescription, getNodeModel, getNodeProblemManager, getNodeView, getParentNode, getPath, initializeComponents, isDeleted, setDeleted, setParentNode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockObjectNode

public MockObjectNode()
Creates a new instance, assigning a new MockObjectModel to the inherited nodeModel field.

Method Detail

setElement

public void setElement(org.jdom.Element element)
Description copied from class: MockCentralNode
Sets the jdom Element represented by this node, invokes the createNodeDescription method to create the toString value and iterates through the content of the Element to create the list of child nodes.

Overrides:
setElement in class MockCentralNode
Parameters:
element - the jdom element represented by this node.

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)
Compares this node to another by comparing the Mock Object name values.

Parameters:
o - the Object for comparison.
Returns:
the comparison value.

createNodeDescription

public void createNodeDescription()
Creates a description for this node.

Specified by:
createNodeDescription in class MockCentralNode