org.mockcentral.editor.nodes
Class MockCentralNodeFactory

java.lang.Object
  extended by org.mockcentral.editor.nodes.MockCentralNodeFactory

public class MockCentralNodeFactory
extends java.lang.Object

Factory class for instances of the MockCentralNode class.

Author:
David Hutchinson

Constructor Summary
MockCentralNodeFactory()
           
 
Method Summary
static MockCentralNode createNode(org.jdom.Element element)
          Extracts the name from the supplied JDOM Element and uses it to look up the appropriate MockCentralNode class using the MockCentralNodeType enum; creates, initializes and returns a new instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockCentralNodeFactory

public MockCentralNodeFactory()
Method Detail

createNode

public static MockCentralNode createNode(org.jdom.Element element)
Extracts the name from the supplied JDOM Element and uses it to look up the appropriate MockCentralNode class using the MockCentralNodeType enum; creates, initializes and returns a new instance.

Parameters:
element - the JDOM element.
Returns:
a new MockCentralNode Class instance.