org.mockcentral.editor.nodes.fixture
Class FixtureNode

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

public class FixtureNode
extends MockCentralNode

A MockCentralNode class representing a testing Fixture containing a collection Mock Object definitions.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.mockcentral.editor.nodes.MockCentralNode
children, deleted, element, nodeDescription, nodeModel, nodeProblemManager, nodeView, parentNode
 
Constructor Summary
FixtureNode()
          Creates a new instance, assigning a new FixtureModel to the nodeModel field.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this node to another by comparing the fixture 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

FixtureNode

public FixtureNode()
Creates a new instance, assigning a new FixtureModel to the 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 fixture 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