org.jplate.foundation.node
Interface NodeFactoryIfc<BC,LC>

Type Parameters:
BC - Data contained at the branch level.
LC - Data contained at the leaf level.
All Known Implementing Classes:
DefaultNodeFactory

public interface NodeFactoryIfc<BC,LC>

A factory for creating leaf and branch nodes.

Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/node/NodeFactoryIfc.java $
    


Method Summary
 BranchNodeIfc<BC,LC> createBranchNode()
          This will create a branch node who has no parent.
 BranchNodeIfc<BC,LC> createBranchNode(BranchNodeIfc<BC,LC> parent)
          This will create a branch node whose parent is parent.
 LeafNodeIfc<BC,LC> createLeafNode(BranchNodeIfc<BC,LC> parent)
          This will create a leaf node whose parent is parent.
 

Method Detail

createBranchNode

BranchNodeIfc<BC,LC> createBranchNode(BranchNodeIfc<BC,LC> parent)
This will create a branch node whose parent is parent.

Parameters:
parent - is the parent node.
Returns:
a new branch node.

createBranchNode

BranchNodeIfc<BC,LC> createBranchNode()
This will create a branch node who has no parent.

Returns:
a new branch node.

createLeafNode

LeafNodeIfc<BC,LC> createLeafNode(BranchNodeIfc<BC,LC> parent)
This will create a leaf node whose parent is parent.

Parameters:
parent - is the parent node.
Returns:
a new leaf node.