|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jplate.foundation.node.impl.defaults.DefaultNodeFactory<BC,LC>
BC
- Data contained at the branch level.LC
- Data contained at the leaf level.public class DefaultNodeFactory<BC,LC>
Default implementation to create branch and leaf 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/impl/defaults/DefaultNodeFactory.java $
Field Summary | |
---|---|
private ListFactoryIfc<NodeIfc<BC,LC>> |
_listFactory
The factory that can create implementations of List to hold NodeIfc's. |
private org.apache.commons.logging.Log |
_log
Used for logging. |
Constructor Summary | |
---|---|
DefaultNodeFactory()
Default constructor. |
|
DefaultNodeFactory(ListFactoryIfc<NodeIfc<BC,LC>> listFactory)
Sets the list factory for creating child NodeIfc lists and the leaf node factory. |
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final transient org.apache.commons.logging.Log _log
private final ListFactoryIfc<NodeIfc<BC,LC>> _listFactory
DefaultBranchNode
's.
Constructor Detail |
---|
public DefaultNodeFactory(ListFactoryIfc<NodeIfc<BC,LC>> listFactory)
listFactory
- Creates List's to hold child NodeIfc's.public DefaultNodeFactory()
UnsynchronizedLinkedListFactory
*
Method Detail |
---|
public BranchNodeIfc<BC,LC> createBranchNode(BranchNodeIfc<BC,LC> parent)
parent
.
createBranchNode
in interface NodeFactoryIfc<BC,LC>
parent
- is the parent node.
public BranchNodeIfc<BC,LC> createBranchNode()
createBranchNode
in interface NodeFactoryIfc<BC,LC>
public LeafNodeIfc<BC,LC> createLeafNode(BranchNodeIfc<BC,LC> parent)
parent
.
createLeafNode
in interface NodeFactoryIfc<BC,LC>
parent
- is the parent node.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |