|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jplate.foundation.node.impl.AbstractNode<BC,LC>
BC
- The data stored in a branch.LC
- The data stored in a leaf.public abstract class AbstractNode<BC,LC>
Defines an abstract
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/AbstractNode.java $
Field Summary | |
---|---|
private org.apache.commons.logging.Log |
_log
Used for logging. |
private BranchNodeIfc<BC,LC> |
_parent
Holds the parent. |
private SourceIfc<?> |
_source
Holds the source from which self was generated. |
Constructor Summary | |
---|---|
protected |
AbstractNode()
Default constructor. |
protected |
AbstractNode(BranchNodeIfc<BC,LC> parent)
This constructor sets the parent and data (context). |
Method Summary | |
---|---|
BranchNodeIfc<BC,LC> |
getParent()
Returns the parent node. |
SourceIfc<?> |
getSource()
Returns the source from which self was defined. |
void |
setSource(SourceIfc<?> source)
Sets the source from which this node was defined. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jplate.foundation.FormattableIfc |
---|
toString |
Methods inherited from interface org.jplate.foundation.gof.visitor.VisitableIfc |
---|
accept |
Field Detail |
---|
private final transient org.apache.commons.logging.Log _log
private BranchNodeIfc<BC,LC> _parent
private SourceIfc<?> _source
Constructor Detail |
---|
protected AbstractNode(BranchNodeIfc<BC,LC> parent)
parent
- The parent branch.protected AbstractNode()
Method Detail |
---|
public BranchNodeIfc<BC,LC> getParent()
getParent
in interface NodeIfc<BC,LC>
public SourceIfc<?> getSource()
getSource
in interface NodeIfc<BC,LC>
public void setSource(SourceIfc<?> source)
setSource
in interface NodeIfc<BC,LC>
source
- The source from which self was defined.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |